Tagged: json, Yoast, yoast breadcrumbs
-
AuthorPosts
-
January 21, 2016 at 2:11 pm #569391
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.
January 22, 2016 at 2:33 pm #570072Hey ouranos3!
if it’s inside your child theme then it should be safe :).
Cheers!
AndyJanuary 22, 2016 at 3:30 pm #570139Ok … Thanks Andy … Let’s try …
By “safe”, I meant “safe regarding functionnality”, not “safe regarding security” …January 23, 2016 at 9:00 am #570489Hey!
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,
IsmaelJanuary 23, 2016 at 7:46 pm #570608Thanks Ismael.
January 24, 2016 at 10:15 pm #570921Hi!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
