Jump to content

Move Portfolio Pagination to Hero Section

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 6
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Posted
On 6/3/2024 at 11:50 PM, evadRC said:

@tuanphan Sorry we changed the url. Here's the updated url: https://strongcontractors.com/portfolio/uchealth-memorial-hospital

 

Thanks.

You can 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>
   jQuery(document).ready(function($){
  $('.item-pagination[data-collection-type^="portfolio"]').appendTo('#page>article>section:first-child');
})
</script>
<style>
  #page>article>section:first-child {
    display: flex;
    flex-direction: column;
}
.item-pagination[data-collection-type^="portfolio"] {
    width: 100% !important;
    padding: 0px !important;
}

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

Posted

@tuanphan nice. it worked. just a little adjustment and it's good. can we display the previous and next text? and move it like in the image please. 

image.thumb.png.a5412d64c3409201dde142015ce7586e.png

  • Solution
Posted

Add this code under code I sent

<style>
  #page>article>section:first-child {
    justify-content: space-between;
}
.item-pagination-title {
    display: block !important;
    font-size: 20px !important;
    color: #fff !important;
    line-height: 30px;
    opacity: 1 !important;
    visibility: visible !important;
}

a.item-pagination-link {
    align-items: center !important;
}

section#itemPagination {
    position: relative;
    background-color: transparent !important;
}
</style>

image.thumb.png.5012094c12ba2588d33607f07a2c8c46.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!)

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.