I'm struggling to create a sticky sidebar on my WordPress site because Visual Composer doesn't allow me to add more IDs and Classes to the divs. I've tried using the Sticky Sidebar plugin from GitHub, which can be found here:
The script has been embedded in the header like this:
<script type="text/javascript" src="https://classymagazin.de/sticky-sidebar.js"></script>
Here's the code I have so far:
<script type="text/javascript">
var sidebar = new StickySidebar('#sidebarContainer', {
containerSelector: '#sidebarContainer',
innerWrapperSelector: '#stickySocialIcons',
topSpacing: 20,
bottomSpacing: 20
});
</script>
However, I keep encountering this error:
Uncaught ReferenceError: StickySidebar is not definedat (index):186
Does anyone know how to resolve this issue and make my sidebar sticky? You can find my sidebar with the ID #sidebarContainer
on this website:
Thank you!