Is it possible to add description on the bottom of the listing category page , → like in ebay for example .
So this descrition that appear in Header Hero to be placed at bottom , afther all listings
Please try this PHP snippet
add_filter(
'hivepress/v1/templates/listing_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'page_content' => [
'blocks' => [
'listing_description' => [
'type' => 'content',
],
],
],
'page_footer' => [
'blocks' => [
'listing_description' => [
'type' => 'part',
'path' => 'listing/view/page/listing-description',
'_label' => hivepress()->translator->get_string( 'description' ),
'_order' => 20,
],
],
],
],
]
);
},
1000
);
3 Likes
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.