Hello fellow Wix community. I came because I wanted help this time too.
I created a category dynamic page using Wix data,
When I click the category button on that page, I made it so that the product contents change while moving to the dynamic page for each category.
However, there is one thing you need.
How can I change the button color or button text color color for a selected category as a dynamic page item?
(The part marked with a question mark in the image above)
I created a category dynamic page using Wix data ,
… but on the pic 2-datasets are presented.
Sure that you have used Wix-Data? Or maybe it was a → DATASET?
Wix-Data and DATASET, are two different things, not recommended to mix them.
And if you really have used → Wix-Data, why you do not show us the related code, for debugging?
So, when reading this line…
How can I change the button color or button text color for a selected category as a dynamic page item?
I assume you are NOT working with → Wix-Data, instead you are working with → DATASETs (ordinary one and a dynamic one), right?
Thank you Velo-Ninja. I didn’t know that wix-Data and Dataset are so different.
Yes, I confirmed that I used Dataset and repeater, not wix-data. So, as you know, the button of each category name has the same id of the form like “#button5”
That’s why when I apply a click style to “#button5”, the color of all buttons changes for a while and then returns to normal.
Perhaps I should apply the style in case the button is “selected” rather than the button “clicked”?
I just want to change the style for only one category button that I select on the category dynamic page.
You can use this to change the color of the item that has been clicked (remember to also change the color of the one previously selected back to unselected