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. Site Title position

Site Title position

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 555 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.
  • K Offline
    K Offline
    Kristina
    wrote on Jul 26, 2016, 6:13 AM last edited by
    #1

    Hi Armin, thanks for your always great response on Lay Theme issues! Is there a way to indicate different positions of the site title on different pages? For example, I want the logo to be top centered on the home page but top right on all other pages. Thanks a lot!

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Jul 26, 2016, 1:45 PM last edited by
      #2

      Hey Kristina!
      As described here http://laytheme.com/documentation.html#menu-color-based-on-current-page you can style things based on the current page. You need to read the first few paragraphs to find out the right CSS selector for your frontpage. The css selector looks something like this: body[data-type="page"][data-id="20"] .sitetitle{

      First, you need to set the logo position to "top right" in "customize". Now, we use CSS only for the frontpage to have the logo centered there. Enter this css into "Lay Options" -> "Custom CSS & HTML" -> "Custom CSS for desktop version"

      body[data-type="page"][data-id="20"] .sitetitle{
      position: fixed;
      left: 50%;
      transform: translateX(-50%);
      -webkit-transform: translateX(-50%);
      right: auto;
      }
      

      So here our CSS selector is "body[data-type="page"][data-id="20"] .sitetitle{" but for you it is probably a different data-type and data-id. You need to change the data-type and data-id so the css targets your frontpage.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kristina
        wrote on Jul 27, 2016, 5:56 AM last edited by
        #3

        Thank so much! That worked!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes

        3/3

        Jul 27, 2016, 5:56 AM


        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.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Recent
        • Tags
        • Popular
        • Users
        • Search