I’ve finished my custom theme with Sage 8. As I had a HTML design mockup before, I’ve implemented it in the theme.
Now I have issue with making sticky NavBar(affix), that should be below full page picture(jumbotron), and stick to the top after scrolling to it. Used NavWalker for Bootstrap NavBar.
Does anybody had the same situation ? Maybe it’s a pure WordPress related question…
Which version of Bootstrap are you using? Affix changed dramatically between 3 and 4. Bootstrap themselves now recommend using the (reasonably well supported) position: sticky (and it’s browser-specific equivalents which Sage should build for you) rather than a Javascript solution.
Now have other issue:grinning:: I’ve copied my whole nav code from header.php, to be in my template-home.php, in the place where I want it to be, after Jumbotron picture.
How to correctly remove the previous one witch is fixed to top…? Maybe some custom php if statement in base.php to not show the hard coded get header only for front-page(home) ? Or some php code on the top of template-home.php ? But I’m not capable to that yet…