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. HTML-Option for the Mobile Site Title

HTML-Option for the Mobile Site Title

Scheduled Pinned Locked Moved General Discussion
8 Posts 4 Posters 278 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
    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 Offline
      T Offline
      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 Offline
        K Offline
        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 Offline
          mariusjopenM Offline
          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 Offline
            B Offline
            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 Offline
              mariusjopenM Offline
              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 Offline
                B Offline
                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 Offline
                  mariusjopenM Offline
                  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
                  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