Reply 306901 to: Issues About The header.php Location

Avatar: wayy634
wayy634
Participant
October 29, 2021 at 02:26

Hi,

Thanks for your quick response, and after reading that breadcrumbs guide, here are some steps that you need to know before installing that code snippet to the right place.

No.1: I do not know whether the breadcrumbs has already or not been successfully added to our website if it has already been added, then please let me know, cause if too many various forms of different breadcrumbs are added to the website might cause a conflict. Or could you show me how can I detect whether the Xstore breadcrumbs has already been applied to my site or not?

No.2: This code snippet should be added to the child theme.

No.3: Then you should place the below code snippet to the single.php file or the header.php file. Either of that would be fine.

Here comes the breadcrumbs code snippet:

/**
 * Use the following code in your theme template files to display breadcrumbs:
 */
<?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

No.4: Now since you mentioned that we have an independent file for breadcrumbs, “xstore/templates/breadcrumbs.php”, is it possible to put that code snippet directly on that file?

No.5: Last but not least, since I am not quite good at coding; how can I know whether that breadcrumbs has been applied to my website or not.

Looking forward to your reply, and I will be more appreciated it if you show me how to get that issue done.

Please contact administrator
for this information.
Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.