Correct way to customise a child theme

No, for better or worse WordPress only support single level of theme inheritance. You would need to either apply modifications without modifying it via hooks (if possible at all) or fork it. If specific child theme receives updates be careful to disable them – explicitly by excluding from update checks or implicitly by changing its … Read more

Get specific sidebars $wp_registered_sidebars [closed]

This is a generic PHP question. You need to check whether the $sidebar_id key is set in $dynamic_widget_areas as you loop through. This proof of concept code should give you the idea. $dynamic_widget_areas = array( ‘sidebar-1’ => ‘stuff’, ); global $wp_registered_sidebars; $output=””; foreach($wp_registered_sidebars as $sidebar_id => $sidebar) { $output .= “<option”; if(isset($dynamic_widget_areas[$sidebar_id])) { if($sidebar_id == … Read more

How to create a non-responsive WordPress Theme Using Genesis Framework?

You can remove all the CSS code under the Media Queries section of any child theme built on Genesis. This code is generally located at the end of the style.css file. However, WordPress also includes responsiveness built in so its not really possible to totally remove everything unless you go to a lot of trouble. … Read more

How to create a archive template for custom post type [duplicate]

Try this: <?php while($article_posts->have_posts()) : $article_posts->the_post(); ?> <tr> <td><a href=”https://wordpress.stackexchange.com/questions/131769/<?php the_permalink(); // <– Here”s the post url ?>”><?php the_title(); ?></a></td> <td><?php the_field(‘published_in’); ?></td> <td><?php the_field(‘article_author’); ?></td> <td><?php the_field(‘published_date’); ?></td> </tr> <?php endwhile; ?>

Translated words not showing child theme

Found my solution here in the following line after hours of researching for an answer. This little line is one thing that is left out by all tutorials and most answers Remember that your filenames have to be fr_FR.po & fr_FR.mo (depending on your language) and not domain-fr_FR.xx like the plugins do. So I just … Read more

Change Twenty Twelve’s comment form in a child theme

You can use filters in custom functions to modify the default output of the comments form via your child themes functions file. Modify the comment form “Leave a reply” text. add_filter( ‘comment_form_defaults’, ‘wpsites_modify_comment_form_title’ ); function wpsites_modify_comment_form_title( $defaults ) { $defaults[‘title_reply’] = __( ‘Leave a Comment’ ); return $defaults; } Remove The Website URL Field From … Read more

Where did my Theme Editor go?

The theme editor is not available on multisite installations. Changing this would require modifications to WordPress Core, that would need to be remade everytime you updated WordPress. I STRONGLY advise against this. Also keep in mind that if one user edits a theme, everyone else using that theme gets the changes. There is only one … Read more

Child theme functions.php

You should put your code in your child theme’s functions.php file. I believe that the documentation you reference is referring to the fresh state of the functions.php file and the fact that you don’t need to copy a parent theme’s functions into a child theme to use them.

Child Theme’s Read More Text

As this line of code is hardcoded in the index.php file rather than called via a function you only really have two options: Write your own function to call this code (with your chosen read more text), then replace the relevant section in the child theme’s index.php file with a call to this function. The … Read more