简体   繁体   中英

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.

How can i fix that? (btw i've included css in plugin which works in post/pages)

There's a difference with the images.

Css not showing/working css working

in theory you should include it in this way in the plugin code

plugins_url() get automatically the address of the plugins folder

  <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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM