Hi team,
I would like to change which breadcrumbs are viewed when you go to a page.
When you go to the projects page of my website, it goes straight to ALL projects. I want to change this to FEATURED.
I would also like to make the breadcrumbs the same as my main menu, Montserrat font in #919191 and changed to #005eaa when clicked on.
I would also like to remove the big font that says which breadcrumb you’re on. For example when you go to my projects page it says ALL in big font above the breadcrumb. Please remove this if you can.
Is this possible?
Lara
Hey Lara,
You can use the following for custom breadcrumb handling:
Best regards,
Jordan Shannon
Thanks Jordan,
Is there a way I can do this without a plugin?
Hi Lara,
Those are not breadcrumbs, those are sort options and so the breadcrumbs plugin will not help you.
Maybe you need a solution like this
https://kriesi.at/support/topic/linking-to-filtered-portfolio-ajax/
Best regards,
Victoria
Hi Victoria,
That doesn’t really help me.
Hey!
Thank you for the update.
Do you want to set the category “featured” as the default filter? This script might help.
function ava_custom_script_mod_sort() {
?>
<script>
(function($) {
$('.featured_sort_sep').trigger('click');
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_mod_sort', 10 );
Add it in the functions.php file.
Regards,
Ismael
Hi Ismael,
Yes that would be great!
Where do I add this script?
Hi,
Add it in the functions.php file of the child theme. If the site is not using a child theme yet, please follow this link.
// https://kriesi.at/documentation/enfold/child-theme/
Best regards,
Ismael
Hi Ismael.
There’s nowhere for me to add this in the enfold child theme.
Hi,
You have to create the functions.php within your child theme directory.
Best regards,
Jordan Shannon