• Resolved nicksap

    (@nicksap)


    Hello,

    I’m wondering if anyone can provide me with instructions on how to implement a “sticky” or “fixed” navbar on my website, nicksapproductions.com. I have tried a few methods to no avail. I have a child theme setup, and have some very rudimentary knowledge of CSS, and almost no knowledge of jQuery, other than the fact that I need to use one (or both) of them to attain the desired result

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Brian Harris

    (@zgani)

    Hello,

    The theme is built with the Bootstrap framework which already contains the required codes and scripts for the sticky navbar.

    Have a look at this: https://www.wpstrapcode.com/blog/unconditional-child-theme child theme on how to implement it (file: top-nav.php). You’ll also need to add a CSS snippet to your child theme’s style.css – below is the code required…

    body.admin-bar .navbar-fixed-top  {
        margin-top: 28px;
    }

    Regards,
    Zulf

    Thread Starter nicksap

    (@nicksap)

    Thank you so much for your assistance! I really appreciate it, great theme btw!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sticky NavBar’ is closed to new replies.