Tagged: breadcrumbs, theme update
After the latest enfold theme update my site would not display any pages apart from the home page
The web hosts flagged up the error as in the private content below.
I removed the following code (as per https://kriesi.at/documentation/enfold/breadcrumbs/)
from my child theme functions PHP file
————————————-
function av_breadcrumbs_shortcode( $atts ) {
return avia_breadcrumbs(array(‘separator’ => ‘/’, ‘richsnippet’ => true));
}
add_shortcode( ‘av_breadcrumbs’, ‘av_breadcrumbs_shortcode’ );
——————————————-
and my site is now back up but I am stuck with no breadcrumbs and the av_breadcrumbs shortcode displayed at the top of each page.
I use the short code in a code block on each page to display the breadcrumbs
[av_breadcrumbs]
The error can be repeated. Put the code back into functions php the site is broken – take it out it is back up.
I see one other person may have had this problem.
Hey Sujohn,
I tried to login with the credentials you gave however it doesn’t work.
As for the code, it will not work anymore, please use this code instead:
function av_breadcrumbs_shortcode( $atts ) {
return Avia_Breadcrumb_Trail()->get_trail( array( 'separator' => '/', 'richsnippet' => true ) );
}
add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );
Best regards,
Nikko
Thanks – problem solved.
Perhaps the docs page I referenced above could be updated?