Hi there,
disabling the default loop can be done using the generate_do_template_part
filter like so:
add_filter( 'generate_do_template_part', function( $do ) {
if ( is_category() ){
// if is category disable loop
$do = false;
}
return $do;
});
Are you using the correct Element Type? Thats debatable 🙂
In the next updates to GP / GP Premium we look to introduce a new Element Type, that will be used for creating templates like this, it will remove the theme loop so you can build whatever you like in the sites #page
container.
Using a Page Hero element type is the same as a Hook element type, just with some page hero specific stuff. But its HTML is output between the site header and the page container. If it doesn’t bother you that you have the HTML outside that and empty page container then go for it.
Or you can use a Hook thats inside the main container.