How I can display 4 categories in one row (select category)
-
AuthorPosts
-
inzerat 1 month, 1 week ago
Home > Category > Select category
Please, try using the PHP snippets suggested in this topic – https://hivepress.io/support/topic/number-of-categories-in-add-listing-frontend/#post-5353
inzerat 1 month, 1 week agoHi. Thank you for answer. But there is no answer to your link.
I need it to appear in a subcategory. On the homepage I have the category Cars. Someone clicks and it goes into the car category. But there are still X subcategories in that category, such as tires, car parts, etc. And these subcategories with pictures are shown 3 in a row, but I want 4.
Please try using the same snippet from the suggested topic, but with the
hivepress/v1/templates/listing_categories_view_page
hook.inzerat 1 month, 1 week agoHi thank you and for Related Listings? 4 in row?
inzerat 1 month, 1 week agohivepress/v1/templates/* ???
This one should do it:
hivepress/v1/templates/listing_view_page
with “related_listings” instead of “listing_categories”.inzerat 3 days, 12 hours agoHello, why if I enter the number 5, 6 is displayed on one line? some bug? 5 is not working?
inzerat 3 days, 12 hours agoadd_filter( 'hivepress/v1/templates/listing_categories_view_page', function( $template ) { return hivepress()->helper->merge_trees( $template, [ 'blocks' => [ 'listing_categories' => [ 'columns' => 5, ], ], ] ); } );
Should work for 6 columns, but listings may not fit in 1/6 of the site width. There are limitations for the CSS grid, it’s based on the 12-column layout.
-
AuthorPosts
You must be logged in to reply to this topic.