Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fix: 404 error for No results block CSS file (#11854)
Browse files Browse the repository at this point in the history
This commit introduces the `get_block_type_style` method in the `ProductCollectionNoResults` class. This new method is designed to manage frontend style handling specifically for this block type. Currently, it returns null, indicating no specific styles are assigned at this stage.
  • Loading branch information
imanish003 authored Nov 21, 2023
1 parent 7f2f23c commit ece2392
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/BlockTypes/ProductCollectionNoResults.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ protected function get_block_type_script( $key = null ) {
return null;
}

/**
* Get the frontend style handle for this block type.
*
* @return null
*/
protected function get_block_type_style() {
return null;
}

/**
* Set the URL attributes for "clearing any filters" and "Store's home" links.
*
Expand Down

0 comments on commit ece2392

Please sign in to comment.