Space_Cadet_Dan Posted May 16, 2021 Posted May 16, 2021 Site URL: https://www.studioaem.com.au/blog I've added custom CSS to adjust the blog list page (overriding .BlogList-item-image (line 160) and .BlogList-item-title classes (line 165)). The CSS works fine when I open the page in the back-end, but the styling does not flow through to the live site. I can clearly see my styles overriding correctly, and I even added !important just to be sure. But they are still not present on the live site. Also tested injecting code at the page level with the same result. See screenshot of backend and live site;Screen Shot 2021-05-13 at 9.00.24 pm.pngScreen Shot 2021-05-13 at 9.00.34 pm.png Custom CSS I've added: //BLOG STYLES //Blog List Page .BlogList-item-image { background-color: #b1b1b9 !important; margin-bottom:0px !important; } .BlogList-item-title { background-color: #b1b1b9 !important; padding-top: 20px !important; padding-bottom: 20px !important; margin-bottom: 25px !important; padding-left: 20px !important; padding-right: 20px !important; color: #ffffff !important; font-style: italic !important; font-family: 'baskerville-display-pt' !important; } .Blog-meta { color: #b1b1b9 !important; } Seems the CSS is present in the page using view source but not being pulled to the page. Very confused...
tuanphan Posted May 18, 2021 Posted May 18, 2021 Hi. I see the CSS worked here. Did you solve the problem? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Space_Cadet_Dan Posted May 20, 2021 Author Posted May 20, 2021 On 5/18/2021 at 12:55 PM, tuanphan said: Hi. I see the CSS worked here. Did you solve the problem? No... The Styling should have the grey boxes but it doesn't on the live site.
tuanphan Posted May 21, 2021 Posted May 21, 2021 Try this new code /* blog background */ .BlogList-item-image, .BlogList-item-title { background: #b1b1b9 !important; margin-top: 0 !important; margin-bottom: 0; } a.BlogList-item-title { padding: 20px 25px !important; color: #fff; margin-bottom: 25px !important; font-family: "baskerville-display-pt" !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.