-
AuthorPosts
-
August 16, 2017 at 4:40 pm #839975
Hey guys,
the only time my custom style works is if I put it in the Quick CSS field of your theme.
the Child theme itself won’t respond. Any thoughts?- This topic was modified 7 years, 3 months ago by Justin.
August 17, 2017 at 12:58 am #840166Hey Justin,
Are you using Child/style.css
Do you have any caching plugins?
Have you tested with all plugins disabled?Best regards,
MikeAugust 17, 2017 at 1:07 am #840172No caching. Not using any plugins.
Very in-progress work.As in am I defining @import url(“../Enfold/style.css”); in the child theme or..?
I uploaded the Child Theme through your admin and activated it and imported PARENT settings.
August 17, 2017 at 6:49 am #840252Hi,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Best regards,
John TorvikAugust 17, 2017 at 7:12 am #840265See below, Let me know what you find, thanks!
August 18, 2017 at 3:57 pm #840908Hi Justin,
Could you point to the element that you are trying to apply the styles? Or the one that you need help with? I see the scroll down link styles there, but where is it?
Best regards,
VictoriaAugust 18, 2017 at 5:10 pm #840942Vic, I am working within the QUICK CSS section of your theme.
the site was responding to some styling, but not to most. So needless to say I placed all the CSS in the QUICK CSS section and I have been working there to keep the process rolling given to the delay and slow responses from support. I understand your theme is very popular now, and you guys have a ton of support tickets open – so I completely understand.August 18, 2017 at 11:30 pm #841077Any update here? Thanks!
August 20, 2017 at 3:37 pm #841685Hi,
Are you using @import url(“../Enfold/style.css”);
this can cause issues, as pointed out here: Child Themes: Enqueuing the parent theme stylesheet instead of using @import
Please try enqueuing in your functions.php filefunction load_parent_stylesheet() { wp_enqueue_style( 'parent-styles', get_template_directory_uri() . '/style.css' ); } add_action( 'wp_enqueue_scripts', 'load_parent_stylesheet' );
Here’s some more info about enqueuing from WordPress Codex
Best regards,
MikeAugust 21, 2017 at 4:59 pm #842091Thanks Mike that seemed to work, thanks!
I was not using @import.
I was only doing what I have always done in the past with Enfold, which is to install the child theme and import the parent theme through the Enfold admin settings. Not sire why it didn’t work this time. I have done it countless times in the past.August 24, 2017 at 2:29 pm #843513Hi,
Glad that Mike helped you. Thanks for using Enfold :)
Best regards,
NikkoOctober 19, 2017 at 9:57 pm #866479So I have the following code in my functions file…
function load_parent_stylesheet() {
wp_enqueue_style( ‘parent-styles’, get_template_directory_uri() . ‘/style.css’ );
}
add_action( ‘wp_enqueue_scripts’, ‘load_parent_stylesheet’ );Yet the only time I see the website reflect on the front end is when I add it to your CSS section under the GENERAL STYLING Tab.
Can you tell me what’s wrong with the above code? ThanksOctober 20, 2017 at 5:03 am #866557Hi Justin,
Can you try to replace this part of your code:
wp_enqueue_style( ‘parent-styles’, get_template_directory_uri() . ‘/style.css’ );
to this one:
wp_enqueue_script( 'parent-styles', get_template_directory_uri() . '/style.css', array(), '1.0.0', 'all' );
If you make an update to the css, just change 1.0.0 to 1.0.1, this will help fetch the new css instead of the cached version stored in the browser. Hope this helps.
Best regards,
NikkoOctober 20, 2017 at 5:42 am #866565Didn’t seem to work
October 20, 2017 at 5:46 am #866566In fact. … whatever that was scrunched my whole suite up LOL…it’s a mess. Removed all the code from the functions file.
October 20, 2017 at 6:01 am #866575Hi,
Try to use the child theme from this post: https://kriesi.at/documentation/enfold/using-a-child-theme/ then just add your other modifications there. Hope this would help.
Best regards,
NikkoOctober 20, 2017 at 6:14 am #866580That worked. Thanks!
October 20, 2017 at 6:33 am #866591Hi Justin,
Glad we could help. Thanks for using Enfold :)
Best regards,
NikkoOctober 20, 2017 at 11:13 pm #866904Not fixed. Faces with the same issue. Clearec cache and all that stuff. No changes reflecting on front end.
October 21, 2017 at 4:20 pm #867066Hi,
Sorry to hear you are still having this issue, I tried to login but it seems to not be working right now, can you please update the login info.
To recap, you would like all of your css in the Quick CSS to work from the child theme css instead?Best regards,
MikeOctober 23, 2017 at 7:06 pm #867796Hey Mike!
Yes. However it seems to be working and responding today?October 24, 2017 at 5:08 pm #868288Hi,
Glad that it worked, probably it’s cached. I tried to test it using the login details you gave but I got this:
Your IP has been flagged for potential security violations.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.