I’ve tried pretty much every single permutation of enqueuing that everydeveloper on every forum I’ve visited has said, “do this, it will work” about and still nothing.
I’ve done all the basics as per usual: create the folder, create the style.css file with the theme name and template theme name, created a separate functions.php to enqueue the style sheets and nothing.
I’ve checked the <head>
section to see if the stylesheet is being loaded first and not being allowed to overwrite but it’s not being loaded at all!
Obviously I’ve been through this forum and all over google for the last 5 hours trying to resolve this before some wag says, “hey, there’s a search feature…”
I’ve never had this issue before and for the life of me i can’t figure out why it’s doing this (or rather not doing this…).
Any help you guys could offer would be gratefully received. Any questions will be answered as soon as I can.
I’m not going to post my functions.php code as at the moment it’s empty awaiting new code to make it work!
Jack.
]]>/*
Theme Name: Twenty Seventeen Child Theme
Theme URI: https://yourwebsite.com
Author: Your Name
Author URI: https://yourwebsite.com
Template: twentyseventeen
Description: Child theme for Twenty Seventeen.
Version: 0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain: twentyseventeen-child
*/
functions.php file is:
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
Site is: devtester16.com
you need to login to see. [redacted]
Thanks – this has always been a really simple formality in the past but this time it doesn’t work.
Bob
Moderator note:
Never off credentials
https://codex.www.ads-software.com/Forum_Welcome#The_Bad_Stuff
Now for the why: The internet is a wonderful place full of very nice people and a few very bad ones. I’m sure everyone here is very nice however, by giving some ones keys to your house you are trusting they wont steal anything. Likewise the person who takes the keys is now responsible for the house FOREVER.
So, bottom line: Do not ask for or offer credentials on the forums.
]]>Please, any suggestions would be greatly appreciated!! (I’ve tried emailing the theme people and have had no response…)
Thanks
Here’s what the child theme is calling when I ‘live preview’ it – https://www.liveloveguitar.com/broken-child-theme-screen-shot/
]]>I created a child theme following a wp tutorial and it’s not working. It doesn’t have the style.css when I do a ‘live preview’. I tired another slightly different tutorial in Themify and still the same issue. My site looks unstyled and just messed up!
Live preview of child theme:
https://www.liveloveguitar.com/broken-child-theme-screen-shot/
How it’s supposed to look:
www.liveloveguitar.com
Any suggestions?
Thanks
]]>/* =Theme customization starts here
——————————————————- */
Please help with this problem. I have been all over the forums and cannot find out why this is not working.
Thank-you
(<?php)
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
function theme_enqueue_styles() {
$parent_style = 'parent-style';
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style )
);
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
//Exclude categories from Home.
function exclude_category_home( $query ) {
if ( $query->is_home ) {
$query->set( 'cat', '-1, -234' );
}
return $query;
}
add_filter( 'pre_get_posts', 'exclude_category_home' );
Custom css is a long file, but here’s the header:
/*
Theme Name: Twenty Fourteen Child
Theme URI: https://www.kimnovakartist.com/twentyfourteen-child/
Description: Twenty Fourteen Child Theme, developed for www.kimnovakartist.com
Author: Hannah West Design
Author URI: https://www.hannahwestdesign.com
Template: twentyfourteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: dark, one-column, left-sidebar, responsive-layout
Text Domain: twentyfourteen-child
*/
Not sure if I have included everything needed for someone to lend a hand, so let me know if there’s anything else you need. Naturally I have switched back to the Twenty Fourteen theme for now. Thanks!
]]>I know it’s something very simple, but nothing works, tried everything!
my site is https://martingolan.com/blog/home/
It looks odd because I created odd fonts in the child so I could see if my changes were taking.
Should I post copies of the css of my child theme and also its functions.php file?
Any help will be greatly appreciated!
]]>My child theme for Spectrum looks completely different than the parent. Where do I start customizing the code?
When I go to “Editor” in my WP Dashboard and enter code there, NOTHING changes.
Someone please help and point me in the right direction. Thank you so much.
]]>The web I am working in is this one.
The parent theme is called oblique
I follow the steps explained everywhere:
– I create a new folder in wp-content/themes/ called oblique-hijo
– I create a style.css inside the folder oblique-hijo
– I put the following in the style.css:
/*
Theme Name: Oblique Hijo
Theme URI: https://www.lucversleijen.nl/themes/oblique-demo/
Author: Fernando Diaz
Author URI: https://www.dos56.es
Description: Para hacer cambios en tema Oblique
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: oblique
Tags: one-column, two-columns, left-sidebar, right-sidebar, fluid-layout, custom-menu, full-width-template, theme-options
Template: oblique
*/
@import url("../oblique/style.css");
– I activate the child theme.
– And the result is what you can see here. All styles are lost.
I have to say that is not the first time I make a child theme and with other themes it worked properly.
I tried to make what is explained in the codex, creating a functions.php in child theme folder and write inside this code:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
and same result.
I have checked that if I write css code in the style.css of the child theme, it is showed in the web. So the style.css is ok, but the import of the parent styles is not working.
Note: The author of the theme is not answering in the support available.
Please, ?some idea?
Thanks a lot.
]]>