We’re rewarding the question askers & reputations are being recalculated! Read more.

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
-1
votes
4answers
520 views

Edit copyright in Hesita Child Theme

I am currently using a Hesita Child Theme. I want to edit the copyright text in the footer. I have found the text I need to edit in 'hestia/inc/views/main/class-hestia-footer.php' I think know what ...
1
vote
1answer
27 views

Child theme does not load all style

I know this thing has been posted several times now, but I can't figure it out. I am asking for your help. I have created theme child before, for other WordPress themes, but this one is giving me hard ...
1
vote
1answer
24 views

Change content of page in child theme using plugin

I have a child theme in which I created a page template. I am able to show different content based on time of day by writing some PHP inside the actual page e.g. if ( $time < '10:00'){ echo "The ...
0
votes
1answer
21 views

css media query question [closed]

I guess this is a novice question but here it is. I have been editing a child theme CSS and trying to change this specific code @media (min-width: 769px) #carousel-hestia-generic span.sub-...
0
votes
1answer
372 views

Twenty Seventeen - Navigation bar, logo, header size

I'm new here, like 3 days learning about WordPress, I think is very good, have some problems to understand the CSS, I think I'll get over it with time. I have a problem maybe someone can help me. ...
3
votes
1answer
138 views

Overriding core functions in child theme

Is it good practice to use children functions.php to override parent core functions? Example in Storefront theme : Core function if ( ! function_exists( 'storefront_primary_navigation_wrapper' ) ) {...
0
votes
1answer
57 views

How would I correctly implement a new if statement in a child functions file?

I want to make some changes to some Meta within an if statement on a parent function.php file and am doing so via child. The following is a snippet of the parent code: if( !function_exists('...
0
votes
1answer
2k views

Changes to functions.php not working

I am trying to make changes to my functions.php file. I have just set up my child theme for the Sydney theme, and have tested the stylesheet and that is working fine. I am looking to make changes to ...
0
votes
1answer
143 views

CSS getting injected into index from somewhere after theme/custom CSS is loaded, overriding all of my CSS [closed]

Using the inspector tool i can see that some CSS is getting injected/generated from somewhere (which i don't know where) which is overriding my own css. I've tried several things from using a child ...
0
votes
1answer
288 views

Change header.php of a specific Wordpress Multisite

I wish to change to change the header.php of child theme and add <meta name="theme-color" content="#ff6600" /> into it. However when using the editor under 'Network Admin', changes are ...
1
vote
1answer
96 views

Why is functions.php file in child not initializing and over-writing parent?

Good evening, I had some modifications in functions.php file to complete on my current wordpress website development. I have completed new code within the file and uploaded my edited function file ...
0
votes
1answer
24 views

Duplicate child theme incl. design changes

My goal is to be able to have two identical child themes except one thing (e.g. the color of a button) for the purpose of A/B testing using the Nelio AB Testing plugin. However, if I upload another ...
1
vote
3answers
792 views

Why is “get_template_directory_uri” pointing to child theme?

I have a notmytheme, the original css load order is like so: <link rel='stylesheet' id='something' href='http://localhost/mywp/wp-content/themes/notmytheme/something.css' type='text/css' media='...
0
votes
1answer
74 views

Move the social media icons to the left of a Wordpress nav menu for Soledad child Theme

I've been trying to move some social media icons (class="penci-topbar-social") to the left of a wp_nav_menu element for a bit and am stumped. I tried moving the social media code above the wp_nav_menu ...
0
votes
1answer
41 views

Adding custom html/css/images to Theme

I have a small header-of-sorts that's in a html file, with its own css file and a folder of images (svgs). I'm basically trying to put this on my site in the header, so I made a child theme and went ...
1
vote
0answers
132 views

Buddypress - Add the post_id in the bp_activity_add function

I would like to create an post-based contextual activity stream to create an activity that is related to the post where we wrote it, I almost done. I’m using a shortcode on the function.php to show ...
1
vote
2answers
544 views

Wordpress child theme fails to override parent navigation menu in /inc/structure/header.php

I'm fairly new to Wordpress. I'm using the shop-isle theme that has a default navigation menu. I'm trying to override this with a fancy ‘Ubermenu’ plugin but the default collapse symbol keeps ...
2
votes
3answers
433 views

override parent theme configuration in child functions.php

Hope someone can help, am looking for some suggestions on how to override/replace some functions that are loading in a parent theme and move them into the child theme so we can make alterations to the ...
0
votes
0answers
158 views

Enqueuing multiple stylesheets with a child theme

I've successfully enqueued a parent stylesheet and child stylesheet. I'd like to enqueue a third - ultimately a style.php file, but a second-style.css would be a good start. It's not working for me ...
2
votes
2answers
1k views

why is translation not working on theme?

Background I am using the theme Rookie from Sportpress. I created a child theme. Translation files are existing, especially german in my case. Wordpress is set to german language. The Problem ...
1
vote
0answers
19 views

Include custom JS without child theme

Is there a way to include custom JavaScript on a website, without using a child theme? I am currently working on a customers website. Unfortunately he somehow managed to make it kind of impossible to ...
1
vote
1answer
23 views

Which header is served

I am using theme (Knowledgedesk) that includes a header.php in its child theme's directory. However the changes I make by editing header.php are not visibles. It cannot be the cache, I already checked ...
2
votes
1answer
38 views

Want to create Child theme, but already edited Parent theme css files and some php files

I downloaded a WP theme and edited some php files and the css file to my liking (trial and error), and have been using that on my website - but didn't create a child theme. This means any updates I ...
1
vote
1answer
29 views

Adding a title below the logo

I need to add a site title as a text below the logo for a site. The title should be <h2> tag. The theme allows either image or text, but not both.
3
votes
2answers
48 views

Function to activate WordPress theme inside a plugin

I am creating a plugin that generates a theme, and so I want to have a checkbox at the end of the theme generation process that gives the possibility to activate the freshly created theme without ...
0
votes
2answers
39 views

How to make “upgrade safe” theme for a plugin?

I've installed a "Cart and Checkout" WP plugin and am trying to make sense of a statement found on the plugin author's website: "Make your own order form template, that upgrades safe and reside in ...
2
votes
1answer
550 views

Should I update my _s theme?

I know about using child themes and the reason behind using them. But how is it really different from building you theme on _s? Automattic update _s too, don't they? Obviously if I download the ...
1
vote
0answers
312 views

Show the content that is after the excerpt using child theme

How do I set a value for $stripteaser using the functions.php file in a child theme so that when the_content() is called on post pages only the post exerpt is shown? I have a theme that I am using. ...
0
votes
1answer
21 views

How can I write code in a plugin for my child theme that will allow me to use remove_action() based on if the current page is the home page?

Here is my current plugin code <?php /* Plugin Name: Site Plugin for this site Description: Site specific code changes for this site */ function remove_sf_actions() { remove_action( '...
0
votes
1answer
15 views

How to customize the WordPress 2014 theme, to have page using less horizontal margin?

How do I customize the WordPress 2014 theme, to have a single pages content use less horizontal margin? Do I need to create a custom theme? Or is there a simple way to modify or customize the theme ...
1
vote
2answers
40 views

Why is it needed to enqueue parent stylesheet in child theme?

WordPress documentation says to enqueue parent stylesheet in child theme: add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { $parent_style = '...
0
votes
1answer
419 views

How to override html codes in wordpress?

<article id="post-<?php the_ID(); ?>" <?php post_class( array('list-article', 'clearfix') ); ?>> <div class="list-article-thumb"> <a href="<?php echo esc_url( ...
0
votes
1answer
345 views

Wordpress Child Theme Stylesheet being loaded before Parent's minified .css

i created a child-theme for the theme customify, and wordpress is recognising the theme and loading it. There were some changes though that were not getting through, and i was paying attention to the ...
2
votes
2answers
5k views

Adding javascript to child theme

I want to apply some javascript to my header and want to know what the best way to implement it is. here is the source that contains the javascript I'm including - https://codepen.io/kaemak/pen/mHyKa/...
1
vote
1answer
52 views

Best practice when altering a parent theme function inside a child theme?

So Im not entirely sure what the best way to accomplish this task is exactly. I tried out some things just to see what worked but I have no idea if how I accomplished this task is the most appropriate ...
1
vote
1answer
484 views

get_theme_mod is returning a number rather than my image file

This is my first time attempting at implementing a custom panel into the customizer so bare with me please... In short, I am child-theming my site and want to make a basic modification to the parent ...
0
votes
1answer
15 views

Is it safe to update an old site after backing it up and activating a child theme?

I am pretty new to WP and WooCommerce and have been asked to do some basic SEO work on a site which has not been updated for quite a while. I created and activated a child theme and backed it up ...
0
votes
0answers
32 views

Child Theme Can't Find Parent In a Folder

I am trying to make a child theme for a parent theme that is in a folder and it is not working. I tried to use: "Template: Parent Theme Folder Name" and that did not work. I tried the parent theme ...
0
votes
2answers
463 views

Calling get_theme_mod() of an WP_Customize_Image_Control() returns an Array, how do I correctly return the image src for my custom theme?

I've registered a Customizer section called "Other Logos" and have used the WP_Customize_Image_Control() object to upload images that show up in the Customizer. I'm customizing Twentyseventeen in a ...
0
votes
1answer
400 views

How can I get this child theme stylesheet to properly load? Or if it is correct, why doesn't my child theme appearance match the parent?

I've read the Codex article on child themes, and numerous StackExchange Q&As, but I've not been able to get this figured out. The impact is that my child theme does not exhibit the same styling as ...
0
votes
1answer
101 views

random woocommerce categories are not showing when count enabled?

First I would like to apologize if this is off topic as it's based on Woocommerce and specific to a theme (Natural using wpOpal Themer), but the issue is a wordpress coding issue. My theme has a "...
0
votes
0answers
26 views

Problems with child theme

I am using the "Online Shop" theme with Hebrew installation of wordpress (RTL). I created a child theme, however the styling in messed up and RTL stopped working. since its a free version of the theme,...
0
votes
1answer
58 views

design has been broken in Wordpress child theme [closed]

I made a child theme as follows: 1. create a directory name: child 2. add a .css file inside this directory and the following content: /* Theme Name: Hestia Description: Hestia Child Theme ...
0
votes
1answer
374 views

Loading my main.js file from my child theme

I have built a child theme out from the original parent theme. Having on completion learnt that it is standard industry practice to build a child theme (preferably from the start.) I have managed to ...
1
vote
3answers
413 views

Child theme .css files are not overriding their parent .css files

In the last month I have been creating my very first website. Before this I had no coding knowledge so everyhting I learnt was new to me. My problem over the last week is that my child theme .css ...
1
vote
1answer
113 views

WordPress Child Theme PHP Code Change Issues

I’m pretty new to WordPress, and yesterday I tried creating my first child theme from the AccessPress-Enlighten 1.1.9 parent theme (I cheated by using the Child Themify plugin), made a slight ...
0
votes
1answer
24 views

child theme appears again when I put the header with parent name.

My wp site suddenly showed the default theme instead of its regular child-theme. Everyhing was restored when we put the parent theme name in the header of the style.css file. But the site was running ...
0
votes
1answer
1k views

Can't remove DIV from hooks in Storefront child theme [closed]

I am creating a child theme using WooCommerce Storefront. I am trying to use hooks as much as possible as I understand this is best practice. However, even after I have removed all of the actions ...
1
vote
0answers
187 views

Can I add customizer sections in the Twenty Seventeen theme?

I am trying to add another section to the twenty seventeen customizer theme. I have a functions.php in a child theme of the Twenty Seventeen wordpress theme. However, it does not seem to add it. Am I ...
0
votes
1answer
343 views

wp_get_current_user() and is_user_logged_in() in child theme's functions.php file don't work

Is there any reason why wp_get_current_user() doesn't return the logged in user's info array when used within functions.php file in a child theme, nor does the is_user_logged_in() return the correct ...