I am currently exploring different methods to show or hide a left-hand navigation menu on my Volusion store.
Is it possible to use JavaScript or jQuery to alter the CSS display property of a div based on the presence of another element on the page?
The issue I am facing is that the template structure of this software is quite intricate. There is only one skin file for the entire site, meaning that if I want the left-hand navigation to appear at all, it must be included in the skin file. However, if it is included in the skin file, it will be displayed on every page except the homepage.
Given that this is an e-commerce platform, I can easily modify the content and elements on my informational pages. However, the product and category pages are generated dynamically. My goal is to display the left-hand menu on informational pages but hide it on product and category pages.
This brings me back to my original question. Since I can easily insert an HTML element into my informational pages, could I add a
<br class="show-left-nav" />
to the page as a trigger for a JavaScript-based CSS change?
Thank you!