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
807 views

Add content after get_header

I'd like to add content directly after the div#main (end of header.php) and before /div#main (beginning of footer.php). I'm using an own child-template (of twentythirteen), that contains only ...
2
votes
1answer
29 views

WordPress master + child themes + Git workflow

I've been trying to work out the best solution to develop several WordPress sites using the following, but can't seem to decide what the best workflow would be. I got a master site - WordPress A. I ...
-4
votes
1answer
39 views

Twenty sixteen - full height

I want the twenty sixteen theme to "fill up" the height even if the page is empty. So.. If the content does not fill it up, it will be minimum full height.
0
votes
1answer
14 views

What happens to child theme if I change to new version of parent theme?

What happens to child theme if I change to new version of parent theme? Tesseract theme came out with new version. But what happens to all changes saved in original Tesseract child theme? Will changes ...
-1
votes
0answers
13 views

wordpress demo theme customization

https://selademo.wordpress.com/ I want the above layout for my website and i have the demo version of this theme which has some limited layout. How easily i can extend this demo theme to be like the ...
-3
votes
0answers
13 views

Avada theme product page move featured image to the end of thumbnails list [on hold]

Have been trying to do this by editing the files in childAvadaTheme/woocommerce/single-product/ product-thumbnails.php and product-image.php as the featured image should become the last on the large ...
1
vote
0answers
16 views

Getting 503 on various files

I'm having issues with BeTheme, to say the least. I can't figure out why loading a page, either on the front end or back end, always gives me TONS of 503 errors for the various javascript, css, or ...
-3
votes
0answers
19 views

wordpress - theme customization - healing-touch [on hold]

I have downloaded a theme from WordPress.org site and I have created a child theme on this. Now I have style.css for this. My requirement is to customize this as per my need. I am facing issues on ...
0
votes
0answers
25 views

wp_enqueue_scripts doesn't work for template pages

In my child theme's functions.php I wrote : function add_js() { echo "path is : ".get_stylesheet_directory_uri().'/js/script.js'; wp_enqueue_script( 'script', ...
0
votes
0answers
19 views

Changing admin options via child theme

I'm trying to add theme options via a child theme. The parent theme uses a function to set the array of options, then calls that function, all on the parent options.php page. I've tried copying the ...
-4
votes
0answers
24 views

Overriding parent theme's function [on hold]

I am new to editing WordPress themes. This is our site http://dev.fervormontreal.com/ I am using this wordpress woocommerce theme The Look - Clean, Responsive WooCommerce Theme purchased from ...
1
vote
1answer
23 views

Scratch theme needs to be a child theme, but for which parent? [on hold]

I have inherited a messy Wordpress site at work. The site was created from scratch with no obvious parent theme - it's not based on anything. I am trying to fix it without having to start from fresh, ...
1
vote
1answer
40 views

How to disable admin notice in child theme? [closed]

Similar to How to remove plugin install notice from non-admin users in Wordpress?, Disable update notification for individual plugins. I have purchased a theme, which displays a notice in admin panel ...
1
vote
1answer
544 views

Customizing default Mediaelement player

Good morning/afternoon everyone. Been playing around with the default wordpress mediaelement player and definitely loving it. I managed to customize the layout a little by overriding some css values ...
0
votes
4answers
674 views

How to activate the child theme in Wordpress?

I create a new style.css and use it in child theme. And I create a new folder in wp-content and name it as themename-child and upload the style.css that I created. Now, I go to wp dashboard -> ...
0
votes
1answer
22 views

What template is used for viewing Media Library Files?

I would like to create a special page template in my theme for viewing the media library files. Currently, when I click a Media Library image file I get a page template from the parent theme. Does ...
0
votes
2answers
53 views

Overriding Plugin Function in Child Theme

I have a plugin and a custom post type class like this. I want to override one its function in my child theme. class Inspiry_Property_Post_Type { /** * Register Property Post Type * @since 1.0.0 ...
0
votes
2answers
279 views

widgets_init actions not fired from functions.php's child theme

I need to add new sidebars for using them accordingly on different pages throughout my shop. I use Woocommerce and my own Storefront child theme. This is a snippet of what is in functions.php file ...
0
votes
1answer
35 views

Unable to change the priority with 'remove_action' and 'add_action' in child theme

I am using an Woo theme. In the parent theme, there is this function: function woothemes_wp_head() { do_action( 'woothemes_wp_head_before' ); if ( function_exists( 'woo_output_alt_stylesheet' ) ) ...
0
votes
1answer
28 views

How to create and populate with few links a menu in child theme functions.php?

The official Twenty Thirteen theme defines just a single menu in the /wp-content/themes/twentythirteen/header.php file: <?php wp_nav_menu( array( 'theme_location' => 'primary', ...
1
vote
3answers
2k views

Child themes CSS priority problems without using !important

I changed my WordPress site to use child themes, but the parent theme style has priority over any change I make on the child theme CSS. I can work around it using !important, however this is a patchy ...
0
votes
2answers
22 views

Childs PHP files not overwriting Parent's PHP files

I have a php file located at: .../wp-content/themes/kallyas-child/pagebuilder/elements/TH_TeamBox/TH_TeamBox.php I'm trying to use the above file to overwrite the parent's TH_TeamBox.php file which ...
0
votes
1answer
46 views

LESS not working in WordPress [closed]

How to run the CSS preprocessor (LESS) in WordPress? I'm trying to apply LESS in my child theme. I create variable.less and place it in the child theme folder css/less/variable.less and I call this ...
-4
votes
1answer
41 views

WordPress Custom Fonts Problem! [closed]

I added custom fonts on my website! Its based on Genesis Framework.More then 15 days web fonts show every where,suddenly fonts missing but i checkout my fonts link and fonts deceleration on CSS its ...
1
vote
1answer
73 views

How to pass a numeric id to a page template?

I am using a Wordpress installation with Wordpress Social Login as a "canvas" for an HTML5-based board game. In the file /wp-content/themes/twentythirteen-child/front-page.php I get the numeric ID of ...
1
vote
1answer
725 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 ...
0
votes
2answers
526 views

How to override a theme template file with a child theme template file (of the same name)

In my main theme functions.php I have: require_once (THEME_PATH . "/woocommerce/tw_woocommerce.php"); So I created a woocommerce folder in my child theme folder and copied the tw_woocommerce.php ...
1
vote
1answer
49 views

How to add #navbar to all page links?

I have several Wordpress websites with large images at their tops, using 2013 child theme. How to add #navbar anchor to all page links, so that the browser scrolls down a bit, when a user clicks a ...
0
votes
1answer
32 views

Set a link in child theme style.css to jump to #main [closed]

I have created a 2013 child theme by creating these 2 files - /wp-content/themes/twentythirteen-child/style.css: @import url("../twentythirteen/style.css"); .site-header .home-link { ...
1
vote
0answers
249 views

unzip a folder on specific location and delete the zip file

After the lots of search. I am deciding to post my question here. Basically i want to upload a zip file in my wordpress site from my admin panel. And also extract this file to specific location with ...
0
votes
3answers
8k views

Child theme error “Template is missing”

I created a child theme of twentytwelve using the following in style.css: /* Theme Name: WAMSA Template: twentytwelve version: 0.1 */ @import url("../twentytwelve/style.css"); In Appearance > ...
0
votes
1answer
33 views

How to overwrite template.php file

I'm using a child theme for my website. I tried to enqueue template.php file wich exists in includes folder but making any change in the template.php file of the child folder didn't affect pages. ...
0
votes
1answer
459 views

Use admin options from parent theme in child theme

I am creating a child theme for the first time. I have created style.css (and imported parent theme's style.css in it) and also some new files and additional functions in functions.php. Now, I have ...
0
votes
0answers
14 views

Add an option of the theme-options with a child theme

I want to add an option to the theme options of a theme. How can I do this? Replicate the theme_options.php within my child theme directory and include this file? This does not seem to work. How does ...
1
vote
1answer
48 views

How to NOT call Font Awesome or font icons in WordPress

I have a theme that makes use of Font Awesome icons by default. I have replaced all of them with custom .png icons using CSS. However, on web page load, the font-awesome icons takes up a size or ...
0
votes
1answer
49 views

Translate a child theme with pure PHP and gettext

I'm trying to translate a child theme of a parent theme that has all msgstr empty. Therefore, I've created the file de_DE.mo using the "WordPress i18n tools" recommended in the docs together with ...
0
votes
0answers
27 views

Override Class in Child Theme

I'm trying to customize a theme using Child Theme but I can't find a way to override this class, anyone can help me ? I've tried if ( ! class_exists('Extra_Page_Post_Settings_Meta_Box extends') { // ...
0
votes
1answer
50 views

Divi theme including javascript

I have tested the html and the css and the js independently of wordpress and all works fine. So trying to integrate it into wordpress. I have added the html code as a code module. I have created a ...
-1
votes
1answer
71 views

Modify Blog Module layout in Child theme

I need to adjust how the featured image is displayed in their blog module. I need to change the display of the Featured Image from an IMG tag to a Background Image. So I can modify the frame (DIV) of ...
0
votes
1answer
19 views

Is it possible to slow down site with a bulky child theme?

I am creating a child theme for my theme and as I go through all the modifications that I want, I am almost overriding all the templates and adding a functions to the theme and had to dequeue some ...
0
votes
3answers
40 views

Should template files be copied to the child theme for editing?

I know that the style.css file needs to be copied to the child theme before being edited for changes. Is that also true for template.php files? If so, do I need to just copy the specific template ...
0
votes
1answer
32 views

What is the correct workflow for modifying child themes?

I am asking the following because I am fairly new to WordPress. I want to change the fontsize for post titles. This is what I do: I inspect a post title in Chrome using devtools, and find out the ...
0
votes
1answer
38 views

How to dequeue / deregister parent theme style

I'm making a child theme, and I'd like to remove the Google font style that it calls for in 'fonts-style' function nada_theme_styles() { wp_register_style( 'fonts-style', ...
0
votes
1answer
34 views

Free theme and css/bootstrap.css is not overridden in the child theme

Why is wordpress still using the bootstrap.css from the parent theme, whenI have a child theme which (successfuly for other things) inherits the parent theme? I have the bootstrap.css settled in the ...
1
vote
2answers
29 views

Passing variable from child theme to parent theme

I want to pass my google map custom colors from my child theme to my parent theme. So in my Parent Theme's functions.php I have add_filter( 'post_thumbnail_html', "map_thumbnail" ); function ...
0
votes
1answer
23 views

Creating a child theme after numerous edits to parent theme

So a quick explanation: I started messing with Wordpress a couple of years ago, having experience with HTML, CSS and some PHP. At that time I was paid a few hundred bucks to whip together a ...
0
votes
0answers
14 views

Theme Customization API limits

I am building a theme with a lot of theme options and I'm using the native customizer to include those customizations options. So I have registered dozens of new panels, sections, settings, controls ...
0
votes
2answers
29 views

Passing variable from child theme function to parent theme filter

I want to pass a variable from my child theme function to a filter which resides in my parent theme. Please let me know whether below code will work or not ? Is it the right way ? Code in Parent ...
0
votes
1answer
32 views

Hook in parent theme Menu function

Trying to modify Parent Menus function on child theme, the original function is: function original_theme_menus() { $menus = array( 'top' => __( 'Top Menu', 'theme-domain' ), ...
19
votes
2answers
15k views

How do I dequeue a parent theme's CSS file?

My parent theme (Starkers) adds a CSS file that I'm trying to remove (I want to use @import instead so I can override styles more easily). Starkers has the following in its functions.php: add_action( ...