Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    CSS based on current page / different Logo

    General Discussion
    2
    6
    279
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      michaelenglert last edited by

      Hi there,

      Ive got one question regarding this link/topic:
      http://laytheme.com/documentation.html#css-based-on-current-page

      Is 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.

      1 Reply Last reply Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        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

        www.mariusjopen.world

        1 Reply Last reply Reply Quote 0
        • M
          michaelenglert last edited by

          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>
          
          1 Reply Last reply Reply Quote 0
          • mariusjopen
            mariusjopen Global Moderator last edited by

            Dear @michaelenglert
            have a look here:
            http://laytheme.com/documentation.html#custom-css-styling

            bB
            Marius

            www.mariusjopen.world

            1 Reply Last reply Reply Quote 0
            • M
              michaelenglert last edited by

              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

              1 Reply Last reply Reply Quote 0
              • mariusjopen
                mariusjopen Global Moderator last edited by

                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

                www.mariusjopen.world

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                Before you post

                Use the Search Feature. Maybe there is already a solution to your issue.

                1. Update Lay Theme and all Lay Theme Addons
                2. Disable all Plugins
                3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
                4. Now see if your problem solved itself
                5. Go here, see if your problem is listed here:
                Troubleshooting

                When you post:
                1. Post a link to where the problem is
                2. If the problem is difficult to explain, post screenshots / link to a video to explain it

                Thanks!

                Online Users

                Recent Topics

                • T

                  OpenType Feature

                • T

                  Split Screen just on front page / subpages without the split?

                • T

                  problem when I click on the category filter buttons on mobile

                • G

                  z index has different behaviors on different pages

                laytheme.com