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

    Hi there!

    I’m new to the theme and the forum. Just bought the theme for one of my clients. What a great theme! Easy to customize and very flexible! Love it!

    At the moment I’m developing the website for my client on my own server and I’m running in some issues with displaying portfolio categories. I hope you can help me out!

    Link
    You can find the demo at http://klanten.michieldoetjes.nl/perswinkelnl.

    Problem
    I’m using the partner/logo element to showcase my client’s list of clients. I want the logo’s to link to the portfolio category for that specific client. That’s the easy part. Now when you click on the logo, you’re presented with a portfolio archive page for the specific category. There’s a couple of things I want to change on that page.

    Screenshot of portfolio category archive page

    1. URL: the portfolio-page’s URL is /producten-in-de-pers. I’d like this page’s URL to have the same structure: /producten-in-de-pers/[[category-name]].
    2. Page title: instead of the default ‘Archief van:’ title, I’d like to change this to ‘Producten in de pers van:’.
    3. Presentation: ideally, I’d like to edit the presentation and elements on the page.

    Is that possible?

    • This topic was modified 8 years, 4 months ago by Michiel.
    #555350

    Hi michieldoetjes!

    Thank you for using Enfold.

    1.) Where can we find the partner/logo element? I don’t see it anywhere in the home page.

    2.) Change the category title with this code in the functions.php file:

    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
    function avf_change_which_archive($output)
    {
    	if(is_tax('portfolio_entries')) {
    		$output = 'Producten in de pers van';
    	}
    	return $output;
    }

    3.) Unfortunately, it’s not possible to modify the layout of the archive pages individually. You have to modify the archive.php template directly.

    Regards,
    Ismael

    #555417

    Hi!

    Thanks for your response!

    1) Partner/logo element is placed on http://klanten.michieldoetjes.nl/perswinkelnl/wie/. Only the first element links to a category page.

    2) Thanks for the code. How can I add the category name behind the title? Like this: “Producten in de pers van [[ category title ]]”.

    3) Ok! Will look into this!

    I noticed a change in the breadcrumbs after editing the functions.php, adding ‘Mixed Fullwidth Portfolio’ to the breadcrumbs, did I do something wrong?

    Thanks for your help!

    #556391

    Hey!

    1.) Change the Portfolio Categories Base on Settings > Permalinks panel.

    2.) Please replace the code with this:

    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
    function avf_change_which_archive($output)
    {
        $title = single_term_title( '', false );
    	if(is_tax('portfolio_entries')) {
    		$output = 'Producten in de pers van ' . $title;
    	}
    	return $output;
    }

    3.) That is the parent page of the portfolio page. Please remove the mixed-fullwidth-portfolio page in the Pages panel.

    Regards,
    Ismael

    #556507

    Great! Thanks for your help! Managed to fix most of the issues now, still one thing to go:

    I’d like to change the archive-page’s behavior to displaying the portfolio images in a lightbox instead of linking to a ‘single-item’ page. Is that possible? And is there a way to change use a custom archive.php to do this? In other words: leave the original archive.php untouched and have these changes embedded in a new archive-file? I’m already using the child theme.

    Example
    I’d like my category-archive to act like the ‘Producten in de Pers’ page.

    #557331

    Hey!

    Regarding the archive template, you can follow the template hierarchy documentation in the following link. Look for the custom post type section:

    https://developer.wordpress.org/themes/basics/template-hierarchy/
    http://wphierarchy.com/

    Those features are definitely possible but it will require custom modification that is beyond the scope of support. You can contact our partner codeable for this kind of modification: http://kriesi.at/contact/customization

    Cheers!
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.