Jump to content

How do I move the top section of the footer to the top of the page

Recommended Posts

  • Replies 3
  • Views 199
  • Created
  • Last Reply

Top Posters In This Topic

To move a section from Footer to top of One Page, under Header, you can use this code to Individual Page Header Injection.

Here I use random ID, you can replace with real ID.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
	$('[data-section-id="abcxyz1234498798734534"]').insertAfter('header#header');
});
</script>

 

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
On 7/6/2024 at 11:16 AM, tuanphan said:

To move a section from Footer to top of One Page, under Header, you can use this code to Individual Page Header Injection.

Here I use random ID, you can replace with real ID.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
	$('[data-section-id="abcxyz1234498798734534"]').insertAfter('header#header');
});
</script>

 

Thank you so much. It worked. 

And is there a way to move it slightly below the header and also removing the space under it?image.thumb.png.7d98d3f3b01bcad9a2ecd3e41c040828.png

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.