rudy
1
Hello, I would like to change the Reply to List position on Listing Page, move it under the vendor so it separates better from the buy button.
I found the code to move the vendor position, but wasnt able to put it in the middle between the buy now and the reply to listing.
This is the code, I tried using different orders but without success
add_filter(
'hivepress/v1/templates/listing_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_vendor' => [
'_order' => 5,
],
],
]
);
},
1000
);
I am trying to do this, what is the order or the correct code? Thanks
yevhen
3
Please try this PHP snippet
add_filter(
'hivepress/v1/templates/listing_view_page',
function ($template){
if ( !hivepress()->get_version( 'messages' ) ) {
return $template;
}
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_actions_primary' => [
'blocks' => [
'message_send_link' => [
'type' => 'content',
],
],
],
'page_sidebar' => [
'blocks' => [
'message_send_link' => [
'type' => 'part',
'path' => 'listing/view/page/message-send-link',
'_order' => 40,
]
]
]
],
]
);
},
1000
);
1 Like
rudy
4
Hello @yevhen , it works, thank you!
The only dettail is that it shows “half”, it doesnt fill all the column. Is there a way for it to be the same as buy now buttom as size? Thanks!
Take a look:
yevhen
7
Please try this CSS snippet
.hp-template--listing-view-page .hp-listing__action--message{
width: 100%;
}
2 Likes
rudy
8
1 Like
system
Closed
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.