1
我想用我的WordPress網站創建一個粘性邊欄。可悲的是我不能添加更多的ID和類到我的div,因爲Visual Composer沒有辦法。這已經是我能夠擺脫的一切。用Visual Composer創建一個粘性邊欄(WordPress)
我使用的粘性側邊欄插件,我在GitHub上找到: https://abouolia.github.io/sticky-sidebar/
我曾在首部描述,內嵌的腳本:
<script type="text/javascript" src="https://classymagazin.de/sticky-sidebar.js"></script>
這是我到目前爲止的代碼:
<script type="text/javascript">
var sidebar = new StickySidebar('#sidebarContainer', {
containerSelector: '#sidebarContainer',
innerWrapperSelector: '#stickySocialIcons',
topSpacing: 20,
bottomSpacing: 20
});
</script>
但我的問題是,我總是得到這樣的錯誤:
Uncaught ReferenceError: StickySidebar is not definedat (index):186
我該如何解決這個問題,並讓我的邊欄粘滯?
我的側邊欄是#sidebarContainer
本網站上:https://classymagazin.de/home/
親切的問候
可悲的是寫的,它仍然沒有工作... – Joe
我秀這js沒有在你的網頁中找到ghr2xom.js你可以檢查它嗎? – Jinesh