miss-sammiedesigns Posted April 30, 2021 Share Posted April 30, 2021 Site URL: https://thewanderertraveljournal.co.uk/destinations Help any one? Wanting to change the older and newer blog list paginations to custom text for a client. Also, any one know how I can increase the spacing between the bottom blog list posts and the older/newer wording? Thanks in advance. Link to comment
tuanphan Posted May 1, 2021 Share Posted May 1, 2021 Hi. Add to Settings > Advanced > Code Injection > Header <style> nav.BlogList-pagination { margin-top: 40px; } </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $("span.BlogList-pagination-link-label").html(function() { return $(this).html().replace("Older", "New older custom"); }); $("span.BlogList-pagination-link-label").html(function() { return $(this).html().replace("Newer", "New newer custom"); }); }); </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
miss-sammiedesigns Posted May 3, 2021 Author Share Posted May 3, 2021 Worked a treat, thank so much. 😄 Link to comment
miss-sammiedesigns Posted May 5, 2021 Author Share Posted May 5, 2021 That would be great, thank you. You are very kind. Link to comment
tuanphan Posted May 6, 2021 Share Posted May 6, 2021 On 5/5/2021 at 3:48 PM, miss-sammiedesigns said: That would be great, thank you. You are very kind. Add to Design > Custom CSS /* Mobile issues */ @media screen and (max-width:640px) { /* center image */ footer.Footer .slide { float: none !important; margin: 0 auto; } /* remove footer vertical lines */ footer.Footer .code-block { 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!) Link to comment
danal Posted February 8, 2022 Share Posted February 8, 2022 Hello I would also like to achieve this with the older-posts pagination wording in 7.1. Can you assist with code to update the older posts and newer posts wording to Next Page and Previous Page. As a side question can this pagination be removed? Link to comment
tuanphan Posted February 12, 2022 Share Posted February 12, 2022 On 2/8/2022 at 10:36 AM, danal said: Hello I would also like to achieve this with the older-posts pagination wording in 7.1. Can you assist with code to update the older posts and newer posts wording to Next Page and Previous Page. As a side question can this pagination be removed? Add to Design > Custom CSS h2.item-pagination-title { display: none; } .item-pagination-prev-next { display: block !important; } To remove, add this to Design > Custom CSS h2.item-pagination-title { display: none; } .item-pagination-prev-next { display: none !important; } 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
k_18 Posted April 24, 2023 Share Posted April 24, 2023 (edited) On 5/1/2021 at 9:35 AM, tuanphan said: Hi. Add to Settings > Advanced > Code Injection > Header <style> nav.BlogList-pagination { margin-top: 40px; } </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $("span.BlogList-pagination-link-label").html(function() { return $(this).html().replace("Older", "New older custom"); }); $("span.BlogList-pagination-link-label").html(function() { return $(this).html().replace("Newer", "New newer custom"); }); }); </script> Hi Tuanphan - thanks for this. We have the same problem, but the script only works on the first page load. When we then use the pagination to forward or backward a page, it does again show the original labels. Hitting f5 remedies that, but it should work on the first load. Any pointers on how that could be achieved? Thanks a lot in advance! Edited April 24, 2023 by k_18 Link to comment
paul2009 Posted April 24, 2023 Share Posted April 24, 2023 1 hour ago, k_18 said: the script only works on the first page load. When we then use the pagination to forward or backward a page, it does again show the original labels. This is because you are using a Brine-family template on Squarespace 7.0, and when Ajax Loading is enabled (as it currently is) the code injected in your header will only load on the initial site load, or a refresh. It won't load when other pages load. To resolve this, you'll need to disable Ajax Page Loading in Site Styles or rewrite the code to work with this. For more details, see my guide entitled Why does Squarespace code only work on refresh? Did this help? Please give feedback by clicking an icon below ⬇️ About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥. Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links. Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional. Link to comment
k_18 Posted April 24, 2023 Share Posted April 24, 2023 Thanks a lot, Paul, that did it! Link to comment
KyahDigital Posted June 6, 2023 Share Posted June 6, 2023 Hello. I used the above code to change the pagination wording on a site, but I'd also like to try add this to the top of the blog page - so where the "More" links are at the bottom of the page, I'd like to be able to display these at the top of the page too so that people don't have to scroll all the way to the bottom to find more posts. Thi is the link - https://www.foundregional.com.au/found-food-drink Thanks. Link to comment
tuanphan Posted June 9, 2023 Share Posted June 9, 2023 Hi, Move this under this dropdown? 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
KyahDigital Posted June 9, 2023 Share Posted June 9, 2023 Yes, that's the one! My client wants the pagination option at the bottom and the top of the page so that people don't have to scroll down to get to the next page. Link to comment
tuanphan Posted June 11, 2023 Share Posted June 11, 2023 On 6/9/2023 at 2:19 PM, KyahDigital said: Yes, that's the one! My client wants the pagination option at the bottom and the top of the page so that people don't have to scroll down to get to the next page. Add this code to Settings > Advanced > Code Injection > Footer (or Settings > Developer Tools > Code Injection > Footer) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('.blog-basic-grid .blog-list-pagination').insertAfter('div#block-yui_3_17_2_2_1662605728287_11102'); }) </script> <style> .blog-list-pagination { margin-top: -20px; } </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
KyahDigital Posted June 14, 2023 Share Posted June 14, 2023 On 6/11/2023 at 5:18 PM, tuanphan said: Add this code to Settings > Advanced > Code Injection > Footer (or Settings > Developer Tools > Code Injection > Footer) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script> jQuery(document).ready(function($){ $('.blog-basic-grid .blog-list-pagination').insertAfter('div#block-yui_3_17_2_2_1662605728287_11102'); }) </script> <style> .blog-list-pagination { margin-top: -20px; } </style> Thank you - it's added it to the top, but it doesn't look right: Any suggestion for a fix? Also - the client uses blogs for a number of different pages/sections on their site, so is there a way to make this a universal change for anywhere that's using a blog? Or do I need to add the code for each one and pull out the individual blocks in the code? Thanks! Link to comment
tuanphan Posted June 16, 2023 Share Posted June 16, 2023 On 6/14/2023 at 1:14 PM, KyahDigital said: Thank you - it's added it to the top, but it doesn't look right: Any suggestion for a fix? Also - the client uses blogs for a number of different pages/sections on their site, so is there a way to make this a universal change for anywhere that's using a blog? Or do I need to add the code for each one and pull out the individual blocks in the code? Thanks! That code should run on all pages. You mean remove left More text or? 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
JasonArend Posted February 19 Share Posted February 19 Hi I'm trying to remove the numbered pagination at the bottom of the Blog list page on a 7.1 site. How do I do that? Link to comment
tuanphan Posted February 20 Share Posted February 20 On 2/19/2024 at 9:21 AM, JasonArend said: Hi I'm trying to remove the numbered pagination at the bottom of the Blog list page on a 7.1 site. How do I do that? You can use this code to Custom CSS box .item-pagination[data-collection-type^="blog"] { display: none !important; } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment