Tagged: child theme, CSS
-
AuthorPosts
-
December 6, 2017 at 11:26 am #885495
Hello, I installed on my website the child theme through the informations on the documentation.
The website works, but the child theme doesn’t work: if I insert a style.css in the main directory enfold-child (also with the !important tag in CSS, the CSS style is not loaded in the page and also if I create (for example) the footer.php file in my child theme, it doesn’t replace the main file theme.
Have I to insert some code line in the function.php file?
How can I use the child theme?Thanks.
December 6, 2017 at 11:55 am #885515Hey Carmine,
When you add a child theme you will need to activate it as your theme. I’m assuming that you downloaded our child theme here
Note that if you have already built your site and are now adding a child theme you will need you export your theme setting from your parent theme so your stylings will show. Please see the link for a video about Moving to a Child Theme.Best regards,
MikeDecember 6, 2017 at 12:33 pm #885542This reply has been marked as private.December 6, 2017 at 1:14 pm #885571Hi Carmine,
Can you please be more specific about the element and what styles you’re trying to apply? And on which page?
Best regards,
VictoriaDecember 6, 2017 at 1:20 pm #885579Okay, I need to add a section in the footer.php file and to customize the CSS for some elements that I have inserted.
In the link in private content i send you the endfol-child directory on my website.
ThanksDecember 7, 2017 at 3:44 am #885877Hi,
Please explain in detail what custom css you are trying to apply to your site, also include a admin login in the private content area so we can take a closer look.
We will need to see your site and see why your child theme css is not being applied, or what conflicts are occurring.Best regards,
MikeDecember 8, 2017 at 6:14 pm #886561This reply has been marked as private.December 9, 2017 at 9:02 am #886741Hi,
The reason the child theme was giving an error that the parent theme was corrupt was because in the stylesheet of the child theme the Template was “Enfold” when it should have been “enfold”.
I have removed the rules in “CSS rapido” and the child theme is applying them now, and your error is gone. Please check.Best regards,
MikeDecember 10, 2017 at 12:19 am #887000Thank you for the correction of the error (I think that you should correct your child-theme too).
But I don’t agree with you about the correct functionality of the child-theme: the CSS rules in style.css of the child-theme isn’t applying.
Please clear your cache and try again.
Thanks.December 10, 2017 at 12:24 am #887001Also for example the footer.php file: it isn’t replaced with the new file that I inserted in the child-theme path.
Are you sure that I haven’t put nothing in the function.php file?
My best regards!
CarmineDecember 10, 2017 at 1:25 am #887011Sorry I noticed that the file footer.php is replaced correctly, but the style.css file isn’t applied
December 10, 2017 at 4:25 am #887037Hi,
Please explain in detail what custom css is not being applied to your site, such as a color of a element so it will be easy to tell when it is being applied.Best regards,
MikeDecember 11, 2017 at 12:10 am #887171Hi Mike,
I have in the chilf-theme folder the style.css file and ALL THE CSS RULES are not applied.
Did you understand?Thanks. Carmine.
December 11, 2017 at 5:28 am #887224Hi,
Sorry, but I didn’t have any issues changing the styles in your child theme style.css
I changed your a tag from #464646 to red, and I added a rule to make your h2.av-special-heading-tag red. Then I cleared your cache plugin and cleared my browser cache and took this screenshot:
I then changed everything back for you.Best regards,
MikeDecember 11, 2017 at 5:26 pm #887514Okay, sorry, there was a problem with my cache.
I now agree with you about the perfect work of child theme.Thanks you a lot for the support. You are the best.
My best regards.
CarmineDecember 12, 2017 at 7:32 am #887758Hi Carmine,
Glad to hear that. Thanks for using Enfold :)
Best regards,
Nikko -
AuthorPosts
- The topic ‘Child theme doesn't work’ is closed to new replies.