Lay Theme Forum

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

    custom logo per page

    General Discussion
    4
    5
    441
    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.
    • B
      badjuju last edited by badjuju

      Hi!

      I have some pages that have a white bg instead of a black one. I changed the menu colour without a problem, but I don't use a site title, instead a logo. I tried using this code to change the img, (slug-sound is the page im changing) but it doesn't seem to work at all. Do i have to do it with javascript?

      body.slug-sound a.sitetitle img:after {
      content: url ("http://wordpress.monomango.de/wp-content/uploads/2018/01/logo_sound_b.png");
      }

      Thank you,

      Juju

      1 Reply Last reply Reply Quote 0
      • B
        badjuju last edited by

        Ok, I'm the master of answering my own questions :) I made it work. In case anyone was wondering it is

        body.slug-yourslug .sitetitle img {
        content: url(http://whateveryoururlis.png);
        max-width: 120px;
        }

        You're welcome <3

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

          Hi @badjuju
          ah. This is the way to go!

          Thank you for publishing your solution!

          Many wishes!

          Marius

          www.mariusjopen.world

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

            Sorry for reviving this old topic. But is there any way to make this solution work in Firefox? It's working fine in Safari and Chrome but I didn't have any luck in firefox. Thanks a lot!

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

              add images in lay options → "custom css & html" in html, style them using css and show/hide them based on the current page
              http://laytheme.com/documentation.html#css-based-on-current-page

              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

              T
              A
              S

              Recent Topics

              • A

                Theme crashed - because of Polylang?

              • A

                can't change front page

              • M

                komische boxen auf der Website

              laytheme.com