Conversation
supportAll the Front End blocks are created in ‘my-theme/blocks/…’ Is there I way I can move a block to a custom folder inside my theme? This topic was modified 2 years, 4 months ago by emanuelsw .
Hi @emanuelsw, Sure, this filter will change where the blocks/ directory is. This reply was modified 2 years, 4 months ago by Ryan Kienstra .
Could I have this filter applied only to 1 custom block? I have created a ‘features’ folder in my theme. Inside it I want to add a feature called ‘hires’. I want all the code related to be under the same folder. I have created a new block and want to change the path just for that to point to mytheme/features/hires/block/block-hires.php Would this be possible?
Hi @emanuelsecurityweek , Sorry, it’s not possible to change the template location for only 1 block.
Hi @emanuelsw, Sure, this filter will change where the blocks/ directory is. This reply was modified 2 years, 4 months ago by Ryan Kienstra .
Could I have this filter applied only to 1 custom block? I have created a ‘features’ folder in my theme. Inside it I want to add a feature called ‘hires’. I want all the code related to be under the same folder. I have created a new block and want to change the path just for that to point to mytheme/features/hires/block/block-hires.php Would this be possible?
Hi @emanuelsecurityweek , Sorry, it’s not possible to change the template location for only 1 block.