Theme Customizer not loading

if customizer(live preview) doesnt work or doesnt load and nothing is shown, try these steps: do you have redirections on the problematic site (double check and ensure, there might be coded a custom redirection in your plugins/codes)? while the circle is still loading, change any option in customizer and click “SAVE & PUBLISH” and see, … Read more

Where is the correct place(s) in twentysixteen’s header.php to add a Google webfont?

You can place it in header.php between starting <head> and closing </head> tags and it should work properly. Or perhaps a better solution would be to enqueue the style in functions.php function google_fonts() { $query_args = array( ‘family’ => ‘Sigmar+One’ ); wp_register_style( ‘google_fonts’, add_query_arg( $query_args, “//fonts.googleapis.com/css” ), array(), null ); } add_action(‘wp_enqueue_scripts’, ‘google_fonts’);

How to set dimensions of the post thumbnails (featured images)

Add this code to your theme’s functions.php file. Images are resized by WordPress when they are uploaded. A plugin such as Regenerate Thumbnails can be used to ensure that source images have been properly generated if image sizes are changed after the initial upload. // Sets the parameters for the post-thumbnail image size // https://codex.wordpress.org/Function_Reference/set_post_thumbnail_size … Read more

De-registering parent style sheet css recommended?

This is not a very smart thing to do. As you noted yourself, you’ll have issues when the parent theme is updated. Moreover, the parent theme might have secondary stylesheets that depend on the parent style (third parameter in wp_enqueue_style). There might be javascript that assumes it’s there. In other words: it will take very … Read more

How to set page template on front using starter content?

The reference to a post needs the item symbol within double curly braces: add_action(‘after_setup_theme’, function () { add_theme_support( ‘starter-content’, array( ‘posts’ => array( ‘home’ => array( // Use a page template with the predefined about page ‘template’ => ‘template-frontpage.php’, ), ), ‘options’ => array( ‘show_on_front’ => ‘page’, ‘page_on_front’ => ‘{{home}}’, ), )); }); And remember: … Read more