
-
AuthorPosts
-
April 17, 2025 at 5:58 pm #1481526
Hello,
I used the CCS provided, but it didn’t work.
Now I have 2 Home links simultaneously, instead of one directing to the website homepage.https://snipboard.io/IxPd3g.jpg
Please, help me ;)
LeoApril 17, 2025 at 10:44 pm #1481552Hey Akhurst,
I don’t know what css you are using, but the first “home” is linked to your main domain, the second “home” is linked to your “shop.domain”
So do you really what to remove the second “home” or have it say “Shop”?
Please include a admin login in the Private Content area so we can examine based on your answer.Best regards,
MikeApril 17, 2025 at 11:06 pm #1481555Hi Mike,
Sorry for the missing information. It’s just because Ismael told me to open another thread.
We solved the initial issue, and I got mixed up with another topic. My bad ;)I want to show the correct breadcrumb information: Home (https://shop.akhurst.com/) since the website’s home page is not http://www.akhurst.com/. We use a multisite platform, but we dont have this issue with the other parent companies (Cantek, Leadermac).
Ismael sent me this code:
function avia_breadcrumbs_trail_mod($trail)
{
if ( is_product() || is_product_category() ) {
$trail[1] = ‘Home‘;
}
return $trail;
}
add_filter(‘avia_breadcrumbs_trail’, ‘avia_breadcrumbs_trail_mod’, 50, 1);April 17, 2025 at 11:11 pm #1481556`function avia_breadcrumbs_trail_mod($trail)
{
if ( is_product() || is_product_category() ) {
$trail[1] = ‘<a href=”https://shop.akhurst.com/” title=”Product Page” rel=””>Home</a>’;
}
return $trail;
}
add_filter(‘avia_breadcrumbs_trail’, ‘avia_breadcrumbs_trail_mod’, 50, 1);April 18, 2025 at 7:00 am #1481567Hi,
Thank you for opening another thread.
We adjusted the filter a bit. Please try it again:
function avia_breadcrumbs_trail_mod($trail) { if ( is_product() || is_product_category() ) { $trail[0] = '<a href="https://shop.akhurst.com/" title="Product Page" rel="">Home</a>'; } return $trail; } add_filter('avia_breadcrumbs_trail', 'avia_breadcrumbs_trail_mod', 50, 1);
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.