Jump to content

gallery page - add previous and next project at the top ?

Recommended Posts

Posted

I have several gallery pages with multiple photographs. By default the previous and next project link navigation appears at the bottom of each gallery. I would like to keep them at the bottom but also add them to the top of the gallery. Possible?

thanks

  • Replies 5
  • Views 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Add this code to Website > Website Tools (under Not Linked) > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('.item-pagination[data-collection-type^="portfolio"]').clone().insertBefore('article>section:first-child .content');
})
</script>
<style>
  article>section:first-child .content-wrapper {
    flex-direction: column;
}
</style>

image.thumb.png.87b3ed25422ad890785cebe8109615e4.png

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!)

Posted
On 1/30/2024 at 7:44 PM, SwissPhotographer said:

Thanks a lot. Unfortunately it seems that I would need to upgrade my subscription in order to enter codes.... 😞

 

Try edit Site Footer > Add a Block > Choose Markdown > Paste the code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
  $('.item-pagination[data-collection-type^="portfolio"]').clone().insertBefore('article>section:first-child .content');
})
</script>
<style>
  article>section:first-child .content-wrapper {
    flex-direction: column;
}
</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!)

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.