This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Categories under grid slider builder

  • Creator
    Topic
  • #1174
    littleantz
    Participant

    Hi,

    Is it possible for akita builder to include the categories in the selection checkbox when creating grid slider even if the category does not have a post yet?

    This is becoming a problem for me because when I am adding a category that I am sure will be needed, I cannot make a grid slider based on this category. I am being forced to add a sample content which is not really good on live site.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #1181
    Jason Bobich
    Keymaster

    There is no easy way to change this from a Child theme. I’ll see about adding this in the next update.

    #1185
    Jason Bobich
    Keymaster

    I think you could actually do it something like this from your Child theme’s functions.php:

    function my_grid_slider_options( $elements ){
    	
    	// Setup new select
    	$select = array();
    	$select['all'] = 'All Categories';
    	$categories = get_categories(array('hide_empty' => false));
    	foreach( $categories as $category ){
    		$select[$category->slug] = $category->name;
    	}
    	
    	// Filter them in
    	$elements['post_grid_slider']['options'][5]['options'] = $select;
    	
    	return $elements;
    }
    add_filter( 'themeblvd_core_elements', 'my_grid_slider_options' );
    • This reply was modified 10 years, 5 months ago by Jason Bobich. Reason: Oops, first time had it setup for post LIST slider
    #1187
    littleantz
    Participant

    Great.. will try it..

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The forum ‘Akita Responsive WordPress Theme’ is closed to new topics and replies.