Jump to content

Change product order (Mobile Only)

Recommended Posts

On 4/22/2021 at 5:28 AM, Skyler1440 said:

Site URL: https://www.rivalarchery.com/

Hello!

 

What code could I use to make my Rival Limitless product show up on the top of the screen on the home page, only on the mobile view, and leave the desktop view unaffected?

 

Thanks!

Skyler

Add to Design > Custom CSS

/* Reorder products on mobile */
@media screen and (max-width:767px) {
body.homepage .list-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
div#thumb-ascent-recurve-scope {
    order: 2;
}
div#thumb-limitless-recurve-aperture {
    order: 1 !important;
}
div#thumb-dot-kit {
    order: 3;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 month later...
On 4/24/2021 at 4:03 AM, tuanphan said:

Add to Design > Custom CSS


/* Reorder products on mobile */
@media screen and (max-width:767px) {
body.homepage .list-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
div#thumb-ascent-recurve-scope {
    order: 2;
}
div#thumb-limitless-recurve-aperture {
    order: 1 !important;
}
div#thumb-dot-kit {
    order: 3;
}
}

 

That worked perfectly!

Thank you!

Link to comment

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.