Child theming is a safe way to modify a theme. A child theme inherits a "parent themes" styles and then can selectively override. This alternative to "destructive" editing allows for safe updating of the parent theme and provides an easy way to undo theme changes.

learn more… | top users | synonyms

0
votes
3answers
1k views

How to create a second index.php?

I need a duplicate of index.php, but slightly modified. I added a "vote it up" plugin. So, I want the user to select how to display posts - by new or by popular. I know what to add to second ...
10
votes
1answer
11k views

How to override javascript files in child theme?

I'm loading some javascript files in the parent theme. The path in the parent theme is "scripts" > "custom.js". In the child theme, I'm creating the same path (scripts > custom.js) and changing some ...
1
vote
1answer
1k views

How do I get my child-theme to work with my theme's includes folder?

I am using the Canvas WordPress theme (by WooThemes.com) and successfully made a child-theme to override my CSS. However, I would also like to apply the same child-theme principles to my theme's ...
4
votes
2answers
865 views

How to add Color Picker in Theme Options for the following?

I have a landscaping09 theme. This is what I want: A theme options page with the following options: ->Theme color background change (with colorpicker) or url of the image ->General Navbar color ...
0
votes
1answer
5k views

Modify Twentyeleven child theme CSS - How to change body font size?

I've created a twentyeleven-child theme and activated it. I'm trying to increase the size of the body font on all pages. Do I do this in style.css of the twentyeleven-child theme? I can't find the ...
1
vote
1answer
195 views

Wordpress Child Themes

I'm trying to redeclare a function in a wordpress child theme that is already in use by the parent theme. However, I get a "Fatal error: Cannot redeclare" message when trying to do so. Also, I've ...
1
vote
1answer
403 views

Use child theme on certain pages and not others?

I have created a twenty-eleven child theme, I want to know if its possible to only load that child theme on certain pages, maybe with the custom page templates? I have looked via google and on here ...
0
votes
2answers
304 views

Child Theme Based on Toolbox Not Found

I am trying to make a child theme of the toolbox theme and use it in my multisite WP 3.2 install. I created a folder called wp-content/themes/charlie-repair-toolkit/ then I created style.css in the ...
3
votes
2answers
2k views

How do I remove a require_once admin panel from the parent theme from the child theme functions.php?

In the parent theme, the following is at the bottom of the functions.php file. require_once(TEMPLATEPATH . '/admin/admin-menu.php'); In the child theme's function.php, this code will include the ...
3
votes
1answer
3k views

How to override function in functions.php of parent theme?

I have created child of theme twentyten. I tried to override function written below /** * Returns a "Continue Reading" link for excerpts * * @since Twenty Ten 1.0 * @return string "Continue ...
0
votes
1answer
355 views

Load template inside a parent template

Inside of my current theme directory, I created a folder called "mobile" which contains a separate set of template files, all optimized for mobile. Now, say I setup a function that detects a mobile ...
2
votes
2answers
1k views

Do all files in child theme override the parent?

I'm curious if other PHP code files besides functions.php, WP template files and style.css in a child theme actually override the same file in a parent them? I am working with a client that has a ...
2
votes
1answer
283 views

I want to add a class to main div on a template. how can I do that?

I'm building a template for twentyten child theme. I need to add a class in in the template page, but not in other pages.My template inherits the header and footer, so, I can't change any markup ...
0
votes
1answer
803 views

Best way to add some custom javascript using jquery to a child theme

I use the default TwentyTen theme and I have made a child theme with some CSS adjustments, and that's pretty much it. Now I'd like to do two things Make the theme load the latest jQuery, and to ...
0
votes
1answer
319 views

use child theme for mobile version

I have never used the child theme function. so I am curious if it is possible to use this function to create a mobile version or no? I know that there are mobile plugins for this but I was curious if ...
0
votes
2answers
180 views

How to modify theme content in Thematic?

I'm not new to PHP, HTML, CSS, and the like, not at all, but I'm definitely new to creating Wordpress themes. I was recommended to use the Thematic theme as a base theme and modify it using functions ...
3
votes
1answer
412 views

How do I create a magazine type menu - sub-menu setup using wp_nav_menu and child of twentyten? [closed]

I'm trying to create a menu and submenu with a child theme of twentyten, similar to this at the LA Times: http://www.latimes.com/ where when the site is first opened, it displays a set of childs, and ...
35
votes
3answers
2k views

Opinions and recommendations on the best barebones base theme [closed]

Preamble I'm finding myself building more and more WP sites "from scratch" as it were (ie: ignoring any theme designs out there and just creating a design wireframe purely on the needs of the client. ...
1
vote
3answers
802 views

Child themes: disabling the parent

I'm creating a parent theme and several child themes. But how can I prevent the parent theme from ever being used?
0
votes
1answer
185 views

conditionally echo <br /> in meta box data loop

I am working on a Thematic child theme and using the WPAlchemy Meta Box Class to create an 'Artwork Info' meta box that I want to conditionally echo like this at the end of each post: Title Medium ...
3
votes
2answers
127 views

something like is_childtheme()

in the functions.php of a parent theme, I would like to check for wheter the theme is being run directly, or it is run via a child theme. Is there a conventional way of doing this? I cant find the ...
1
vote
2answers
387 views

Grandchild themes and optimal network architecture

I'm trying to create a versatile Wordpress network . In order to speed up development, I imagine I'll need to channel projects to different themes at an early stage. At the core of my network ...
1
vote
2answers
197 views

Themes—Child Themes

I apologize if this is a very basic question, but I am very new to working with Wordpress. I'm looking into using Wordpress as a CMS for a new site I'm building but I'm not sure I understand some of ...
1
vote
1answer
425 views

PHP loop that selects posts with a particular in-post option

Im trying to build a Featured post slider to show any post that i mark as a "featured" (with a in-post option) regardless the category or tag type... Im new to wordpress and although I understand a ...
2
votes
2answers
847 views

add generated stylesheet from parent theme after child-themes style.css

I have a child-theme -> parent-theme setup, where I need to have stylesheet called generated.css loaded in addition to the style.css file added by the active child-theme. The generated.css file is ...
1
vote
3answers
1k views

Child Theme for Mobile Browsers

Is it possible to use a child theme for mobile browsers? I have tried various plugins but the mobile browser only displays the main theme, the theme that is meant for viewing the website on the ...
9
votes
6answers
6k views

How to *remove* a parent theme page template from a child theme?

I'm using the TwentyTen theme to create a child theme, but I can't seem to get rid of the 'One column, no sidebar' page template that is in the TwentyTen parent theme. I thought just copying it over ...
1
vote
1answer
2k views

How to replace the twentyten image header with my flash banner?

I am currently building a site using a child theme for the first time. Basically, I have a flash banner the client has already had made, and want to replace the twentyten image banner with the flash. ...
3
votes
1answer
534 views

Post format selector in Thematic child theme post class

I'm having a very hard time implementing post formats in my Thematic child theme. I am able to add post format theme support and add content via the big conditional statement, but the .format-video, ...
0
votes
2answers
2k views

How do I get a child theme to load scripts from the parent theme?

Pretty new to WordPress functions, so apologies if this is basic stuff. I've designed a parent theme that registers and enqueues two scripts like so: if ( !function_exists( 'scherzo_scripts' ) ) ...
1
vote
2answers
625 views

Twenty Ten child theme has post on an inner page. Cant get that page to use my desired template

I have a child theme based on Twenty Ten. I have split out the sidebar and secondary side bar so they can be used on different pages. sidebar.php file: <div id="primary" class="widget-area" ...
0
votes
2answers
1k views

Customized widget area - how to override or filter class xoxo?

I need some help with restyling my alternate widget areas. I've created some new widget areas, and placed one into the main content of my index.php. This works just fine, however i want to style it ...
0
votes
2answers
621 views

How do you auto-activate plugins from child themes

(repost from Theme Hybrid Community) Let's assume a plugin or multiple-plugins are hosted on WordPress.org. Can you automatically activate plugins with the functions.php of a child theme? Is there ...
0
votes
2answers
703 views

How to edit background color of only one sidebar?

I'm using Oulipo theme on this site, which has two sidebars. I'd like to ask how can I change the background color of only the left sidebar? Also, how to change the text, hyperlink, hover and ...
1
vote
2answers
557 views

Twentyten Child Theme: header images display messed up in admin panel

WordPress v 3.0.4 multisite-network enabled, local installation w MAMP 1.9.4, PHP 5.3.2, Theme: Twentyten child TWO PROBLEMS: 1) Display of header image thumbnails in admin panel and 2) path to ...
3
votes
5answers
2k views

Removing custom background and header feature in child theme

I am creating a child theme using twentyten as my base. I am looking for a way to remove the features of adding custom header and background without touching functions.php file in the parent theme. ...
0
votes
1answer
780 views

How to remove set_post_thumbnail_size() in child themes?

I'm really stuck on this - this follows on from this post: How to override parent functions in child themes I can't figure out how to override Twenty Ten's set_post_thumbnail_size() function. I've ...
2
votes
2answers
2k views

Loading Scripts on Specific Pages

In child theme I created a functions.php file that loads scripts and style files, the code is below. The section that loads libraries and scripts to all pages other than admin, in other words the ...
14
votes
1answer
8k views

How to override parent functions in child themes?

I've been reading around and trying to figure out how to do this, but for some reason I can't seem to override parent functions in my child theme. I'm using TwentyTen as a parent - can anyone tell me ...
1
vote
3answers
3k views

Link to a .po file in a child theme

i'm working in a twenty ten child theme, i want to change the load_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' ); $locale = get_locale(); $locale_file = TEMPLATEPATH . ...
1
vote
1answer
483 views

A good way to add a different background image for each page?

I'm working an a Thematic child theme wherein I need to have a unique image decorating each of the site's main pages, from a pre-defined set of permanent images. It would also be ideal to have one of ...
4
votes
7answers
5k views

Include files in child theme functions file

Typically in my theme function file I'll require other files to keep things neat. require_once("foo.php"); Now working in a child theme I'd like to do that same. I'm adding custom admin options and ...