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 Mailto Link?

Site Title Mailto Link?

Scheduled Pinned Locked Moved General Discussion
9 Posts 4 Posters 482 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.
  • P Offline
    P Offline
    pathh
    wrote on last edited by
    #1

    Hi there,

    I'm trying to make the site logo (site title) link to a mailto instead of linking back to the homepage.

    Searching back through discussions, I found a way to make the title link null, (below)

    a.sitetitle{
    pointer-events: none;
    }
    

    I wasn't sure of the correct formatting to link it to an email address, but given the above it looks like it can be done correct?

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

      Dear @pathh
      whatever works, works.

      You could also use a CUSTOM HTML box to place the link.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pathh
        wrote on last edited by
        #3

        hi @mariusjopen thanks for the confirmation! How would I convert the site title using the custom html box? I'm not sure how to change. Any help is appreciated.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          pathh
          wrote on last edited by
          #4

          Adding this jQuery broke the site, any idea why?

          <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js">
          </script>

          <script>
          $(document).ready(function(){
          $("a.sitetitle").click(function () {
          window.open("mailto:maryalrightmary@gmail.com", "_blank");
          });
          });
          </script>

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

            Dear @pathh

            jQuery is included by default.

            Have a look here for the Javscript:
            http://laytheme.com/documentation.html#custom-javascript

            Best!

            Marius

            www.mariusjopen.world

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sophie
              wrote on last edited by
              #6

              Hello,
              I tried to do the same thing and put Pathh CSS and Javascript but it didn't work. The link on the site title is just desactivated and not linked to my mail:to.

              How can I do that by the html bow ? I just want my html box to look exactly the same as the site title ( on my full screen image, and without background etc.)
              Thank you,
              best regards

              sophie

              1 Reply Last reply
              0
              • arminunruhA Offline
                arminunruhA Offline
                arminunruh
                Global Moderator
                wrote on last edited by
                #7

                hey with the latest version of lay theme you can use html in your site title

                customize → site title → choose "html" in "Text, Image or HTML"
                then enter your html that contains a mailto link

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sophie
                  wrote on last edited by
                  #8

                  Hello Armin
                  I dit that but it made a white box under my text below my full screen images and was not the good styling.
                  I Guess I have to put the styling manually in that Html box ? ( no bakcground, font style etc..). But donn't really k,ow how to do that.
                  But I put my mail:to in the menu instead for the moment to resolve that.

                  Thanks

                  Sophie

                  1 Reply Last reply
                  0
                  • arminunruhA Offline
                    arminunruhA Offline
                    arminunruh
                    Global Moderator
                    wrote on last edited by arminunruh
                    #9

                    you can do sth like:

                    <a href="mailto:hello@outlook.com" class="_Default">Hello</div>

                    where _Default is just your textformat that you want to use. It is the HTML class of the textformat:
                    0_1576690316572_Screenshot 2019-12-18 at 18.31.40.png

                    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
                    dafvD
                    dafv
                    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