All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
49 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
3answers
70 views

How do I create a child theme from PowerMag theme

I am using PowerMag 2.5 as parent and can't seem to find a way to get a working child theme. As far as I am now, I can only extend css in the style.css but as far as overriding, nothing has worked. ...
0
votes
1answer
24 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
1answer
129 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
388 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 ...
1
vote
3answers
368 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 ...
0
votes
1answer
388 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
2answers
52 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
1answer
688 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
2answers
112 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
1answer
608 views

Enqueue styles properly in a child theme and stylesheets location

I have inherited a site without a child theme and now we will have problems when it comes to update things. Everything in this theme was made on the main theme... I have now created a child theme but ...
1
vote
1answer
802 views

Priority loading file css in child theme

I'm trying to add other file css to child theme. I have a style.css file in child theme, but it's loaded by default, so I hadn't to add it in head. Now I want to add other css file for responsive ...
1
vote
1answer
375 views

Is my child theme working properly

A few days ago I created a child theme of my theme zerif lite. Everything is looking good and there is no problem at all. I just want to know are the created functions.php and style.css files correct ...
0
votes
1answer
399 views

how to fix loading scripts in child theme?

I am trying to integrate an animation in my Wordpress home page, for this I am trying to load scripts from "skrollr" library, but my styles and scripts don't load. this is the code I added is ...
0
votes
1answer
62 views

Creating child theme out of Coeur

I have been spending days looking into edit my theme. I understand that in order to edit the footer of my parent theme i would need to create a child theme. So here is my child theme folder on the ...
1
vote
1answer
481 views

Wordpress Child theme's css not loading

i created the child theme like https://codex.wordpress.org/Child_Themes Here is my style.css /* Theme Name: Flatsome Child Description: This is a child theme for Flatsome Theme Author: UX Themes ...
0
votes
1answer
1k 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. ...
0
votes
1answer
104 views

Is this the correct way to enqueue style sheets from parent theme and then from child theme in wordpress?

I am creating a child theme of a theme in WordPress. In Parent theme i have style.css and inside css folder of parent theme i have a base.css file ( and some more css files but the problem is only ...
0
votes
2answers
2k views

How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme

I am using Enough theme and i want to create a child theme the way suggested in codex i.e. using wp_enqueue_style. I am doing it the way it's explained but left margin more now like it's indented to ...
2
votes
1answer
253 views

Dequeue only stylesheets but not inline style added using wp_add_inline_style

I have this two line below on my parent theme: wp_enqueue_style('theme-dynamic-styles', get_template_directory_uri() . '/custom.css'); wp_add_inline_style('theme-dynamic-styles', $output); ...
1
vote
3answers
396 views

Child theme style repeated

I have create child theme with style.css and functions.css, I edit parts style.css in child theme to get best style. But some page have no effect and style.css from child theme repeated with another ...
2
votes
2answers
729 views

How do I set up a child-theme without using @import

I've always used @import for the css in my child-theme which i'm now told is bad practice. What is the best way to set up a child theme going forward? The latest solution on the wordpress codex ...
0
votes
3answers
3k views

Find a Parent Theme's stylesheet $handle when it registers a stylesheet

I have a child theme where I'm using the old @import to import in the CSS and I know this is no longer best practice. I've seen on the Wordpress codex how to do this properly, which seems ...
6
votes
3answers
17k 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
1answer
3k views

How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing

My parent theme's style.css has a dependency on bootstrap.css, which is also part of the parent theme. From parent themes functions.php: wp_enqueue_style('bootstrap', get_template_directory_uri().'/...
2
votes
2answers
2k 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
1answer
2k 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 ...
0
votes
1answer
460 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 ...
0
votes
1answer
494 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
1answer
40 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 ...
0
votes
2answers
1k views

I created a child theme and it doesn't work for some of the css files

I have a template with 4 css files: rtl.css, style.css, main.css, bootstrap.css. rtl.css and style.css are located in my template root, for example: my_template_root/style.css. main.css and ...
3
votes
1answer
222 views

How to use parent theme's enqueue methods

According to the codex, when creating a child theme, you have to manually enqueue the parent theme's scripts. My parent theme has logic to conditionally display various css files, cached css, and ...
1
vote
2answers
2k 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 ...
0
votes
1answer
2k views

Child style loads before all parent styles

I'm trying to move to child themes, but seem to have a problem with the order that stylesheets are loaded. I have a parent theme, which is using wp_enqueue_style to load all stylesheets, this ...
1
vote
1answer
1k views

ERROR MESSAGE: Missing index.php—Child Theme

I'm trying to load a child theme on a Custom WP Theme that was created by another developer. I created a stylesheet based on the Codex instructions but I'm not sure what's going wrong. Here's my ...
0
votes
1answer
100 views

child parent styles enqueue order

I have a wordpress theme which I hacked to my specifications. I know I'm not supposed to do that but it was long ago so now I'm trying to implement a child theme and I've put those revisions into the ...
2
votes
1answer
3k 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 ...
1
vote
1answer
2k 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
2k 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', '//fonts.googleapis.com/...
2
votes
3answers
92 views

How are updates to the style.css file in child theme recognized?

When I update the style.css in my active child theme, the changes are not immediately picked up. I tried doing a touch on the file, but the results have been inconsistent. It worked once, but did ...
1
vote
3answers
20k 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
1answer
126 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. ...
0
votes
1answer
628 views

Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme

With child themes we are supposed to leave parent functions.php in tact and extend it with the child functions.php. However parent functions.php typically define a whole load of include/requires which ...
0
votes
1answer
123 views

using wp enqueue style to create a CSS file specifically for a page template

I am trying to create a CSS file that only works for one page template. I am trying to do it using wp enqueue style but to no avail so far. I was able to get it to work (sort of) using the following ...
2
votes
1answer
3k views

Enqueue stylesheets if parent theme has more than one .css file

I just learnt about creating child themes from the Codex , it says to add add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-...
1
vote
1answer
2k views

@font-face broken in child theme

In my site I'm using Bootstrap for the basic structure (bootstrap.min.css), and using my own stylesheet (style.css) for further enhancements or modification. I declared @font-face in my stylesheet ...
1
vote
0answers
2k 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
1answer
99 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
2answers
534 views

Why won't my Custom CSS Load

I'm in the process of adding a jQuery plugin to a site I'm working on. Needless to say it requires loading a custom script; also a custom stylesheet. Starting with the stylesheet I've been ...
0
votes
1answer
1k views

custom template - override plugin template in child theme - issue with scripts

I'm using a custom template for the single-listing.php from WP Listings. I've used my own theme (Canvas by woothemes) single post template, and included the wp-listings code. http://pastebin.com/...