Hello Danielle,
The JS code above does not apply to the sliders and cannot be used in the slider because it has a different structure. you may be able to accomplish what you want by doing it manually. You can follow these steps:
1.) Edit each of your pages.
2.) Add a body class in the Page Settings:
3.) In your Slide element, you need to insert a {{dc:looper:field key="title"}}
dynamic content to the element Class field.
4.) Lastly, you can add a custom CSS that will display the particles of the Slide element something like this:
.Francia .x-slide.Francia .x-particle {
opacity: 1;
transform: scale3d(1, 1, 1);
}
The code above is just an example code to get you started with your customizations. You will need to do steps 1 and 2 to all your pages and then modify the code above so that when you view the page, the slide’s particle will be displayed thus, the slide menu seems to be active while viewing the page.
.{Menu-Title-A} .x-slide.{Menu-Title-A} .x-particle,
.{Menu-Title-B} .x-slide.{Menu-Title-B} .x-particle,
.{Menu-Title-C} .x-slide.{Menu-Title-C} .x-particle{
opacity: 1;
transform: scale3d(1, 1, 1);
}
where Menu-Title-A
, Menu-Title-B
or Menu-Title-C
is the menu item titles or your page titles.
Please note that custom coding is outside the scope of our support. Issues that might arise from the use of custom code and further enhancements should be directed to a third-party developer. If you are unfamiliar with code and resolving potential conflicts, you may select our One service for further assistance.
Best Regards.