Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. HTML-Option for the Mobile Site Title

HTML-Option for the Mobile Site Title

Scheduled Pinned Locked Moved General Discussion
8 Posts 4 Posters 1.6k Views 2 Watching
  • 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
    K
    kappe
    wrote on last edited by
    #1

    Hi, I used Armins tip to display my logo as an svg in the Site Title, I've pasted the svg code to 'Site Title HTML' and it's working well. Unfortunately this feature is missing in the mobile view, there's no HTML-option for the Mobile Site Title.

    Is it possible to add it?

    Or does it also work with Custom CSS? If so (just as a hint), is it done with a short code snippet or is it more complex?

    Thanks, Andreas

    1 Reply Last reply
    0
    • T
      T
      thomasmaier
      wrote on last edited by
      #2

      You could probably leave the mobile title empty or with a nonbreaking space and include the svg via the css background tag

      1 Reply Last reply
      0
      • K
        K
        kappe
        wrote on last edited by
        #3

        Hm, css, sounds like custom, code etc... unfortunately I don't have enough knowledge to do it. I still have the option loading the svg as an image, but this HTML thing seems to be very elegant, eg. to position exactly. anyway, thanks for your idea.

        1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          Dear @kappe
          you cut put it into the CUSTOM CSS section.
          And modify it with CUSTOM CSS mobile.

          You could also play around with the CUSTOM CSS mobile to un-hide the sitetitle.
          Can you post a link?
          Best!
          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • B
            B
            bro
            wrote on last edited by
            #5

            @mariusjopen

            I too would love an HTML option for the Mobile Site Title. Mostly because the site title on one of my sites is long, and having an HTML option would allow me to shorten it for Mobile. E.g. a site title like the following:

            <div>Short Title<span style="display: none"> — Extension of the Site Title</span></div>

            So the site title would display in the extended version in the browser history and in the browser window title, but on the website would only display the short version of the title.

            I was happy to see this was made possible for Desktop, but the Mobile still uses the general site title. The only way I have been able to solve this is by adding code to the PHP, which needs to be repeated with every update.

            1 Reply Last reply
            0
            • mariusjopenM
              mariusjopenM
              mariusjopen
              Global Moderator
              wrote on last edited by
              #6

              Dear @bro
              can you not just create a CUSTOM HTML element and ONLY display it on mobile via mobile CSS?
              Best!
              Marius

              www.mariusjopen.world

              B 1 Reply Last reply
              0
              • mariusjopenM mariusjopen

                Dear @bro
                can you not just create a CUSTOM HTML element and ONLY display it on mobile via mobile CSS?
                Best!
                Marius

                B
                B
                bro
                wrote on last edited by
                #7

                Dear @mariusjopen

                Yes, that absolutely works. Thanks for the suggestion!

                (However, I do not prefer to do it this way: custom HTML elements load differently than other elements on the site (fade ins), which in my opinion looks a little sloppy, especially for a site title – though I fully understand if you do not share the same concern.)

                Best regards!

                1 Reply Last reply
                0
                • mariusjopenM
                  mariusjopenM
                  mariusjopen
                  Global Moderator
                  wrote on last edited by
                  #8

                  Dear @bro
                  can you send me an example of how the CUSTOM HTML element loads differently?
                  I cannot see it.
                  Best!
                  Marius

                  www.mariusjopen.world

                  1 Reply Last reply
                  0

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  Online Users
                  I
                  itsbadjujuju
                  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