Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. custom logo per page

custom logo per page

Scheduled Pinned Locked Moved General Discussion
5 Posts 4 Posters 635 Views
  • 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 Offline
    B Offline
    badjuju
    wrote on Jan 9, 2018, 3:20 PM last edited by badjuju Jan 9, 2018, 10:22 AM
    #1

    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
    0
    • B Offline
      B Offline
      badjuju
      wrote on Jan 10, 2018, 9:34 AM last edited by
      #2

      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
      0
      • M Offline
        M Offline
        mariusjopen
        Global Moderator
        wrote on Jan 11, 2018, 8:44 PM last edited by
        #3

        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
        0
        • M Offline
          M Offline
          miguelhahn
          wrote on Dec 18, 2019, 10:27 AM last edited by
          #4

          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
          0
          • A Offline
            A Offline
            arminunruh
            Global Moderator
            wrote on Dec 18, 2019, 4:59 PM last edited by
            #5

            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
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            I also code custom websites or custom Lay features.
            💿 Email me here: 💿
            info@laytheme.com

            Before you post:
            1. When using a WordPress Cache plugin, disable it or clear your cache.
            2. Update Lay Theme and all Lay Theme Addons
            3. Disable all Plugins
            4. 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:
            1. Post a link to where the problem is
            2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
            3. If the problem is difficult to explain, post screenshots / link to a video to explain it
            Online Users
            Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
            laytheme.com
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Recent
            • Tags
            • Popular
            • Users
            • Search