Reggi Posted April 30, 2023 Share Posted April 30, 2023 Hi, Website this applies to is: https://fasaderehabilitering.no I have added the logo in SVG format using this code in the Design panel: /* Hide the normal logo */ .header-title-logo img, .header-mobile-logo img { visibility: hidden !important; } /* Set background image to be the SVG logo */ .header-title-logo a, .header-mobile-logo a{ /* Change the "left" below to "center" or "right" if you want the logo positioned in the middle or on the right */ background: url("/s/FRlogo-blue.svg") no-repeat left center !important; background-size: contain !important; } My question is: How can I add different versions of the logo to specific pages? For example, I have a page that has a black background, and on this page, I want to add the logo variant that is in white. Help is appreciated! Kind regards, Regont Link to comment
Solution tuanphan Posted May 1, 2023 Solution Share Posted May 1, 2023 First, you can use this shorter code header#header img { content: url(https://www.fasaderehabilitering.no/s/FRlogo-blue.svg); } Next, to apply code on One Page, you can add this to Page Header <style> header#header img { content: url(https://www.fasaderehabilitering.no/s/FRlogo-blue.svg); } </style> If you use Basic/Personal Plan, you can edit page > Add a Code Block (anywhere on page) > Paste this code <style> header#header img { content: url(https://www.fasaderehabilitering.no/s/FRlogo-blue.svg); } </style> 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!) Link to comment
Reggi Posted May 11, 2023 Author Share Posted May 11, 2023 On 5/1/2023 at 10:54 AM, tuanphan said: First, you can use this shorter code header#header img { content: url(https://www.fasaderehabilitering.no/s/FRlogo-blue.svg); } Next, to apply code on One Page, you can add this to Page Header <style> header#header img { content: url(https://www.fasaderehabilitering.no/s/FRlogo-blue.svg); } </style> If you use Basic/Personal Plan, you can edit page > Add a Code Block (anywhere on page) > Paste this code <style> header#header img { content: url(https://www.fasaderehabilitering.no/s/FRlogo-blue.svg); } </style> Thank you @tuanphan! You are an absolute King!!! Kind regards, Regont 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