Jump to content

******Blog Pagination PREVIOUS and NEXT button is not aligned straight on mobile.

Recommended Posts

Posted

There's the same question being asked and answered in this thread, which will hopefully help you out:

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

📈 SEO Space (Referral link)
Ⓜ️ 
Will Myers' Plugins & Tutorials (Referral link)
 🔌 Ghost Squarespace Plugins (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Posted

Try adding this to Design > Custom CSS

@media screen and (max-width:640px) {
nav.BlogItem-pagination.clear {
    display: flex;
    justify-content: space-between;
}
nav.BlogItem-pagination.clear:after {
    display: none;
}
}

 

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 9/22/2022 at 5:31 PM, tuanphan said:

Try adding this to Design > Custom CSS

@media screen and (max-width:640px) {
nav.BlogItem-pagination.clear {
    display: flex;
    justify-content: space-between;
}
nav.BlogItem-pagination.clear:after {
    display: none;
}
}

 

It worked perfectly. Thank you so much for help. I really appreciated.

Posted
On 9/21/2022 at 3:46 PM, Ziggy said:

There's the same question being asked and answered in this thread, which will hopefully help you out:

 

Thank you for sharing, I have seen that thread but the codes only helped that specific site. Tuanphan have solved my problem and it works perfectly now. 

  • 1 year later...
Posted
On 8/29/2024 at 3:43 AM, zooeythecat said:

This isn't doing the trick for me. Any idea how to align the old and new blog post buttons, @tuanphan?

https://mushroom-greyhound-d7ly.squarespace.com/recipes (pw: brimley)

I do have some code to customize the buttons - maybe that is getting in the way?

Screenshot 2024-08-28 at 10.42.34 PM.png

Left you use :before

Right you use :after

Right >> you can change it to :before

You will have this

image.thumb.png.cf861a03112bfd811833032b33f4118b.png

Next, use this CSS code to fix left button overflow screen

@media screen and (max-width:767px) {
nav.blog-list-pagination .prev-label:before, nav.blog-list-pagination .next-label:before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
}
nav.blog-list-pagination .prev-label, nav.blog-list-pagination .next-label {
    position: relative;
    width: calc(~"100% - 20px");
}
}

 

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 9/1/2024 at 5:58 PM, tuanphan said:

Left you use :before

Right you use :after

Right >> you can change it to :before

You will have this

image.thumb.png.cf861a03112bfd811833032b33f4118b.png

Next, use this CSS code to fix left button overflow screen

@media screen and (max-width:767px) {
nav.blog-list-pagination .prev-label:before, nav.blog-list-pagination .next-label:before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
}
nav.blog-list-pagination .prev-label, nav.blog-list-pagination .next-label {
    position: relative;
    width: calc(~"100% - 20px");
}
}

 

Can you remove this change? I will write new code to exclude new change on desktop

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.