Modify/add a block with listings to homepage?

In Meetinghive I need a block with listings on the homepage and link to the lisitings main page.

I tried it with “Listings” but its not showing the image and there is no button linking to the listings page, only a favorite button. More ore less like in RentalHive. Any help? Thanks!

This its how its showing now. See Screenshot…

Ideally it would be nbice to have the listings image or the coaches image and the whole blocks linked to the correspondend listing or at least a button.

Hi,

You should see the same display as in the demo version: https://meetinghive.hivepress.io/

If you need to change the layout design from MeetingHive to RentalHive, it will require CSS tweaks.

Hi Andrii

in the demo I see the experts, but I want to show also the listings/coaching offers!

Hi,

If you don’t have a Listings or Requests page, you need to create one using this document: How to customize pages - HivePress Help Center. After that, go to HivePress > Settings > Listings (or Request) and select this page in the Listings Page (Requests Page). If you want to add it to the menu, use this documentation: How to customize menus - HivePress Help Center.

We also recommend that you watch a course on this theme: The complete course on setting up MeetingHive - HivePress Help Center

​I hope this is helpful to you.

I have a listings page. But i would like to show the lisitings on the front page in a better way as written above!

Hi,

Unfortunately, there is no simple solution for this, it will require a custom implementation.

Where can I find the code for the listings block?

Hi,

Please provide more details on which code you are referring to and we will try to help.

I refer to the listings Widget. See screenshot…

Hi,

Unfortunately, I don’t quite understand what code you are referring to, where you need to add it, and what exactly you need this code for. Please provide more details and we will try to help.

I want to modfy the lisitngs overview. Having it as a link when hovering like the vendors, and maybe with a the listings image

The whole box of each listing should be linked!

Hi,

Yes, you can modify the view of the listings, but as I wrote earlier, this will require a custom implementation. Custom implementation is not within our support scope, so we unfortunately cannot help.

Olease send me the name of the file we have to modify. Thanks!

Hi,

You can customize this layout using CSS. To find the class you need, you need to use the dev console: Visualizzare e modificare i CSS  |  Chrome DevTools  |  Chrome for Developers

I know! But where is the php file? Is it class-listing-view-block.php?

Thanks!

Sorry for the delay.

Customizing the listing card is possible via the hivepress/v1/templates/listing_view_block hook, you can attach custom functions to it that modify the existing blocks, add or remove new blocks. There’s no specific PHP file which can be modified directly, I don’t recommend this because any changes may be reset on update.

There also may be easier ways, e.g. if you mean making the whole card clickable, this can be possibly done via CSS, for example if you target any link within the listing card or insert a new link (by overriding any of the listing card template parts via a child theme https://www.youtube.com/watch?v=LkojYp-8uwY), then you can style it with these CSS styles:

display:block;
position:absolute;
left:0;
right:0;
top:0;
bottom:0;

Then this link will cover the whole listing card (also make sure to add the position:relative style to the card itself), and any click on it will redirect users to the single listing page. Please note that this will also cover inner links, e.g. currently if users want to click on the category link within the listing card, they are redirected to the category page, covering the whole listing card with a single link may break this.

Hope this helps