-
AuthorPosts
-
November 23, 2022 at 11:36 am #1373620
The issue of breadcrumb is that the blog post page title exists before the blog page tile (Please download the picture from below link to see the detail). From my understanding, the breadcrumb’s hierarchy should be from top to down. Do you know how to fix it?
https://drive.google.com/file/d/1gkmezK3bkl92alZgKHxMjKEyW2HskupG/view?usp=sharingThanks
AnthonyNovember 24, 2022 at 7:51 am #1373703Hey sailentpooN,
Thank you for the inquiry.
By default, the first item in the breadcrumb should be the home page. Did you add any modifications to the theme? To unset the current first item in the breadcrumb on a single post, please try to add this code in the functions.php file.
function avia_adjust_breadcrumb($trail) { if( is_singular( 'post' ) ) { unset($trail[1]); } return $trail; } add_filter('avia_breadcrumbs_trail', 'avia_adjust_breadcrumb', 50, 1);
Best regards,
IsmaelNovember 24, 2022 at 11:25 am #1373719This reply has been marked as private.November 26, 2022 at 6:30 pm #1373957Hi,
As I understand your last request, you want the beginning breadcrumb link on your blog page (https://3dlabstore.com.hk/blog) to point to https://3dlabstore.com.hk/3d-printing-technology
When I check your blog page this is the current link, so I assume that you have already sorted this out.Best regards,
MikeNovember 28, 2022 at 1:56 pm #1374143Hello
After adding the code provided by you, there will be error message shown in below link:
https://drive.google.com/file/d/1LMHWHSIAvUDrAyu06MnP8uP3vHu10fuI/view?usp=sharingAlso although the beginning breadcrumb link on blog page (https://3dlabstore.com.hk/blog) can point to https://3dlabstore.com.hk/3d-printing-technology, the blog post page cannot (as shown in the above download link as well). I want beginning breadcrumb of all blog post can link to
https://3dlabstore.com.hk/3d-printing-technology as wellThanks
AnthonyNovember 29, 2022 at 7:40 am #1374236Hi,
if it is possible set it to particular page (e.g https://3dlabstore.com.hk/3d-printing-technology)
Yes, that should be possible. Please remove the previous code that we suggested above and replace it with the code below.
function avia_breadcrumbs_trail_mod($trail) { if( is_singular( 'post' ) ) { $trail[0] = '<a href="https://3dlabstore.com.hk/3d-printing-technology" title="3d Printing Technology" rel="">3d Printing Technology</a>'; } return $trail; } add_filter('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 1);
If this adds the page in the wrong position, please look for this code in the filter above..
$trail[0]
.. and replace it with:
$trail[1]
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.