Block Lab – css files in plugin – Not working
-
- WP 5.2.4
- PHP 7.3.5
- Block Lab 1.5
I have a set of custom blocks with template files and css files in a child theme.
It works smoothly.Thanks!Now I would like to move all the files from theme to a custom plugin.
I pasted the complete “blocks” directory from theme to plugin and added block_lab_template_path( $template_path ) filter in my plugin functions file.
Problem!
The blocks are now displayed without styling.
I tried to organise the blocks directory in different ways, as per Block Lab documentation. No success.
The only way is to add a <style> tag in the template file. Not very elegant.
Please, is it normal behaviour? did I miss something? or is there a bug some where?
Thanks in advance for help.
- The topic ‘Block Lab – css files in plugin – Not working’ is closed to new replies.