How do I override template-tags.php in twentyseventeen theme

I created a child theme from the TwentySeventeen theme and it seems to work. I can override the content.php file by creating a matching folder and my own content.php in my child theme. /template-parts/post/content.php …Works fine. However, I tried to do the same thing to override the metta tags in the header of a single … Read more

How to create a drop down menu like in twenty eleven theme?

I really like the drop down menu solution of twenty eleven theme: http://twentyelevendemo.wordpress.com/ and would like to create a similar one but I cannot figure how it works, or is it based on some existing code for dropdown menus? Is there any source code that can be used, or can someone explain the principle behind … Read more

Optimal approach for replacing the 8 header images in a child theme?

After creating a child theme which is made of style.css only (base on twentyeleven), the time has come to replace the images. I found this great tip for accomplishing this by hacking the functions in twentyeleven but my main concern is minimizing work after a WordPress update. I thought of simply replacing the images in … Read more

Why to check if function doesn’t exists in functions.php?

I see in the twentyeleven theme, before most custom functions they check if it exists <?php if ( ! function_exists( ‘twentyeleven_comment’ ) ) : function twentyeleven_comment( $comment, $args, $depth ) { Why is that? 1 Answer 1 A child theme may have declared these functions already with a slightly different inner logic. The functions.php from … Read more

get_the_category_list or get_the_tag_list for custom post types and taxonomies?

Basically I’ve setup a custom post type and taxonomy for a set type of posts and I’m creating a child theme from twentyeleven. When I use the default WP Posts and then I tag them and categorize them, get_the_category_list and get_the_tag_list do their work and display below the post. Now I would like to do … Read more