Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Plugin] - Import Css
#1
I need a css to display correctly my plugin admin page.
I try to load it with "add_action" but it gives a 403 error on css load.

The reason :
My css is located in plugin/myplugin/style.css so the responsable is the plugin/.htaccess file with "deny from all" instruction.

So, what's the good location to put css ?

Thank you.
Reply
#2
That’s the right location, we advice you to put in a whitelist .htaccess in your plugins folder (/plugins/myplugin/). In that .htaccess you can then put “allow from all” so all resources your plugin needs are loadable.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
I wanted to be sure...

Thanks.
Reply




Users browsing this thread: 1 Guest(s)