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

    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
    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

    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,


    Thanks – problem solved.
    Perhaps the docs page I referenced above could be updated?



    Glad Nikko could help! We have updated the snippet on docs :)

    Let us know if you have any other questions and enjoy the rest of your day!

    Best regards,

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Site broken by breadcrumbs – functions php code after latest theme update’ is closed to new replies.