- This topic has 10 replies, 4 voices, and was last updated 1 year, 6 months ago by Sourabh.
December 13, 2020 at 9:24 am #1578787Sourabh
how to activate Breadcrumbs in GP, I have rank math pro and it’s having options also but its asking to add a line of code in child.php, yesterday I did it, and the site is broken down, so afraid now.
How to do it via GP ??December 13, 2020 at 11:34 am #1578936TomLead DeveloperLead DeveloperDecember 13, 2020 at 11:40 am #1578946Sourabh
I don’t remember because after adding that code site was broken so just restored today.
Didn’t get any error but site broken down and got an email that due to child theme site has an error, already shared snapshots with you in previous tickets.
And when I restored so I have not added again anything because I wanted you to check my child theme..December 14, 2020 at 3:31 am #1579619DavidStaffCustomer Support
To add a RankMath Breadcrumb you can add this shortocode to a Hook Element ( NOT IN CHILD THEME):
Make sure you check Execute Shortcodes.
And set your Hook to any of the ones displayed here:December 14, 2020 at 3:45 am #1579637Sourabh
I am first time creating a hook, so sharing snapshot just cross-check that I am not making any mistakes ??
and display location i selected “Blog”, is it okay ??December 14, 2020 at 5:27 am #1579791DavidStaffCustomer Support
You will want to change the hook to a different one eg.
The visual guide link provided above shows where each of them will appear.
The Display Rules > Locations you can set many.
To have the breadcrumb displayed above your single posts set the Display Location to
Posts > All PostsDecember 14, 2020 at 6:36 am #1579897Sourabh
I did it, but seems something is wrong, refer snap –December 14, 2020 at 7:08 am #1580124DavidStaffCustomer Support
As i said you can use the visual guide to select a different position for the hook – reference here again:
generate_before_contenthook this will place it within the article container above your title.December 14, 2020 at 7:14 am #1580138Sourabh
Okay, I got it, but how to set the featured image below the title then so that it will look good, as the featured image is set by default so GP pulling data from the default setting ??
Refer here –
also, give some CSS to style it like below –
Regds:December 14, 2020 at 9:41 am #1580348LeoStaffCustomer Support
Is the breadcrumbs issue resolved?
If so can you open new topic for the featured image question?
Please also take a look at this article first:
https://docs.generatepress.com/article/adjusting-the-featured-images/December 18, 2020 at 7:37 am #1586072Sourabh
- You must be logged in to reply to this topic.