Support » Plugin: Sticky Menu (or Anything!) on Scroll » Which element I should write?

  • Resolved tywin1

    (@tywin1)


    I have the button (div + action) on the top of page http://zhk-kd.com.ua/uk/promo/.
    I tried to assign id and сlass for div and action, but nothing happened.
    I’m the newbie in WordPress, so sorry if my question sounds silly. I don’t understand which element I should enter in basic settings to make that div sticky.
    Can you help me, please?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Mark Senff

    (@senff)

    Hi, thanks for trying my plugin. 🙂

    Can you tell me which button (or text, or block) you’d like to make sticky exactly? Perhaps with a screenshot?

    Hi, thanks for such a quick answer.

    https://ibb.co/m3sF77

    Here is the link to a picture of the target button.

    Here is the code of this button:
    <div style="text-align: center;"><a class="btn-promo pr-home" href="http://zhk-kd.com.ua/uk/">На головну сторінку</a></div>

    And what I have in css file:

    a.btn-promo.pr-home {
    	margin: 0;
    	width: 100%;
    	padding: 30px 0;
    	border-radius: 0;
    }
    • This reply was modified 1 month, 2 weeks ago by  tywin1.
    • This reply was modified 1 month, 2 weeks ago by  tywin1.
    • This reply was modified 1 month, 2 weeks ago by  tywin1.
    • This reply was modified 1 month, 2 weeks ago by  tywin1.
    • This reply was modified 1 month, 2 weeks ago by  tywin1.
    Plugin Author Mark Senff

    (@senff)

    You won’t need my plugin for that. Instead, simply use the following CSS code:

    a.btn-promo.pr-home {
        margin: 0;
        width: 100%;
        padding: 30px 0;
        border-radius: 0;
        position: fixed;
        z-index: 999;
        left: 0;
        box-shadow: none;
    }

    Let me know if that helps.

    Thank you very much! Everything works exactly as it should.
    You are the best!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.