Load in wp admin assets from child theme
Load in wp admin assets from child theme
Load in wp admin assets from child theme
After removing the .DS_Store file from the images/headers folder, the Header admin panel is displaying the header image thumbnails perfectly! And yes, it is important to remove .DS_Store files before migrating the site to live server, or they will hitch a free ride and end up on the server. So Mac users, pay attention. To … Read more
There are a lot of specific to figure out, but your basic options are to handle it: In runtime. Stuff common core into plugin or just load it from same directory for all core themes. In development. Set up a version control, make a script that will check out common files to all core themes.
you can use page templates for that if you have a page template within your them, and if its a different theme all together then you can use Page Theme which is a plugin that can be used to display a different theme (not template) for each page/post of your blog.
Theme/Parent Theme/Child Theme usage is irrelevant here. Content is not added via Theme template file, no matter what Theme you use. Go to Dashboard -> Pages, and add new static Pages for each of your site’s pages. WordPress will generate them, and the Theme will display them. Edit ok so I figured out that I … Read more
If you replace genesis_get_additional_image_sizes(); with genesis_get_image_sizes() you can choose any size image for the widget thumbnail. Replacement featured-post-widget.php is available on GitHub. And here is the replacement code: $sizes = genesis_get_image_sizes(); foreach( (array) $sizes as $name => $size ) echo ‘<option value=”‘.esc_attr( $name ).'” ‘.selected( $name, $instance[‘image_size’], FALSE ).’>’.esc_html( $name ).’ ( ‘.$size[‘width’].’x’.$size[‘height’].’ )</option>’;
Make the slug translatable when you register the custom post type: register_post_type( ‘post_type_name’, array ( ‘rewrite’ => array ( ‘slug’ => _x( ‘post_type_name’, ‘URL slug’, ‘your_text_domain’ ) ) ) ); Then create a small plugin for the site where you want to change the slug: add_filter( ‘gettext_with_context’, ‘change_my_slug’, 10, 4 ); function change_my_slug( $translation, $text, … Read more
Many good text editors have a “Compare Files” funciton, so use that to compare an unedited copy of the css file and your edited copy and save the differences for your child theme.
On the init action, remove the action calling their function and enqueue an action calling your (differently named) function, like this: add_action(‘init’, ‘wpse_80107_init’); function wpse_80107_init() { // remove parent theme’s header content action remove_action(‘cyberchimps_header_content’, ‘cyberchimps_logo_icons’); // add child theme’s header content action add_action(‘cyberchimps_header_content’, ‘wpse_80107_logo_icons’); } function wpse_80107_logo_icons() { // your custom code here }
Basically I am using a child theme as the default theme every time a new blog is created. In the wp-config.php file – I was calling define(‘WP_DEFAULT_THEME’, ‘confit-childtheme’); define( ‘TEMPLATEPATH’, ‘/public_html/wp-content/themes/confit’); I read that when you are using a child theme as the default install theme, you have to reference the parent theme folder. This … Read more