Twenty Eleven Theme – SEO Yoast duplicate site titles
Twenty Eleven Theme – SEO Yoast duplicate site titles
Twenty Eleven Theme – SEO Yoast duplicate site titles
Yes,the Customizer settings will not carry over from parent to child. Activating a new child theme essentially means you are starting from scratch with regards to the Customizer. Perhaps, try cloning the site and run it on a development server or local machine, and make the switch, then see what is lost. I did find … Read more
You need create a es_ES.mo file, using the .po file included with the Theme. Try using something like POEdit or a similar utility.
I would hook into the new_page action, and then use update_post_meta() to update the post meta value for _wp_page_template: <?php function wpse31124_set_page_default_template( $page_id ) { update_post_meta( $page_id, ‘_wp_page_template’, ‘sidebar-page.php’ ) } add_action( ‘new_page’, ‘wpse31124_set_page_default_template’ ); ?> You could hook into other actions, but they might stomp on your ability to use the default template. Using … Read more
I don’t believe there is an add_filter() call anywhere. If you want to override the option defaults, you can call your own add_filter() to do so, either in a Plugin or in a Child Theme. EDIT An apply_filters() call is nothing more than a filter hook definition: basically, it is defining the data to which … Read more
I think I understand what looking for. I’ve put together some code I’ve taken from parts of my themes to give you an example. For the functions.php: <?php add_action( ‘after_setup_theme’, ‘ideatree_init’ ); if ( ! function_exists( ‘ideatree_init’ ) ): function ideatree_init() { // REGISTER THE NAV MENUS (3 in this case) add_action( ‘init’, ‘register_my_menus’ ); … Read more
No idea, never used twenty eleven theme. I opened the theme files. Check out showcase.php around Line 104-118. Should be on line 115 – just remove the anchor wrapping the post thumb, <a href=”https://wordpress.stackexchange.com/questions/52498/<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyeleven’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”><?php the_post_thumbnail( $thumbnail_size ); ?></a>
you can do that in multiple ways .. For example you can do a conditional in the PHP itself with a wp built in function : if ( in_category( ‘my-category’ ) { //Do something } or for example, if the script is a javascript you could load the script in a conditional way , so … Read more
This thread suggests that this isn’t necessarily an intended Child Theme usecase so theme-options.php isn’t explicitly overrideable. It indicates that you should rather be adding extra options using add_settings_field and the admin_init hook.
WordPress adds a unique class for each page in the body tag, you can use that class to target specific elements on your page through CSS. .page-id-32 .menu-item-31 {display:none;}