Jump to content

MOVE 'NAVIGATION LINK' TO BOTTOM (ABOVE FOOTER)? AND HIDE 'NAVIGATION LINK' ON SPECIFIC PAGE?

Go to solution Solved by ryanmariehelfant,

Recommended Posts

Posted (edited)

Hello,

 

I want to move my 'navigation link' (navigation link is titled 'EXPANDED PORTFOLIO CLICK HERE') from the top of my page to the bottom of my page above my footer on my homepage (http://ryanmariehelfant.com).

 

I also wanted to hide it on a specific page. (http://ryanmariehelfant.com/expanded). 

 

Can anyone provide the code to do both? 

(pictures attached!)

 

Thank you!

 

@tuanphan @DPruitt @inside_the_square

HIDE NAVIGATION LINK 2.png

MOVE NAVIGATION LINK 1.png

Edited by ryanmariehelfant
more info
Link to comment
  • Replies 6
  • Views 705
  • Created
  • Last Reply

Top Posters In This Topic

To hide it, use this code to Website > Website Tools > Custom CSS.

body#collection-61cf21724254e77985673323 header#header {
    display: none;
}

To move it to bottom, above footer on homepage, use this code to Website > Website Tools > Code Injection > FOOTER.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
  $(document).ready(function(){
    $('body.homepage div#topNav').insertBefore('body.homepage footer#footer');
});
</script>
<style>
  div#topNav {
    z-index: 999999999999;
    position: relative;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Instead of hiding the entire header with this code:

#collection-61cf21724254e77985673323 #header {
    display: none;
}

Use this instead:

#collection-61cf21724254e77985673323
#topNav
{display: none;}

If you don't remove the old code, you would need to also add:

#collection-61cf21724254e77985673323 #header {
    display: block;
}

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.