Jump to content

Change filter close 'x' to text 'see results' on mobile

Go to solution Solved by tuanphan,

Recommended Posts

Posted

Hi,

Is there css I can use to achieve the following?

I'm trying to change how my shop filter pop-up appears from this,

image.thumb.png.7e312ac13c73ef691fb493708c2684d6.png

 

 

To this:

image.thumb.png.bc662c4c638f39b2b3c77d8995def9b6.png

 

 

 

  • Replies 4
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution
Posted

Use this code to Website Tools > Custom CSS

@media screen and (max-width:991px) {
button.mobile-panel-close:before {
    content: "SEE RESULTS" !important;
    transform: unset !important;
    white-space: nowrap;
    background: unset !important;
    display: block;
    text-align: center;
    position: static !important;
    height: auto !important;
}

button.mobile-panel-close:after {
    display: none;
}

.custom-filter-container.use-mobile-panel.custom-filter-uid-0 .mobile-panel-close {
    width: auto !important;
    height: auto !important;
    padding: 10px !important;
    border: 1px solid black !important;
}
}

 

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!)

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.