Jump to content

Custom code is causing blog posts to infinitely scroll and I'd like to correct this

Recommended Posts

I worked with a designer who made some CSS changes to my site (we're no longer working together), and I recently realized my blog posts on the linked Site URL are scrolling infinitely rather than stopping at 15 posts per page like I have the settings set to. I'm including the Page Header Injection Code for that page below to see if anyone might be able to help identify what could be causing the override of scrolling limitations or offer another custom code to disable that from happening. Thank you!

<link rel="stylesheet" href="//assets.squarewebsites.org/custom-filter/custom-filter.min.css"/>
<script>
window.customFilterSettings = {
    'targets': [{
        container: '.view-list .page-section[class*="collection-type-blog-"] div[data-controller]',
        items: 'article',
        settings: {
             showItemsCount: false,
            showCheckboxes: false,
            keepDropdownsOpen: false,
            align: 'center',
            position: 'top',
            wrapFilterContainer: true,
            simpleFilter: {
                show: {
                    effect: 'fade',
                    transitionDuration: 800,
                    stagger: 60
                },
                hide: {
                    effect: 'fade',
                    transitionDuration: 100,
                    stagger: 18
                }
            },
           mobilePanel: {
            enabled: false},
            filter: {
                category: false,
                tag: false,
                items: [
                  {
                   name: "Category",
                  allLabel: ' ', 
                  multiple: true,
                  allowedOptions: "Coffee Shop, Restaurant, Bar, Hotel",
                   sort: 'asAllowed',
                    getAttr: 'categories'
                },
                  
                  {
                   name: "Features",
                  allLabel: ' ', 
                  multiple: true,
                  allowedOptions: "Rooftop, View, Pool, Tiki Bar, Speakeasy, Work Remote, Patio, Wine Bar, Cocktail Bar, Adults Only",
                   sort: 'asAllowed',
                    getAttr: 'categories'
                }]
            },
            sort: {
                enabled: false,
                items: [{
                    name: 'Alphabetical',
                    order: 'asc|desc',
                    orderTexts: 'A-Z|Z-A',
                    hideName: true,
                    sort: '.blog-title'
                  
                }]
            },
            search: {
                text: 'Location',
                enabled: true
            }
        }
    }]
};
</script>
<script src="//assets.squarewebsites.org/custom-filter/custom-filter.min.js"></script>

Link to comment

Please post the URL for a page on your site where we can see your issue.

A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password and how to share a link documentation to understand how they work.

We can then take a look at your issue.

You may find How to post a forum question post useful.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

The good news is that the scroll is not infinite, just very very long.

As to the limiting to 15 I'm not familiar enough with Lazy Summaries to answer that question off the top of my head.

Have you contacted the code author and asked about your issue?

Screen Shot 2023-08-13 at 11.21.15 AM.png

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 11 months later...

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.