Lay Theme Forum

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

    Site Title Mailto Link?

    General Discussion
    4
    9
    172
    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.
    • P
      pathh last edited by

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

        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 Reply Quote 0
        • P
          pathh last edited by

          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 Reply Quote 0
          • P
            pathh last edited by

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

              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 Reply Quote 0
              • S
                Sophie last edited by

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

                  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 Reply Quote 0
                  • S
                    Sophie last edited by

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

                      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 Reply Quote 0
                      • First post
                        Last post
                      Post a link to where the problem is
                      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. Now see if your problem solved itself
                      5. 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

                      C
                      K
                      Q

                      Recent Topics

                      • L

                        HTML

                      • M

                        Burger menu in desktop and tablet view

                      • M

                        WPForms Lite not working with new theme update (5.5.5)

                      • K

                        remove licence from old site

                      laytheme.com