Rearrange the buy now button

Hi, what is the function.php code to reorder the buy now button in single listing page?

Please try using the hivepress/v1/templates/listing_view_page hook to re-order blocks in the listing page template. You can check sample template snippets in our collection Search · user:hivepress · GitHub

I had tried this but didn’t work.

add_filter(
‘hivepress/v1/templates/listing_view_page’,
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
‘blocks’ => [
‘listing__actions hp-listing__actions–primary hp-widget widget’ => [
‘_order’ => 60,
],
],
]
);
},
1000
);

Hi,

Please note that we are providing general recommendations on how to add a particular custom implementation, if you need help with customization, I recommend considering someone with wordpress knowledge, for example, on Fiverr or Upwork.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.