Hide message & favorites at block primary

How to hide this ’ send message ’ & ’ favorite ’ icon only at block primary. If visitor see ad & like it he can send message & add to favorite . I only want this should be hidden at ’ block primary ’ any css code ?

a

Hi, please, try this PHP snippet:

add_filter( 
 'hivepress/v1/templates/listing_view_block', 
 function($template){
  hivepress()->template->fetch_blocks($template, ['message_send_link', 'listing_favorite_toggle']);
  return $template;
 }, 
 1000 
);

Thanks I shall try n update

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