Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Redirect Shop Button to Hidden Page


Neilshy

Recommended Posts

Hi there. I've just changed my template from Montauk to Brine. On Montauk, i had a little custom code that enabled me to click on the 'shop' button and have that redirected to an unlinked page (basically a categories page that I had created) Originally on Montauk, when you clicked 'shop' it took you nowhere and only opened up the dropdown categories.

Since changing over to Brine, this link doesn't work and clicking on shop just takes me to my first product page. The code still looks as though it's in there. 

Any ideas on what i can do to get it working again?

Link to comment

This was the code that worked with Montauk up until I changed template earlier today...

 

 <script>
  $(function() {
    $('.main-nav li a').each(function () {
  if ($(this).text() == 'Shop') {
  $(this).attr('href','https://littleanvil.com/categories/');
  $(this).attr('onclick','true');
  }
    });
  });
  </script>

Link to comment

Great question! I have a similar one..

Colin, is there a script I can use so that  an "add to cart" (.sqs-add-to-cart-button-wrapper) button does nothing when clicked on (ie. does not add anything to a cart or change text)? I'd like to change the text on these buttons to "Please Call ##" and make them unclickable.

Thank you!!!

Rachel

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