Lay Theme Forum

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

    Front page without site title?

    Feedback
    3
    6
    1701
    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.
    • S
      sorendrastrup last edited by

      Hello.
      Again thanks for the great work you're doing for us.
      I would like to ask if it's possible to have a page as a frontpage without the site title showing?
      I would like my front page to be a big version of the logo im using for my site title and then the menu still showing. Then when clicking of one of the things in the menu it goes to that page or category and then the site title shows.

      Hope you understand my question.

      Best regards
      Søren

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

        Hey!
        You can use the chrome inspector to find out the data-id and data-type attributes of the <body> tag of your frontpage and use that to hide your site title with css.

        Learn about the data- attributes and how to find them here: http://laythemeforum.com:4567/topic/10/different-backgroundcolor-for-single-project/5

        Then your css would look something like:

        body[data-id="32"][data-type="project"] .sitetitle {
        display: none;
        }
        
        1 Reply Last reply Reply Quote 0
        • D
          dnz last edited by

          Hey Armin,

          again highjacking another thread, sorry. :)

          So I tried using your code-snippet (the one above) but it still shows the title.

          What I would like to do is: I don't want the project/page title to show up. I have a site wide "global" title, a subtitle and an individual page title for each page there is. Is there any way to only show the global site title and the subtitle but not the individual page title for each page? So instead of site title – subtitle – page title it should look like site title – subtitle and that's it. Any way to do that? Your code doesn't seem to be working anymore.

          Thanks again, man!

          Best regards,
          Dennis

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

            Hey Dennis!
            You might want to watch this video to find out how to use the inspector of your browser:
            https://www.khanacademy.org/computing/computer-programming/html-css/web-development-tools/a/using-the-browser-developer-tools

            When you inspect your body element, you will see it has a data-id and data-type attribute.
            Then whatever title you want to show or hide you can do:

            Hide site title only in projects for example:

            body[data-type="project"] .sitetitle {
            display: none;
            }
            

            If your frontpage is of type "page" and has the id "1", hide the site title:

            body[data-type="page"][data-id="1"] .sitetitle {
            display: none;
            }
            

            Please note that your frontpage may not have an id of 1 and may not be of type "page". You have to find out which type and id it is by using the inspector of your browser. Also by using the inspector you can find out which CSS classes to use to hide and show things.

            Please read this for a walkthrough about using css based on the current page: http://laytheme.com/documentation.html#menu-color-based-on-current-page

            1 Reply Last reply Reply Quote 0
            • D
              dnz last edited by

              Yes, I did exactly that before posting here. Maybe I'm totally in the wrong here. I'm talking about the page title you'd usually see in the browser tab (in this case: "Front page without the site title? | Lay Theme Forum"), not the title ON the particular page. Would that still be right way to get rid of the project title? Because I tried exactly that and it didn't work or rather the title still shows up.

              That's the code I tried:

              body[data-type="page"] .sitetitle {
              display: none;
              }
              

              And this:

              body[data-type="page"][data-id="306"] .sitetitle {
              display: none;
              }
              

              Still shows up like this:
              Unbenannt-2.jpg

              I'm confused, did we talk at cross purposes?

              Thanks again!

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

                Hey Dennis,
                ah.
                There's no way to customize that title :/

                It's just "Your Website Name" on the frontpage and "Your Website Name" – "Your Project Name".
                I think this is a default that makes sense and I didn't create any customization options for that.

                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

                A

                Recent Topics

                • A

                  website error

                • Website gone all blank after update 6.3.1

                • S

                  can't update project category content

                • C

                  lightbox: how to go back to project instead of home with back button

                laytheme.com