Home Forums Jevelin Theme Project breadcrumbs link doesn't work Reply To: Project breadcrumbs link doesn't work

Home Forums Jevelin Theme Project breadcrumbs link doesn't work Reply To: Project breadcrumbs link doesn't work

Solution for this topic

What about

the if statement in this file:

jevelin/framework-customizations/extensions/portfolio/views/archive.php

could it be it?

Yes it seems the following code in this file is causing this issue so i have notified the theme developer about this so that it will be fixed.

wp_reset_postdata();
$portfolio1 = get_page_by_path( 'portfolio' );
$portfolio2 = get_page_by_path( 'portfolio-page' );

if( isset( $portfolio1->ID ) && $portfolio1->ID > 0 ) :
	wp_redirect( get_the_permalink( $portfolio1->ID ) );
elseif( isset( $portfolio2->ID ) && $portfolio2->ID > 0 ) :
	wp_redirect( get_the_permalink( $portfolio2->ID ) );
else :
	wp_redirect( get_home_url( '/' ) );
endif;

exit;

 

In the meanwhile you can fix it by removing the above code from theme file and uncommenting other code in the same file or just use the attached child theme of Jevelin theme that contains some custom code.

 

 

Attachments:
You must be logged in to view attached files.