How to add css to my plugin?
-
Hi. I am working on a simple plugin of an image gallery but I can not link to the css file.
I have tried with this code:// css function carga_estilos_theme() { wp_register_style( 'estilos', get_template_directory_uri() . '/css/gal.css', array(), '1.1', 'all' ); wp_enqueue_style( 'estilos' ); } add_action('wp_print_styles', 'carga_estilos_theme'); // css
does not apply any CSS property, I want you to format my image gallery but do not call the css file. It only works if I add the css code through the “custom css” from wordpress.
how do I solve it?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add css to my plugin?’ is closed to new replies.