Jump to content


Circle Member
  • Posts

  • Joined

  • Last visited

Posts posted by square_case

  1. On 2/5/2024 at 1:42 PM, square_case said:

    Here is the website link:

    I wanted to show the portfolio first child image when someone open the website and also on hover the portfolio items it will show the different image. and make the items not clickable.

    I attached the section image below.


    this is the code that I'm using for it:

      document.addEventListener('DOMContentLoaded', function () {
        // Find the first .portfolio-hover-item and set data-active to true
        var firstPortfolioItem = document.querySelector('.portfolio-hover-item:first-child');
        if (firstPortfolioItem) {
          firstPortfolioItem.setAttribute('data-active', 'true');

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