
Then we can add the Divi Side Cart CSS Class Trigger to make the cart icon open the side cart. To prevent this, it is necessary to add this code in order to disable that option. When enable the cart icon on the default menu header and theme builder header, the cart icon comes with a URL that goes to the cart page. Step 1: Adding the Javascript: Removing the Cart URL and add the CSS Class Trigger To do this, it is necessary to remove the URL of the cart icon via JS. ********** I had this code in the functions.With Divi Side Cart for WooCommerce you can trigger the side cart from the Cart Icon. Now for the jQuery: jQuery(function ($), 1000) This is done in the Custom CSS section for each module. The important thing to note is that I have set a CSS id to the parent element of both anchors as well as the accordion and tabs modules. You will see that I have created 2 links, some text, and accordion and a tabbed section. The demo page : you can view this demo on the Anchor links open demo page.

While its not as easy as creating an anchor link, once you know how to do it, it becomes quite simple. This can be achieved by using some custom jQuery. However, sometimes it’s useful to be able to open a specific accordion item or tab with the click of a button, using a similar method as the anchor links above. These are useful for presenting large pieces of information in a more manageable layout and not requiring your visitor to have to scroll through pages of information to find the specific piece of data they are looking for. Now Divi has these great modules called Accordions and Tabs.

If a user to my site clicked on the link, the browser would immediately jump to the that div, instead of opening a new page. So if I created an anchor tag like this: Link Text Here This is achieved by linking the anchor to the id of the element you want to link to, using a # and the id of the element in the anchor href.

One of the more useful things about web design is the ability to use anchor tags (those things that create links to other pages or websites) to link to sections within the same page. Once clicked the page will jump to (or you can animate it) the content it is linked to. I have no idea if this still works, so your mileage may vary Update: This post is over 6 years old now, and the demo page no longer exists.
