All Questions
27 questions
0
votes
1
answer
35
views
Why would the child theme load in the Customize preview, but not on the site itself?
I have my child theme folder, the style.css sheet with the required template comment and some custom css, and I have the functions.php page with the required enqueing code.
Everything seems to be in ...
0
votes
1
answer
1k
views
How to enqueue stylesheets in child-theme functions.php?
I know this topic is old hat, but I still got issues with that.
I use the elementor child-theme and try to enqueue the following stylesheets
hello-child-theme-folder: style.css
hello-child-theme/...
0
votes
1
answer
60
views
Dequeing Parent Fontawesome Deques Parent Styles
I'm trying to dequeue fontawesome from a parent theme in my child theme. For this I use the following code:
function si_dequeue_child_styles()
{
wp_dequeue_style('wp-bootstrap-starter-fontawesome-...
0
votes
2
answers
259
views
Browser stacks different versions of style.css
I am working with a child theme from 'Astra'. I am editing 'style.css' of my child theme for styling my website. I added this code to my child's functions.php' file to enqueue the father-child styles.
...
0
votes
1
answer
322
views
My Child Theme CSS Isn't Working
I have a child theme of the twenty seventeen theme. The problem i'm having is that my child theme css isn't working. I have checked the page source and the css file for my child theme is loading but ...
0
votes
1
answer
43
views
Font size decreases when child theme is created from parent theme?
While creating and activating the child theme, the font size decreases as compared to parent theme
<?php function my_theme_enqueue_styles() {
$parent_style = 'spicepress-style'; // This is '...
0
votes
1
answer
933
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
1
answer
579
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
1
answer
645
views
Parent theme styles overriding child theme CSS [closed]
I am having some trouble getting my child theme to work perfectly. I have successfully created a child theme based on the Flexia theme. I have made child themes before but not come across this issue ...
-2
votes
2
answers
319
views
How to create my own style.css file in an wordpress child-theme
I am working in the theme called Understrap. I work in the child-theme. The theme
allready has a style.css and functions.php. I want to create my own style.css file
and overwrite that style.css ...
0
votes
1
answer
1k
views
Child theme stylesheet not always overriding "index"
I'm using a child theme and I'm using a "styles.css" file to override things from the parent theme. My styles (there are many stylesheets) are enqueued like this:
function my_theme_enqueue_styles() {
...
0
votes
2
answers
130
views
Child Theme not loading multiple stylesheets
I have little experience with creating a Child Theme.
Just want to make some changes to css on the website.
When I use the inspect mode to see which CSS was being used, I saw it was still linking to ...
0
votes
1
answer
2k
views
Child Theme CSS not showing at all
I have a child theme that is not showing my CSS changes at all. When I inspect element, the changes don't show in the explorer window. I look in the head and the child theme style is not enqueuing.
...
7
votes
3
answers
34k
views
Why is the Child Theme Stylesheet Not Loading?
I'm using the HashOne theme and created a child theme in order to make various color changes to our website.
However, the changes I've made to the child theme stylesheet are only taking place in the ...
2
votes
2
answers
3k
views
Style.css in child theme is loaded before Bootstrap
When I enqueue Bootstrap with wp_enqueue_style(), Bootstrap is loaded after the child theme's style.css and will override style.css.
One way to load style.css after Bootstrap is to enqueue style.css ...
0
votes
1
answer
3k
views
get_template_directory_uri() links to child theme not parent
I have created a child theme of a parent theme which shows correctly on wp theme selector and activates.
I have created a style.css of said child theme with the following meta information:
/*
Theme ...
1
vote
1
answer
634
views
Different ways to load child theme css
I've noticed that when I load the CSS for a child theme in the way shown here: https://digwp.com/2016/01/include-styles-child-theme/, I get double entries in the chrome inspector for my CSS rules, and ...
1
vote
1
answer
875
views
Parent theme CSS overriding child CSS rules
This seems like a common problem but as I modify my child themes style.css the parent style.css rules override any changes I make.
One of the main solutions seems to be to correctly enqueuing your ...
2
votes
1
answer
48
views
De-registering parent style sheet css recommended?
Just a general question: I am just wondering, why every tutorial for child themes still includes the parent's stylesheet. Would it not be preferable to de-enqueue & to de-register the parent's ...
1
vote
2
answers
4k
views
Child Theme Not Overriding Parent Theme
I know this question has been asked many times. I even spent the entire day yesterday getting things to work but to no avail. I am pretty sure I am missing out on something small//silly but I am ...
2
votes
1
answer
4k
views
Understanding child theme functions.php
I have successfully created a child theme for the Emmet Lite template, using the information provided on here and here
The CSS file of the child theme looks like this:
/*
Theme name: Emmet Child
...
6
votes
3
answers
38k
views
Give priority to child theme stylesheet
I've created a child theme and the main style.css works perfectly fine. However, the parent theme has another stylesheet which I want to import and create the same for child theme and use it instead.
...
0
votes
1
answer
202
views
How Can I Use A Child Theme Effectively When Parent's CSS Is Located in a 'CSS folder'?
I already have a child theme and a new style.css for it, but CSS changes in my child theme's style.css don't do anything because the parent theme's different CSS stylesheets come from a "CSS" folder. ...
1
vote
0
answers
3k
views
why this media query is not working / not loading when I put it in child theme?
I am trying to create a separate style sheet for responsive behavior in a site.
my folder structure:
magzine/style.css
magazine-child/style.css
magazine-child/responsive.css
Magazine is my theme ...
0
votes
1
answer
174
views
Modify arguments for parent theme's `wp_register_style` via child theme
Working on a child theme for site with a good deal of separate stylesheets being registered/enqueued from the theme and plugins. I'd like to change some attributes of the <link> tags in the ...
0
votes
0
answers
286
views
Why are my parent styles loading after my child styles?
I am trying to build a child theme that uses SCSS. However, every time I make changes and recompile my stylesheet, it gets overridden by the parent stylesheet. This is because, in the head of my site, ...
1
vote
1
answer
506
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?