CSS based on current page / different Logo
-
Hi there,
Ive got one question regarding this link/topic:
http://laytheme.com/documentation.html#css-based-on-current-pageIs it possible to do change the sitle title on an about page only, when the site title is a picture - so if you want to load a different picture on the about page?
Thanks again for your great Theme and Support.
-
Dear @michaelenglert
to make the website to autodetect if the sitetitle is a picture is possible, but some jQuery work. And probably not very performative.Why do you not make a CUSTOM CSS and activate it when you switch the sitetile to a picture manually?
Best!
Marius
-
Thanks a lot.
Kind of Like this?
(Im not really sure how to activate it. )<a class="sitetitle img" href="/tearsheets/" data-type="category" data-id="9" data-catid="" data-title="Michael Englert Fotograf Düsseldorf / Heidelberg">
<img src="http://www.michael-englert.com/wp-content/uploads/2019/06/logo_white.png" alt="Michael Englert Fotograf Düsseldorf / Heidelberg"></a>
-
Dear @michaelenglert
have a look here:
http://laytheme.com/documentation.html#custom-css-stylingbB
Marius -
Dear Marius,
Thanks for the link - that was the one i also referred to in my first post, and helped me change the text format - I just dont know yet how to to change a picture - any hint for me?
Best, Michael -
Dear @michaelenglert
well, you can have two divs.
One called div-1 and one called div-2.They have this code inside but each has a different path to the image.
Then you show and hide them, depending on the site you are one.Hope that helps!
Best!
Marius
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it