Questions tagged [child-theme]

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.

Filter by
Sorted by
Tagged with
0 votes
2 answers
318 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 ...
Mike Wills's user avatar
3 votes
2 answers
5k 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 ...
micah's user avatar
  • 235
4 votes
1 answer
5k 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 ...
user478's user avatar
  • 333
0 votes
1 answer
1k 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 ...
Levi's user avatar
  • 43
3 votes
2 answers
5k 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 ...
emaynard's user avatar
  • 133
2 votes
1 answer
484 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 ...
Samia Ruponti's user avatar
0 votes
1 answer
2k 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 load ...
Svish's user avatar
  • 229
0 votes
1 answer
508 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 ...
xLRDxREVENGEx's user avatar
0 votes
2 answers
201 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 ...
Naftuli Kay's user avatar
3 votes
1 answer
425 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 ...
Gavin's user avatar
  • 39
44 votes
3 answers
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. ...
Tom Auger's user avatar
  • 7,016
1 vote
3 answers
1k 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?
Marcus Downing's user avatar
0 votes
1 answer
285 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 ...
laras126's user avatar
  • 391
3 votes
2 answers
138 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 ...
mikkelbreum's user avatar
  • 2,445
1 vote
2 answers
534 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 ...
Gopal's user avatar
  • 33
1 vote
2 answers
263 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 ...
Vecta's user avatar
  • 141
1 vote
1 answer
537 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 ...
웃mauri's user avatar
  • 439
3 votes
2 answers
1k 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 ...
mikkelbreum's user avatar
  • 2,445
1 vote
3 answers
2k 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 ...
Mia's user avatar
  • 83
19 votes
6 answers
21k 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 ...
Osu's user avatar
  • 1,442
1 vote
1 answer
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. ...
slugmandrew's user avatar
3 votes
1 answer
626 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, ...
laras126's user avatar
  • 391
1 vote
3 answers
5k 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' ) ) ...
user avatar
2 votes
2 answers
688 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" role=...
Nohl's user avatar
  • 282
0 votes
2 answers
2k 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 ...
Das's user avatar
  • 53
1 vote
2 answers
788 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 ...
Ben Ackles's user avatar
0 votes
2 answers
1k 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 ...
Prateek Mishra's user avatar
1 vote
2 answers
715 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 ...
Das's user avatar
  • 53
4 votes
5 answers
4k 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. ...
Atif's user avatar
  • 1,088
1 vote
1 answer
2k 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 ...
Osu's user avatar
  • 1,442
2 votes
2 answers
3k 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 ...
dorich's user avatar
  • 177
31 votes
1 answer
17k 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 ...
Osu's user avatar
  • 1,442
1 vote
3 answers
5k 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 . "/languages/$...
user avatar
2 votes
1 answer
665 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 ...
Dees's user avatar
  • 23
9 votes
8 answers
45k 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 ...
curtismchale's user avatar
  • 2,599

1
21 22 23 24
25