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. Button fixed position disable by cover option

Button fixed position disable by cover option

Scheduled Pinned Locked Moved General Discussion
2 Posts 2 Posters 1.1k 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.
  • S Offline
    S Offline
    sw
    wrote on last edited by
    #1

    Hey!
    I'have created a button ("selected work") on the side of my project page, that bring back to the project work page. I have add it manually on each project Gridder.

    The button as position:fixed; and work on all the project page but not on these two, it 's seams that the cover option disable the position:fixed; of that button. Any idea how to fix it ?

    http://www.simonwannaz.com/viceland/
    http://www.simonwannaz.com/fox-college-basketball/

    Second question, is it possible to add HTML code that would be only on the project pages, so it would appear on the page automatically ?

    thanks for the help
    S.

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

      Hey sw!

      Sorry for the late reply, maybe I have overlooked this post.

      Hm you could remove the links "selected work" from all of your projects.

      Then in "lay options" -> "custom html & css" -> "custom html at bottom" enter:

      <a class="selectedwork _Default" href="http://www.simonwannaz.com/selectedwork/" data-type="page" data-id="87" data-title="selected work">selected work</a>
      

      Now in "custom css for desktop"
      do:

      a.selectedwork{
          top: 50%;
          left: 0;
          position: fixed;
          transform: translateY(-50%) rotate(-90deg);
          display: block;
          z-index: 99;
      }
      

      Also put this into "custom css for desktop" if you want this link to only show up on project pages:

      body.type-project a.selectedwork{
          display: block;
      }
      
      a.selectedwork{
          display: none;
      }
      

      Maybe you want to hide this for phone, so use this css for "Custom CSS for Mobile Version":

      a.selectedwork{
      display: none;
      }
      
      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