WPIntell

Source evidence

Moving custom template in a different folder

Genesis Custom Blocks · support · 2024-01-11T14:03:00+00:00

questionsentiment
highseverity
0.94relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 35 rows with source links

14.3% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

30 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
emanuelsw resolved
All 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.

Comments

3 shown
Ryan Kienstra 2024-01-11T15:36:00+00:00

Hi @emanuelsw, Sure, this filter will change where the blocks/ directory is. This reply was modified 2 years, 4 months ago by Ryan Kienstra .

emanuelsw 2024-01-17T11:18:00+00:00

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?

Ryan Kienstra 2024-01-17T19:21:00+00:00

Hi @emanuelsecurityweek , Sorry, it’s not possible to change the template location for only 1 block.