Tagged Questions

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
1answer
66 views

Order of stylesheets in child theme

Parent theme has following code for including styles. function blue_planet_scripts() { wp_enqueue_style( 'blue-planet-style', get_stylesheet_uri() ); wp_enqueue_style( ...
0
votes
2answers
372 views

How do I add new post formats to twenty fourteen theme?

I haven't used WP since 3.5 so forgive my rustiness. I am trying to customize a child theme of twenty fourteen for WP 3.9.1 to make it more like a corporate site rather than a magazine site. My ...
0
votes
1answer
47 views

unregister_sidebar in child theme not working

I'm woking on a chid theme for Ohsik. I'm trying to unregister a sidebar, but nothing is working Here's my function.php child theme code: function unregister_footer_sidebar() { unregister_sidebar( ...
0
votes
1answer
49 views

What are some best practices for switching the child theme for a production site?

I have a couple questions related to the best strategy for changing a site's theme. I'll do my best to set the stage apologies ahead of time for the verbosity. I setup a Genesis/Zigzag Press - ...
0
votes
0answers
53 views

Child theme functions randomly broke while editing a page — no errors

My client was editing pages in the admin area of their site, which is currently being hosted on my server. Two of them were logged in simultaneously, but that shouldn't matter. We're using a child ...
0
votes
1answer
41 views

Disable child theme css on certain pages

I have activated child theme and would need to completely disable the child theme css on certain pages, leaving only the parent theme css. How can this be done?
1
vote
3answers
127 views

Website Broken on Activating Child Theme! [closed]

My website (at http://japanaddicts.org) breaks down in a rudimentary pro-HTML form when I try to activate the child theme. My parent theme is Codilight. Just explain to me why is this happening. I am ...
1
vote
1answer
46 views

Which settings/options are saved on a theme-basis and how does this affect theme-switching?

I realized that when switching the theme (in my case to a child theme) some things don't stay the same: Widgets Menus At least this is what I found out so far: Widgets Don't lose widgets when ...
0
votes
2answers
35 views

Unregistering custom tinymce plugin?

I want to unregister a custom tinymce plugin in one of my child themes. The custom tinymce plugin uses basically: http://codex.wordpress.org/Plugin_API/Filter_Reference/mce_external_plugins excerpt: ...
0
votes
2answers
187 views

Where is wp-content/themes folder?

I want to make a child theme for my wordpress site (Twenty-Fourteen theme fyi) so that my changes aren't overridden with every update. Apparently I need to create a new subfolder for the child theme ...
-1
votes
2answers
167 views

Redeclare a function in a child theme

I want to redeclare a function that I inherited from the parent theme. When I do it in functions.php, I get a fatal error that redeclaration is not possible. I did a workaround: creating a modified ...
0
votes
0answers
19 views

Help with a childtheme [duplicate]

I'm looking to put a slider into the header of my childtheme. I'm using the Govpress free theme I really don't know where to start. Any suggestions/advice to make this work?
0
votes
5answers
152 views

Attributing a version number to a child theme's main stylesheet

In header.php, I like to attribute a version number to the stylesheet so that the browser gets forced to refresh it. But when working with a child theme, its stylesheet is not explicitely called, ...
0
votes
0answers
13 views

Remove HTML from search.php of my parent theme

I have a child theme of the theme alterna, and in the search.php (among other code) there is this: <div class="entry-left-side span3"> <div ...
0
votes
1answer
36 views

Proper way to make a tweaked theme into child-theme setting?

I've started to tweak a theme and it's been a long road since I've started, but I came across several sources that claim this is not a good practice. I've read that the proper way to do this ...
-1
votes
3answers
368 views

How do I remove specific styles from the parent theme css using the child theme css?

There are some styles in my parent theme that I would simply remove from the stylesheet if I was not using a child theme. Obviously, I do not want to remove them from the parent css, but is there a ...
1
vote
3answers
207 views

Cannot get Child Theme to load latest version of style.css

I'm using a Child theme set up correctly. But I just cannot get changes in the Child theme style.css to be reflected in the site. Tried emptying the browser cache a million times and it doesn't work! ...
0
votes
0answers
28 views

How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?

I have a framework for WordPress that can be embedded into either a plugin, a theme or a child theme. In order to return proper URLs, the script needs to determine from where it is being executed. I ...
0
votes
1answer
178 views

Change Twenty Twelve's comment form in a child theme

I have a custom child theme of Twenty Twelve. I want to change the text "Leave a reply" to "Leave a comment", and also remove the website field from the comments form. How can I do this? Thanks.
0
votes
1answer
43 views

Child theme preview missing

I followed the beginner steps for creating a child theme. The child theme was created and it appears as an option on my Themes page. But unlike the other Themes on the page (including its parent), ...
3
votes
1answer
100 views

jquery script not enqueued in child theme

I need a little bit of insight here with the following problem? I've created a child theme called 'test_child' which I am trying to extend in the following way: This is the test_child/functions.php ...
1
vote
1answer
143 views

Create a theme by combining a parent and a child theme

I have an existing parent theme and a child theme. I have a need for one theme that has the power of the parent theme and the design of the child theme. Is there anyway to quickly combine these two ...
0
votes
2answers
29 views

Child Theme > Template

I incorrectly updated the Template variable in the style sheet of a Child theme. However, the site was still OK. The only indication I had was in the Admin section it said this theme did not exist. ...
0
votes
0answers
247 views

Nav menu custom walker not working in child theme

I have created a parent theme with a nav menu walker that works fine. I want to create a child theme to show small variations to the client. When I put the same code in the child theme it doesn't ...
0
votes
1answer
97 views

css3-mediaqueries-js failing with child theme

Within my parent theme functions.php, I have the following snippet: // Add mediaqueries-js function footer_scripts(){ echo '<!--[if lt IE 9]><script ...
0
votes
2answers
2k views

How to change default header image dimensions in twentyfourteen child theme?

I'm creating a child theme based on twentyfourteen and wish to change the custom header image dimensions. The custom header page states: Images should be at least 1260 pixels wide. Suggested width ...
0
votes
0answers
118 views

Renaming child-theme folder fixed wp-admin blank

Weird thing happened. I have a WP instance, and I wanted to have a local copy. I copied all the files, created the DB from a dump, and everything seemed to be working fine. However, when going to ...
1
vote
1answer
81 views

Injecting a custom sql query into a page/theme

I have written a custom sql query for our WordPress website (fairly elaborate and not achievable with the standard wordpress code) and I've got it to run via $pageposts = $wpdb->get_results($query, ...
0
votes
0answers
123 views

Create shortcode in Child Theme?

I have created a child theme, and I am trying to add a shortcode to its functions.php file, by doing this: // functions.php of child theme <?php include(WP_CONTENT_DIR . ...
1
vote
0answers
65 views

How to add anchor tag at the top of posts, past the header and nav bar?

my site is here: http://wedding.chloe-nguyen.com/ I am using the default Twenty Fourteen theme, modifying in a child theme (my first). Scroll down and click one of the featured posts. You get taken ...
1
vote
1answer
147 views

Why does my functions.php cause white-screen and media-library issues?

Overview: I was authoring a child-theme, and realized that functions.php was causing problems with the media-library and caused a "white-screen" to appear after editing a post. I fixed the issue by ...
2
votes
3answers
662 views

Wordpress Multisite: Have the same header and footer of main-blog on all sub-blogs

I'm trying to do the following: I have a Main-Blog and dozens of subblogs. I want all the subblogs to use the same theme (or child-theme, not sure yet) but have the same navigationitems of the ...
0
votes
2answers
50 views

How do I change a parent theme's function through the child theme?

This is a function loaded by the parent theme. Through the child theme, I want to change this function to say is_single instead of is_singular. What would be the correct way to achieve this? ...
0
votes
1answer
70 views

How do I change the login logo URL and hover title?

I am trying to change the login logo URL and hover title. I am using the code below but return bloginfo('url'); and return bloginfo('name'); aren't outputting the desired href and title. I'm also ...
0
votes
1answer
37 views

How do I target the child theme with get_bloginfo();?

In the code below (which is located in my functions.php file), in reference to ('.get_bloginfo('template_url').', I'm trying to target my child theme but it keeps coming up as the parent theme. /* == ...
0
votes
0answers
89 views

WordPress picks parent theme's home page template instead of the child theme one

I have a child theme with its own home custom page template called "template-home.php" (Template Name: Home Template). I have a "Home" page which uses this template. Everything works fine as long as ...
-3
votes
1answer
46 views

Obtaining the original unchanged Theme [closed]

Quite a few months back, I had used a third party theme v 2.9 in my wordpress site. I made a few custom changes to css/.php based on my needs. Now, I plan to upgrade the theme to v3.8. Before doing ...
2
votes
2answers
88 views

How to stop PHP code running when in a child theme

I understand you can add extra CSS on top of the parent theme, but how do you remove PHP code from functions.php? I want to remove the Masonry plugin in twentyfourteen theme, and have located the ...
0
votes
0answers
64 views

Editing Admin via Child Theme

The theme I'm using provides an admin page that lets me easily setup jQuery sliders on my homepage, but it limits me to five. Now I'm able to go into the actual theme files and edit these so that the ...
0
votes
0answers
41 views

Using Apply Filters in the-bootstrap parent theme

In the-bootstrap parent theme there is the following function: function the_bootstrap_custom_background_setup() { $args = apply_filters( 'the_bootstrap_custom_background_args', array( ...
0
votes
2answers
30 views

adding a unique page to an existing site

i'm a wp newbie working with an existing site. i've been asked to add a unique page to the site and am having trouble finding out if this is possible. the current site would not change, but there ...
0
votes
0answers
87 views

Child theme not working properly

There's a theme that I want to customise and when I use a child theme in it's most basic form, the main navigation bar disappears, the fonts seem different and there's a few other oddities. The ...
0
votes
1answer
91 views

how to edit functions.php in a child theme

I am using wordpress for my site. I am using a theme called esplanade. I have made a child theme folder and created a style.css with the required lines in it. My child theme is working nicely. I have ...
0
votes
2answers
48 views

What the mean about 'child theme'?

I have read on codewordpress about this issue. In the article "A WordPress child theme is a theme that inherits the functionality of another theme". And then on stylesheet use import style from parent ...
-1
votes
1answer
592 views

Modify Twenty Fourteen Child Theme Single.php

I need to create a child theme for the default Twenty Fourteen theme. And in this child theme, I need to modify the single.php. This is the default single.php get_header(); ?> <div ...
4
votes
1answer
179 views

Adding Action Hooks In Parent Theme For Easier Child Theme Customization

I was wondering why isn't anyone (haven't be able to find one with it) adding custom hooks an the beginning and at the end of the theme's function.php for theme development. The reason I'm asking ...
0
votes
1answer
143 views

Running javascript in a child theme. Works in jsfiddle

Here is the JSFiddle http://jsfiddle.net/thornwalker/3LQjS/ I'm trying to get it to run on my wordpress blog and having no luck. My skill is novice at best, but up until now I've been able to muddle ...
0
votes
1answer
130 views

Translated words not showing child theme

I created a child theme for the twentyfourteen theme which I'm also busy translating into Afrikaans. I've named the file pietergoosen-af_AF.po and placed it into the languages file and I've ...
0
votes
0answers
105 views

Cannot modify a registered custom post type rewrite slug

I'm using this function in my child theme to modify the rewrite slug from custom post type that was registered on the parent theme. But it doesn't work. function change_rewrite_rules() { global ...
-1
votes
2answers
242 views

Body classes in child theme

In the theme twentyfouteen, the full-width class is defined with the following code if ( ( ! is_active_sidebar( 'sidebar-2' ) ) || is_page_template( 'page-templates/full-width.php' )  || ...