Jump to content

epete22

Circle Member
  • Posts

    20
  • Joined

  • Last visited

Posts posted by epete22

  1. 1 hour ago, creedon said:

    @epete22

    Please post the URL for your site.

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

    Post the password here.

    Adding a site-wide password is not a security breach. Please read the documentation at the link provided to understand how it works.

    We can then take a look at your issue.

    wearegenerous.agency

    I tried the 7.0 script but don't think I did it correctly.

    The folder page title is 'How We Help' with the url 'services' and the page it needs to link to is 'services overview' with the url 'services-overview'

     

    <script>

     

      $( ( ) => {

      

        /*

        

          begin make navigation folders clickable

          

          SS Version : 7.0

          Template   : Marquee template family

          

          */

          

          const folderNavigationTitleUrlMappings = {

          

            /*

     

              the format of each line is the folder page Navigation Title and the

              URL for the folder

     

              for each folder page copy value from Folder Settings > General >

              NAVIGATION TITLE field. you only need exactly what can be selected

              from the field

              */

            // '[enter folder page navigation title here]' : '[enter url here]',

            ‘How We Help : ‘/services,

     

            // last or only item doesn't get a comma at end of line

            ‘Services overview’ : '/services-‘overview

            }

          // do not change anything below, there be the borg here

          $( '.main-nav .folder-parent > a' ).each ( function ( ) {

            let $this = $( this );

            const folderNavigationTitle = $this.text ( );

            const url = folderNavigationTitleUrlMappings [ folderNavigationTitle ];

            if ( url == undefined ) return true;

            $this.attr ( 'href', url );

            } );

          // end make navigation folders clickable 

        } );    

      </script>

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