Are there any caveats to compiling all of my theme’s SCSS into the style.css file in the theme root?

Your theme requires style.css to be present in the theme’s root directory, with a comment header at the top containing information about he theme, like this: /* Theme Name: Twenty Nineteen Theme URI: https://wordpress.org/themes/twentynineteen/ Author: the WordPress team Author URI: https://wordpress.org/ Description: Our 2019 default theme is designed to show off the power of the … Read more

Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?

You will be rejected from the WordPress.org theme direcotry if you include these post types in the theme. The guidelines, which are available here, state: Non-design related functionality is not allowed. (See: Plugin territory examples) And one of the examples is: Custom Post Types and Shortcodes Regarding TGM, the guidelines have this to say: Themes … Read more

Assign custom classes to the divs inside the loop

Here’s one example how you could write the loop for your jumbotron, // add helper functions to functions.php function my_posts_query() { $args = array(); // add parameters as needed post_type, posts_per_page, etc. return new WP_Query($args); } function my_single_post_image( int $post_id ) { $url = get_the_post_thumbnail_url( $post_id, ‘large’ ); // update as needed if ( $url … Read more

Widgets not showing on custom theme

Try to combine both sidebars/arrays into one function. function my_widgets() { register_sidebar( array( ‘id’ => ‘contact-info’, // add the rest here ), register_sidebar( array( ‘id’ => ‘social-links’, // add the rest here )) ); } add_action(‘widgets_init’, ‘my_widgets’); Then you call the deisred sidebar <?php if(is_active_sidebar(‘contact-info’)) : ?> <?php dynamic_sidebar(‘contact-info’); ?> <?php endif; ?>