Need help on homepage Top navigation bar CSS #129545
Unanswered
chloe8225
asked this question in
Programming Help
Replies: 1 comment
-
first of all I do not know which framework are you using I mean react,angular,razor etc. and javascript script add in your project <script> document.addEventLister("DOMCONTENTLOADED,",function() { if(window.location.pathname === "/") { document.body.ClassList.add('homepage'); }}); </script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am a beginner in coding and trying to edit my homepage section (I use Cargo for my website).
I have the homepage and other work pages, and I only want to show my top navigation bar on other pages and hide in my homepage.
I have tried several ways but it's not changing at all..Please help!
This is HTML in my top navigation"
This will how it show in page
I know I should have an id or class to give change but not sure where to put it and how to write CSS to hide it only in the specific page.
I tried giving the id to column set and hide with CSS display: hidden, but this hides my top nav bar in all the pages. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions