Hello,
I’m using TaskHive Marketplace and I need to move the tag description from the page content area to the footer (like it works for categories).
What I’ve done:
- Successfully moved category descriptions to footer using this snippet:
add_filter(
'hivepress/v1/templates/listings_view_page',
function( $template ) {
$category = hivepress()->request->get_context( 'listing_category' );
if ( $category && $category->get_description() ) {
$template = hivepress()->template->merge_blocks(
$template,
array(
'page_footer' => array(
'blocks' => array(
'listing_category_seo_text' => array(
'type' => 'content',
'content' => wpautop( $category->get_description() ),
'_order' => 1000,
),
),
),
)
);
}
return $template;
},
1000
);
What I need:
-
A similar snippet for tags that moves tag descriptions to the footer
-
Currently, tag descriptions appear in
hp-page__contentbut should appear inhp-page__footer
Current situation:
-
Theme: TaskHive
-
Extension: Marketplace
-
Tag description displays in the wrong location
Can someone help me with the correct snippet for tags?
Thank you!