Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #202786

    Hi guys,

    What is the best way to directly link to a display of portfolio items in a specific category? Since I am using the ajax 3-column layout, I would like to also offer a direct link in the main nav menu. I’m using this format but the cookie crumbs are problematic:

    http://www.siteaddreess.url/portfolio_entries/community/

    The cookie crumbs display like this:

    You are here: Home / Homepage / Community

    And the page title looks ugly like this:

    Archive for: Community

    I would like to avoid the “Archive for:” portion and have the page look just like the main portfolio page. Is there perhaps a variable to add to the of the portfolio URL to pre-sort the ajax down to a category?

    Thank you!

    #203240

    Hey K!

    1) If you just want to display the category name in the breadcrumb (and not the portfolio grid page links, etc.) try to add following code to the theme functions.php file

    
    add_action('after_setup_theme','avia_remove_portfolio_breadcrumb');
    function avia_remove_portfolio_breadcrumb(){
    remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb');
    }
    

    2) You can remove the “Archive for” text. Open up /wp-content/themes/enfold/framework/php/function-set-avia-frontend.php and replace

    
    $output = __('Archive for:','avia_framework')." ".$term->name;
    

    with

    
    $output = $term->name;
    

    3) No, the ajax portfolio does not support a pre-sort at the moment.

    Cheers!
    Peter

    #203423

    1) Thank you so much for this! It works like a charm on the Portfolio.

    2) This is not working for me… I’m using a child theme and trying not to edit the parent theme… I tried:
    – Creating framework / php folders and inserting the php file you said to edit, made the prescribed changes.
    – Copied the entire framework folder (and subfolders) over to the child theme and edited the php file in the child theme copy, no luck.

    Any idea how I can apply the change #2 to the child theme only?

    Thanks!
    Kyler

    #203462

    Hey!

    You can copy the whole avia_which_archive function on your child theme’s functions.php.

    Best regards,
    Ismael

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

You must be logged in to reply to this topic.