Hi
I got the var_dump from the filter, this what it gave me –
C:\Users\Roger\Sites\www.newleioc.dev.cc\wp-content\plugins\leioc-events-templates\leioc-events-templates.php:70:string 'C:\Users\Roger\Sites\www.newleioc.dev.cc\wp-content\plugins\leioc-events-templates' (length=82)
It shows the correct file path to my plugin.
When I remove the filter and add the block to my Theme folder it finds the Block.Css file correctly.
I am happy to enqueue the Block CSS file, but I wasn’t sure if this was correct behaviour from the Block Lab plugin. Thanks for your time with this
Hi,
Sorry for the delay in getting back. Yes, I am using this code –
`add_filter( ‘block_lab_template_path’, function( $path ) {
unset( $path );
return __DIR__;
} );
I found it online and it works to move the template to my plugin, but the block.css file is not found. On inspection, it seems to be missing the slashes out of the CSS link.
https://www.newleioc.dev.ccwp-contentpluginsleioc-events-templates/blocks/ent-details/block.css?ver=0.0.2
Any help will be gratefully received.
Thanks