Strofront child theme CSS
-
Hello,
I created a child theme for the storefront theme to customize it a bit.
I followed the classic approach by creating style.css and functions.php file in a new storefront-child directory, I integrated the css with the necessary php code and made the right declarations within the css file.
Everything is well recognized when I apply the child theme to my website, at php level, no worries, the functions I add are well executed but when I make changes in the CSS file, it does not change the appearance of the website …
If I add CSS code in “Appearance> Customize> Additional CSS” it works well, but if I remove the CSS and put it in the CSS file of my child theme, it doesn’t work, I don’t understand, it’s not the purpose of the child theme, to be able to make its CSS modifications directly in the child file ?
The code I add is used to center the images above the title of the articles:
ul.products li.product > a img { display: inline; }And another code which allows you to manage the margin on the left of the page to have a kind of full page instead of a big blank on the left side:
.col-full { max-width: inherit; padding-left:80px; }Again everything works in Additional CSS in WordPress but not in the style.css file of the child theme, I don’t understand why…
Did i miss something ?
Can someone help me ?
Thanks in advance
The topic ‘Strofront child theme CSS’ is closed to new replies.
