Tagged: json, Yoast, yoast breadcrumbs
Hello Enfold support Team,
I would like to switch from avia breadcrumbs to Yoast Breadcrumbs to use the LD/JSON Markup.
I’ve found this post : https://kriesi.at/support/topic/add-yoast-breadcrumbs-in-the-same-spot-of-the-enfold-breadcrumbs/#post-243686
That works ok, but i would like to keep my parent Enfold theme without any modifications because of the multiple updates of the theme.
So i tried to copy all the code block under” //advanced title + breadcrumb function” (functions-enfold.php) and to paste it in my child theme “functions.php”. To my great surprise, it worked (i remember having enquing problems when duplicating functions like that).
What i want to know is : Is it safe” ? Is there a better /smarter way to do this”
Thanks for your kind help.
Hey ouranos3!
if it’s inside your child theme then it should be safe :).
Cheers!
Andy
Ok … Thanks Andy … Let’s try …
By “safe”, I meant “safe regarding functionnality”, not “safe regarding security” …
Hey!
All you did was to copy a valid function to another file. There’s no harm in that so yes it is safe, security and functionality-wise. The only downside is if we added new features in the the original function. Anyway, you can always check the theme change log in case.
Regards,
Ismael
Thanks Ismael.
Hi!
We are glad you got that short out!
Btw, If you have a moment, I would very much appreciate if you could quickly rate the Enfold to themeforest, which wiII heIp us keep the deveIopment up!
Please do not hesitate to contact us, if you do need anything else.
Best regards,
Basilis