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. call to action In the top bar

call to action In the top bar

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 105 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.
  • N Offline
    N Offline
    nicolassa
    wrote on Mar 27, 2024, 6:43 PM last edited by
    #1

    On LayTheme website, there is a Call To Action "Buy Now" on the right-end side of the menu bar. On the mobile version it stays as "Buy Here" while the menu disappears behind three bars. How to make this ? I cannot find anything on the documentation or in the support.

    I am very interested in having all the time a CTA button in the top bar.

    Capture d'écran 2024-03-27 193625.png

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Mar 28, 2024, 11:35 AM last edited by arminunruh Apr 1, 2024, 9:42 AM
      #2

      how about u create a link in lay options → custom html at bottom:

      <a href="https://google.com" class="call-to-action">Buy Here</a>
      

      then in custom css for desktop:

      .call-to-action{
      display: none;
      }
      

      in custom css for mobile:

      .call-to-action{
      position: absolute;
      top: 20px;
      right: 100px;
      z-index: 50;
      }
      

      or try position: fixed;
      instead of position: absolute;

      so yea theres no setting for this, but u can create a custom button like that yourself with css and html

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nicolassa
        wrote on Mar 31, 2024, 2:33 PM last edited by
        #3

        Amazing thank you! I did not know this trick and it works perfectly

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Apr 1, 2024, 1:43 PM last edited by
          #4

          yes its css and html!
          if you learn it a little you can do many nice things!

          and then afterwards if you learn css transitions / animations

          and learn javascript a little, you can do much more!

          1 Reply Last reply
          0
          • A arminunruh referenced this topic on Apr 1, 2024, 1:45 PM
          • A arminunruh referenced this topic on Nov 19, 2024, 4:53 PM
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes

          2/4

          Mar 28, 2024, 11:35 AM


          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.
          2 out of 4
          • First post
            2/4
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search