Jump to content

Monoar

Circle Member
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Monoar

  1. On 10/8/2020 at 4:09 AM, creativepunch said:

    Hey @michaeleparkour, I'm using the Universal Filter on a client website, and had to change the tags & categories to better suit what my client is looking for. When I deleted the previous tags & categories then added the new ones, they will no longer show up within the universal filter. I've deleted the code and added it again several times, with no luck. My code is below. Website to preview is https://phoenix-selections.squarespace.com/memphis-portfolio, PW: chris

    <link rel="stylesheet" href="//assets.squarewebsites.org/custom-filter/custom-filter.min.css"/>
    <script>
    window.customFilterSettings = {
        'targets': [{
            container: '#block-yui_3_17_2_1_1596521666021_4391',//inspected Summary block id
            items: '.summary-item',// it's always .summary-items for Summary Blocks
            settings: {
                showItemsCount: false,
                position: 'top',
                keepDropdownsOpen: false,
                customClasses: 'buttons-inline',
                simpleFilter: {
                    show: {
                        effect: 'fade',
                        transitionDuration: 800,
                        stagger: 60
                    },
                    hide: {
                        effect: 'fade',
                        transitionDuration: 100,
                        stagger: 18
                    }
                },
                filter: {
                    category: true,
                    tag: true,
                    items: [{
                        name: 'Region',
                        multiple: true,
                        getAttr: 'categories'
                    }, {
                        name: 'Tags',
                        multiple: true,
                        capitalcase: true,
                        getAttr: 'tags'
                    }]
                },
                sort: {
                    enabled: true,
                    items: [{
                        name: 'Alphabetical',
                        order: 'asc|desc',
                        orderTexts: 'A-Z|Z-A',
                        hideName: true,
                        sort: '.summary-item-link'
                    }]
                },
                search: {
                    text: '',
                    enabled: true
                }
            }
        }]
    };
    </script>
    <script src="//assets.squarewebsites.org/custom-filter/custom-filter.min.js"></script>

     

    How can i make it for multitage?  I want to integrate one person or iteam multiple categories. 

×
×
  • 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.