This topic has 7 replies, 4 voices, and was last updated 5 months ago ago by Andrew Mitchell
For the Breadcrumbs Is thay a way to show it belowe the banner on the Domain/shop Page ?
The Breadcrumbs Start with Home/shop/… is this possible to make it start at Shop/……
Then I can see 2 time the Categorie if I am in sub categorie is thay a way to remove on1.
Now is
Home/Shop/KNX
KNX
What I look at is only
Shop/KNX/…
Hi @Martin,
To move the breadcrumb below the banner on shop page, please add the following code under functions.php file locates in your child theme:
add_action('wp_footer', 'n2t_wp_footer');
function n2t_wp_footer(){
?>
<script>
jQuery( function($){
$(document).ready(function(){
$('.woocommerce-shop .page-heading').insertAfter($('.category-description'));
})
});
</script>
<?php
}
To remove the Home link in the breadcrumb, please add the following CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:
body div.page-heading > div > div > div > nav > a:nth-child(1),
body div.page-heading > div > div > div > nav > span:nth-child(2){
display: none !important;
}
Hope it helps!
OK this is working but now I need to remove the categories
Hello, Martin,
Thank you for getting in touch with us.
On your screenshot it is a category description, to remove content from this area, edit – https://prnt.sc/VyfHnMAFvTRD > https://prnt.sc/MBDvLmXPlLWt
If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.
Kind Regards,
8theme team
I fix it, I needed not only to change the name remove the full class:
Instead to use CSS that only Hide the text (this will style load in the Background I needed to use function.php
I needed to removed and not just hide with CSS
I had this to the PHP Function:
function remove_category_description_script() {
?>
<script>
document.addEventListener('DOMContentLoaded', function() {
var categoryDescription = document.querySelector('.category-description');
if (categoryDescription) {
categoryDescription.remove();
}
});
</script>
<?php
}
add_action('wp_footer', 'remove_category_description_script');
Hi @Martin,
Glad you’ve sorted it out and thanks for sharing the codes.
Kind Regards,
8theme team
Dear Martin,
We hope you’re reveling in the experience our theme brings! Your enthusiasm is what fuels our passion. Would you be so kind as to channel that energy into a 5-star rating on ThemeForest? Your feedback is the spark that lights our way!
Click here to spread the love: https://themeforest.net/downloads
Thank you for being an integral part of our journey!
Best Regards,
The 8Theme Team
The issue related to '‘For the Breadcrumbs showing this below the Banner on the shop page’' has been successfully resolved, and the topic is now closed for further responses