[英]CSS is not working while using shortcode in slider revolution of a custom form with custom plugin
I've made a custom form with custom plugin & the issue is css / background color is not showing/working in 'Slider revolution' while using shortcode, it is just showing my form with transparent background but works great in other pages, post. 我已经使用自定义插件制作了一个自定义表单,问题是css /使用短代码时背景颜色无法在“滑块革命”中显示/工作,它只是在透明背景下显示我的表单,但在其他页面上也很好用。
How can i fix that? 我该如何解决? (btw i've included css in plugin which works in post/pages)
(顺便说一句,我在插件中包含了CSS,可以在帖子/页面中使用)
There's a difference with the images. 图像有所不同。
in theory you should include it in this way in the plugin code 理论上,您应该以这种方式将其包含在插件代码中
plugins_url() get automatically the address of the plugins folder plugins_url()自动获取plugins文件夹的地址
<link rel="stylesheet" href="<?php echo plugins_url('shortcode-001/style2.css'); ?>">
I'm assuming that the shortcode is in a folder inside the plugins folder 我假设简码在plugins文件夹内的一个文件夹中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.