Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1209314

    Since updating Enfold to 4.7.4 my breadcrumb shortcode mod no longer works.
    Only [av_breadcrumbs] is shown since update :-(
    Of course I made sure that the following line are still active in function.php:

    function av_breadcrumbs_shortcode( $atts ) {
    return avia_breadcrumbs(array(‘separator’ => ‘/’, ‘richsnippet’ => true));
    }
    add_shortcode( ‘av_breadcrumbs’, ‘av_breadcrumbs_shortcode’ );
    • This topic was modified 4 years, 6 months ago by Flow9999.
    #1209469

    Following, when I updated the separator “/” went missing. (Using the same code.)

    #1209688

    Hi Flow9999,

    Are you using the child theme?

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    @Orla Please start a separate thread, describe your issue there and give us a link to your website, so that you can see the private content.

    Best regards,
    Victoria

    #1209751

    Hello Victoria,

    I don’t use child theme yet, but I applied all necessary modifications to functions.php and class_breadcrumbs.php after updating to 4.74
    Turing off Swift Performance Caching plugin didn’t make a difference.
    Basically I applied every change I had in 4.7.3 where it worked.

    Temporary admin login is included in private.

    Thanks for helping!!
    Kind regards

    • This reply was modified 4 years, 6 months ago by Flow9999.
    #1210461

    Hi Flow9999,

    Credentials did not work for me. Could you please update the credentials?

    If you don’t use the child theme, on every update your code in the parent theme gets erased. Please check the file.

    Best regards,
    Victoria

    #1210468

    You are right Victoria, I made a mistake with username. Details in Private Area

    • This reply was modified 4 years, 6 months ago by Flow9999.
    #1211133

    Hi Flow9999,

    You added the code at the very bottom and it should be added at the top and the single quotes in the code were not the ones used in programming. I added the code for you. Please check.

    Keep in mind that after the next update the code will disappear again. You need to install the child theme and add the code there.

    Here are the docs for you:

    Best regards,
    Victoria

    #1211151

    Thanks alot Victoria! :-)

    Shortcode works again as intended. Before updating to 4.7.4 I inserted the code in functions.php also at the very bottom and it worked.
    Well now I know that it’s supposed to be at the beginning.
    I didn’t use child theme before, because I didn’t want to break something.
    Can you maybe ask the devs if they can implement the additional code for breadcrumbs shortcode in future releases?

    Best wishes ;)

    #1211249

    I reviewed the shortcode guide and it says the code should be added at bottom:
    https://kriesi.at/documentation/enfold/breadcrumbs/#insert-breadcrumbs-as-shortcodes

    Please go to Appearance > Editor and open functions.php file and add the following code at the bottom of the page:
    
    function av_breadcrumbs_shortcode( $atts ) {
    return avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true));
    }
    add_shortcode( 'av_breadcrumbs', 'av_breadcrumbs_shortcode' );
    
    Then add breadcrumbs using following shortcode
    
    [av_breadcrumbs]
    
    
    • This reply was modified 4 years, 6 months ago by Flow9999.
    #1211253

    So the issue was the wrong single quotes in the code and not the position of the additional lines.
    Thread can be closed. If possible maybe the devs can include this shortcode in future releases.

    #1211275

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Update 4.7.4 breaks breadcrumbs shortcode’ is closed to new replies.