-
AuthorPosts
-
May 3, 2020 at 5:28 pm #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, 7 months ago by Flow9999.
May 4, 2020 at 10:24 am #1209469Following, when I updated the separator “/” went missing. (Using the same code.)
May 4, 2020 at 7:44 pm #1209688Hi 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,
VictoriaMay 4, 2020 at 10:51 pm #1209751Hello 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, 7 months ago by Flow9999.
May 6, 2020 at 7:58 pm #1210461Hi 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,
VictoriaMay 6, 2020 at 8:17 pm #1210468You are right Victoria, I made a mistake with username. Details in Private Area
- This reply was modified 4 years, 7 months ago by Flow9999.
May 8, 2020 at 7:04 pm #1211133Hi 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,
VictoriaMay 8, 2020 at 7:41 pm #1211151Thanks 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 ;)
May 8, 2020 at 9:59 pm #1211249I reviewed the shortcode guide and it says the code should be added at bottom:
https://kriesi.at/documentation/enfold/breadcrumbs/#insert-breadcrumbs-as-shortcodesPlease 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, 7 months ago by Flow9999.
May 8, 2020 at 10:06 pm #1211253So 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.May 8, 2020 at 10:44 pm #1211275Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Update 4.7.4 breaks breadcrumbs shortcode’ is closed to new replies.