PearlPort Posted January 14, 2022 Share Posted January 14, 2022 Is it possible to change the background colour for each page individually using code injection? Including product pages? I'm using 7.1. Link to comment
tuanphan Posted January 15, 2022 Share Posted January 15, 2022 Edit each page >> Add a Code Block >> paste this code <style> header#header {background-color: red !important;} </style> then save & reload the site PearlPort 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
PearlPort Posted January 21, 2022 Author Share Posted January 21, 2022 Thanks for your help Tuanphan, The code worked great and was able to change the header, but is there a code that can change the whole page background? Link to comment
tuanphan Posted January 24, 2022 Share Posted January 24, 2022 On 1/22/2022 at 6:31 AM, PearlPort said: Thanks for your help Tuanphan, The code worked great and was able to change the header, but is there a code that can change the whole page background? For all individual products, or product in screenshot only? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
PearlPort Posted January 24, 2022 Author Share Posted January 24, 2022 Individual products Link to comment
tuanphan Posted January 25, 2022 Share Posted January 25, 2022 21 hours ago, PearlPort said: Individual products Add this page to Shop Page Header <style> body.view-item header#header {background-color: red !important;} body.view-item .section-background {background-color: red !important;} </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
PearlPort Posted January 25, 2022 Author Share Posted January 25, 2022 Thank you Tuan, very much appreciated. In the end, I applied this code to a code block in the Additional Info section when editing the product. (Attached a screen show if this helps anyone else) Worked a treat! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment