changes to layout.css in child theme
in Other
Hi guys,
please forgive me if my question is stupid. I'm a newbie when it comes to child themes:
I'm running woocommerce and with this I'm having an issue that the breadcrumbs are sometimes so long that they need two rows to show up. I was able to fix this by changing the width in the following two css lines in layout.css:
#Subheader .title { margin-bottom: 0; width: 60%; float: left; }
This worked perfectly but I didn't want to have this in the original layout.css so I tried to add this to the child's theme style.css. And that didn't work.#Subheader ul.breadcrumbs { display: block; width: 40%; margin: 1px 0 0; font-size: 1em !important; float: right; text-align: right; }
Is there any chance to do this change in the child theme?
Thanks for your support.
Cheers,
quicky2000
Comments
child theme works only with 2 files: functions.php and style.css what has been described on https://codex.wordpress.org/Child_Themes - so from child theme you can overwrite styles but you can not remove current styles from parent theme at all. To remove these styles completely, it would be necessary to modify parent theme files.
Thanks!