Next Previous Post in wordpress with previous / next link with title?

You can do it like so, I guess: <div class=”alignleftfp”> <?php next_post_link(‘%link’, ‘<img class=”imgalign” src=”‘ . WP_CONTENT_URL . ‘/uploads/1.png” alt=”Next” /> %title’); ?> </div> <div class=”alignrightfp”> <?php previous_post_link(‘%link’, ‘%title <img class=”imgalign” src=”‘ . WP_CONTENT_URL . ‘/uploads/1.png” alt=”Next” />’); ?> </div> PS. You shouldn’t use next_post/previous_post functions – they’re deprecated. EDIT Just read the_content filter docs. … Read more

Two stylesheets acting on one element

When in doubt, !important it out! In the child, change it to max-width:769px !important;. That will force the page to be rendered with that style. I have a feeling the parent theme is using @import to get custom.css (although I cant verify that). That could be screwing with things.

Change custom featured image size in twentythirteen child theme

The function that handles thumbnail size is already hooked with after_setup_theme in \twentythirteen\functions.php. There is no use adding a if (!function_exists()) in child functions.php because the child functions.php is always loaded before. So this would be more logical to find this in the parent file. The answer would be to set a different prority to … Read more

How to add functionality to an existing theme (using child themes)

You also have a functions.php file which is really powerful in your child theme. You can override main theme functions, add new features – whatever you want. First thing I do in my child theme (usually) is add my google verification code. function lmc_do_meta_tags(){ echo “<meta name=\”google-site-verification\” content=\”YOUR-CODE-HERE\” />”; } add_action(‘wp_head’, ‘lmc_do_meta_tags’);

Stylesheet overriding in Child theme

Generally speaking, you want to load your general stylesheet (style.css) first and follow it with your more specific stylesheet(s) (style-premium.css). However, the actual details of how CSS cascades are more complex than that and your specific stylesheet can still be overridden by the general stylesheet: if the !important declaration is used based on the specificity … Read more

Switching to child theme breaks menu names

The custom menus assigned to Menu Locations (in the Appearance, Menus, Manage Locations tab) are saved per theme. So when you switched to your new theme, you lost that assignment. Go to the Manage Locations tab and select your custom menus again.

Need advice on theme customizer and child themes

I would comment if able. If your theme variations consist solely of style modifications you can add the variation stylesheets @ inc/css/ and then here is an example of the references to make it all tick. @ \options\options-core.php: $fields_list[] = array( ‘name’ => __(‘Select a Skin Color’, ‘mytheme’), ‘id’ => ‘mytheme_skin_color’, ‘std’ => ‘default’, ‘type’ … Read more