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. Bug Reports
  3. Sticky title doesn't stick

Sticky title doesn't stick

Scheduled Pinned Locked Moved Bug Reports
titletextpositionsticky
4 Posts 2 Posters 602 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.
  • F Offline
    F Offline
    fabiofrl
    wrote on Aug 2, 2018, 10:30 AM last edited by fabiofrl Aug 2, 2018, 10:53 AM
    #1

    Hi everyone!

    I'm trying to make a title sticking at the top of the browser after scrolling down.
    I don't want to use "position: fixed" because I'd like the title to scroll a little bit up from its original position.

    I've wrapped the text element in a custom id in the editor, and i'm using "position: sticky" in css, but the title is still scrolling out of the page. Also tried to do this just on the text element with the title, and on the entire row, but nothing works.

    Any suggestions?

    Thank you!
    F

    Edit: I'm using Chrome 68 on Mac, but I experienced the same problem on Safari and Firefox too.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mariusjopen
      Global Moderator
      wrote on Aug 6, 2018, 9:19 AM last edited by
      #2

      Dear @fabiofrl
      I am not sure how much supported the sticky is.
      I also don't think that you can scroll with the sticky. As far as I understood it just pushes the content down and then stays on the top.

      Are you sure that you cannot sue the fixed thing?

      Best!

      Marius

      www.mariusjopen.world

      F 1 Reply Last reply Aug 7, 2018, 9:35 AM
      0
      • M mariusjopen
        Aug 6, 2018, 9:19 AM

        Dear @fabiofrl
        I am not sure how much supported the sticky is.
        I also don't think that you can scroll with the sticky. As far as I understood it just pushes the content down and then stays on the top.

        Are you sure that you cannot sue the fixed thing?

        Best!

        Marius

        F Offline
        F Offline
        fabiofrl
        wrote on Aug 7, 2018, 9:35 AM last edited by
        #3

        Hi @mariusjopen
        thanks for the reply!

        I was looking for something like this (with no js needed), I've tried a couple of different solutions but nothing works.
        Btw I've already switched the layout to a different design, so this is not an issue anymore.

        Thanks again!
        F

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mariusjopen
          Global Moderator
          wrote on Aug 8, 2018, 8:26 AM last edited by
          #4

          Hi @fabiofrl
          I would recommend the jQuery solution. very simple. Anyway… You don't need it anymore :-)

          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

          4/4

          Aug 8, 2018, 8:26 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.
          4 out of 4
          • First post
            4/4
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search