• Resolved pequewp

    (@pequewp)


    Hello, in video gallery page the category dropdown works fine.

    But when I access to a category, The category drop-down menu appears below category videos, and does not allow you to select any.

    Thanks for your support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor wpvideogallery

    (@wpvideogallery)

    I’m afraid the dropdown is not selectable because of a CSS conflict with your theme. Kindly share with us your category page URL to check this directly and assist you accordingly.

    Kindly check below if you want to display the dropdown above the videos,

    Our plugin supports 3 layout types (Grid, List, and Dropdown.) for categories.

    Generally, on the single category page, we display the category videos at the top and child categories of the selected category at the bottom using the selected categories template in our settings page.

    Unfortunately, we don’t have any option to toggle this display. I promise that our next version will have an option for this.

    Kindly follow the solution below as a quick solution for this issue,

    • Edit open the following file,
    /wp-content/plugins/all-in-one-video-gallery/public/videos.php
    • Locate the “run_shortcode_category” function.
    • Find the line below (#141) inside the function and simply delete it.
    $_attributes[] = 'title="' . __( 'Sub Categories', 'all-in-one-video-gallery' ) . '"';
    • Again, find the lines (#153 – #154) below,
    $content .= $videos;
    $content .= $sub_categories;
    • Toggle them as follows,
    $content .= $sub_categories;
    $content .= $videos;
    • Save the changes and check now.

    • This reply was modified 7 months, 3 weeks ago by wpvideogallery.
    • This reply was modified 7 months, 3 weeks ago by wpvideogallery.
    • This reply was modified 7 months, 3 weeks ago by wpvideogallery. Reason: typo issues
    • This reply was modified 7 months, 3 weeks ago by wpvideogallery.
    Thread Starter pequewp

    (@pequewp)

    Many thnaks for your support. Fix doesn´t work.

    I have sent you additional information to: https://plugins360.com/support/

    Plugin Contributor wpvideogallery

    (@wpvideogallery)

    Thanks for your reply. We received your support ticket.

    Generally, the categories dropdown in the single category page only displays the child categories of the selected category. But, I understand that you expect to show all the categories regardless of the category selected.

    Kindly add the following code to the bottom of your theme’s functions.php file and check again.

    function aiovg_override_categories_args( $query, $attributes ) {
    	if ( isset( $query['child_of'] ) ) {
    		unset( $query['child_of'] );
    	}
    
    	if ( isset( $query['parent'] ) ) {
    		unset( $query['parent'] );
    	}
    
    	return $query;
    }
    add_filter( 'aiovg_categories_args', 'aiovg_override_categories_args', 10, 2 );

    Hope this solved your issue!

    Note: Our next version would include this fix. So, no worries about the update.

    Thread Starter pequewp

    (@pequewp)

    Oh! Right! Many Thanks.

    Works prefectly!!

    Good support!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dropdown doesn´t work inside category.’ is closed to new replies.