Lay Theme Forum

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

    Site Title position

    General Discussion
    2
    3
    474
    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.
    • K
      Kristina last edited by

      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 Reply Quote 0
      • arminunruh
        arminunruh Global Moderator last edited by

        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 Reply Quote 0
        • K
          Kristina last edited by

          Thank so much! That worked!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Post a link to where the problem is if possible, please <3
          I don't answer or check forum DMs, please just post on the forum.
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com

          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. When using a WordPress Cache plugin, disable it or clear your cache. Now see if your problem solved itself.
          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

          M
          B

          Recent Topics

          • Search as icon instead of text?

          • FILTER Categories showing all projects

          • H

            Vimeo embed with autoplay and loop is really slow...help!

          • A

            website not loading on iphone safari

          laytheme.com