Jump to content

Add color attribute to URL


Recommended Posts



I've a few products with different colors. I want to add some parameters to the url, so that if I go to that page, the color in the url is the selected attribute combination.




Chair Remy is available in the colors black, white and red, each with a different image assigned to the combination.


the url is http://example.com/chair-remy


Is it possible to add parameters like: http://example.com/chair-remy#color-black


Is it possible to add parameters like: http://example.com/chair-remy#color-red


So that on page load the color black or red is the selected attribute?


Thanks in advance, I hope I've made the explanation clear.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...