Jump to content

AshwinG

Member
  • Posts

    8
  • Joined

  • Last visited

Posts posted by AshwinG

  1. I was unable to get it to work. I put the code onto the home page settings > advanced > page header code injection.
    For "const selector" I put the block id of the button
    For "const urlPrefix' I tried '/' and '/collection_name'
    And for "const strings" I tried both 'collection-name/page-name' and '/page-name'

    I'm guessing I'm putting in the wrong values for one or more of these things.
    I want the list to have pages from different collections. So /architecture/bower-studio and /graphic-design/commbank and so on

  2. Hi, not sure if this is even possible. But I would like to have a button (or a hyperlinked word in a text block) which will link the user to a random page from a pre-selected list of pages on my site.

    The button is the one on the home page named 'Sunrise me!' (or the words 'Surprise me!' in the text block) and I would like it to randomly select one of my folio projects.
    /architecture/bower-studio
    /architecture/bonbeach-trail
    /graphic-design/commbank
    /photography/landscape
    etc...

    Just a fun little thing I want to add, but if it's not possible or too complicated, not a a big deal.

    Thanks

    Kind regards,
    Ashwin

    https://ashwingunawardana.squarespace.com/
    Password: password

  3. 3 hours ago, tuanphan said:

    Add to Design > Custom CSS

    nav.header-nav-list {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }

     

    Awesome, it works. Thank you

    Also want to say I've used code you've posted onto other forum posts in the past, thanks for all the great work

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