Join our new community forum for support & discussion

Join Now

Home Support Themes JobHive Select Category Page

Select Category Page

  • Author
    Posts
  • owlcrackers

    I changed the number of columns for the category section on my JobHive theme on the home page. However, when I go to the add a listing page in JobHive, the number of columns still looks strange; it has four columns.

    Can you tell me how to change them to three columns?

    Thank You

    yevhen developer

    Please try this PHP snippet

    add_filter(
    	'hivepress/v1/templates/listing_submit_category_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'listing_categories' => [
    						'columns' => 3,
    					],
    				],
    			]
    		);
    	}
    );
    owlcrackers

    I’m sorry. I added the PHP snippet using the code snippet plugin. It didn’t change it.

    yevhen developer

    Please try this PHP snippet instead

    add_filter(
    	'hivepress/v1/templates/listing_submit_category_page',
    	function( $template ) {
    		return hivepress()->helper->merge_trees(
    			$template,
    			[
    				'blocks' => [
    					'listing_categories' => [
    						'columns' => 3,
    					],
    				],
    			]
    		);
    	},
    	1000
    );
    owlcrackers

    Bingo! Thank You

Viewing 5 posts - 1 through 5 (of 5 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.