我只是想添加一个短代码按钮到我的wordpress主题菜单栏来处理bootstrap modal view
函数。WordPress的导航栏中的自定义短代码
我试过'Shortcodes in Menus
'插件,但它不起作用。我无法在菜单中找到短代码的替代插件,所以我安装了'Bootstrap 3 Shortcodes
'插件,它创建了按钮和模式视图内容,如我所愿。但是我不能在我的菜单栏中添加简码。
我努力尝试找到一些关于我的问题的答案。但不幸的是,不能。
这就是我的模态短代码Bootstrap 3 Shortcodes plugin;
[modal text="Download Now" title="Veteriner Hekimlere Ulaşmanın En Kolay Yolu" xclass="btn btn-primary btn-lg"]
<p style="text-align: center;"><img src="http://web-test.vetmapp.com/wp-content/uploads/sites/2/2016/08/vetmapp-logo-withtext.png" alt="Logo" width="200" height="300" /></p>
<h4 style="text-align: center;">VetMapp'i cihazınıza göre aşağıdaki platformlardan cep telefonunuza ücretsiz olarak indirebilir ve hemen kullanmaya başlayabilirsiniz.</h4>
<p style="text-align: center;">
<a href="https://itunes.apple.com/tr/app/vetmapp-acil-veteriner-klinikleri/id969463902?mt=8" target="_blank"><img src="http://web-test.vetmapp.com/wp-content/uploads/sites/2/2016/09/180x40xapple-store.png.pagespeed.ic.z0I7tHw8h6.png" alt="App Store'dan indir!" width="135" height="40" /></a>
<a href="https://play.google.com/store/apps/details?id=com.esmobileinc.vetmapp&hl=tr"
target="_blank"><img src="http://web-test.vetmapp.com/wp-content/uploads/sites/2/2016/09/180x40xgoogle_play.png.pagespeed.ic.31v8JAmtbI.png" alt="Google Play'den indir!" width="135" height="40" /></a>
<a href="https://www.microsoft.com/tr-tr/store/p/vetmapp/9nblggh4s3qm"
target="_blank"><img src="http://web-test.vetmapp.com/wp-content/uploads/sites/2/2016/09/180x40xwindows_phone.png.pagespeed.ic.xvoiaCiuDP.png" alt="Windows Store'dan indir!" width="135" height="40" /></a>
</p>
[modal-footer] [button type="primary" style="border: solid 1px #18bda3; background-color: #fff; color: #18bda3;" link="#" data="dismiss,modal"]Kapat[/button] [/modal-footer] [/modal]
我只想用[modal text="Download Now" title="Veteriner Hekimlere Ulaşmanın En Kolay Yolu" xclass="btn btn-primary btn-lg"]
到WP导航栏。
我该怎么做?我可以在functions.php中为此写一个函数,或者尝试其他方法?
谢谢...
你想从简码按钮到菜单项的样式? –
我现在不在乎风格。我只想通过菜单栏项触发引导模式视图。 – emresancaktar
你有没有请你也分享你的标记,你用你的短代码包装''[modal text =“立即下载”title =“Veteriner HekimlereUlaşmanınEn Kolay Yolu”xclass =“btn btn-primary btn-lg”]'? – mlbd