Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1044490

    I have two categories within my Portfolio Items: “Trailers” and “Shorts”

    problem I am having is this: when I am on the first item within “Trailers” and I click the right sided gray button, I advance to the first item within “Shorts”

    here is the page in trailers

    if you click right side gray button you go to this page which is a “Short”

    how can I make it so that those buttons to stay within their category?

    #1046877

    Hey scientistsofmedia,

    Thank you for using Enfold.

    In functions.php of your child theme (or parent theme) add the following:

    
    add_filter( 'avia_post_nav_settings', 'my_avia_post_nav_settings', 10, 1 );
    
    function my_avia_post_nav_settings( $settings )
    {
    	if( $settings['type'] == 'portfolio' )
    	{
    		$settings['same_category'] = true;
    	}
    	
    	return $settings;
    }
    
    

    Do not forget to make a backup of the original file for a fallback.

    Best regards,
    Günter

    #1046991

    thank you so much. That worked!!

    one more question for you. currently when clicking through the portfolio items, you click the grey button on the left to advance to the next portfolio item and the right button to go backwards. is it possible to switch it so that you click the grey button on the right to advance to the next item, the left to go backwards?

    #1048593

    Hi scientistsofmedia,

    Here is a thread for you to consider
    https://kriesi.at/support/topic/next-and-previous-post-navigation-is-in-reversed-order/

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1048605

    that worked. thank you so much!!!

    #1048648

    Hi,

    Glad we could help!

    Please take a moment to review our theme and show your support https://themeforest.net/downloads
    Don’t forget to bookmark Enfold Documentation for future reference.

    Thank you for using Enfold :)

    Best regards,
    Vinay

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘keep portfilio items seperate’ is closed to new replies.