I would like to add a new button/hyperlink on the right of the eye icon: <i class="hp-icon fas fa-eye"></i>
in the listings page of the vendor.
Is there any easy way to do this?
I would like to add a new button/hyperlink on the right of the eye icon: <i class="hp-icon fas fa-eye"></i>
in the listings page of the vendor.
Is there any easy way to do this?
Sorry for the delay.
It’s possible, but requires code customizations. If you’re familiar with coding, please try using the hivepress/v1/templates/listing_edit_block
filter hook to extend the default listing template (each row in the listings table uses this template). You can find some samples here Search · user:hivepress templates · GitHub
Interesting customization resource.
Thanks for sharing.
Thanks, Ihor.
Here is a working example:
add_filter(
'hivepress/v1/templates/listing_edit_block',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_container' => [
'blocks' => [
'listing_actions_primary_2' => [
'type' => 'container',
'tag' => 'td',
'_order' => 1100,
'blocks' => [
'custom_url' => [
'type' => 'content',
'content' => '<p style="font-size: 14px;"><a href="example-url"> Example-url </a></p>',
'_order' => 1600,
],
],
],
],
],
],
]
);
}
);
I think it would be useful to add a new column where users can hide or show listings directly from the listing table. Currently, it is necessary to enter a specific listing to hide or show it.
I will attempt to modify this filter to accommodate this functionality.
Thanks and best regards,
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.