This topic has 11 replies, 3 voices, and was last updated 9 years, 2 months ago ago by Jack Richardson
Hi
I want to display the products categories in the left sidebar of the Single Product page exactly as displayed in the Home page.
Hello,
You need add Woocommerce Product Categories widget into “Single Product Sidebar” area in Appearance > Widgets.
Best regards,
Jack Richardson.
Hi
The “Single Product Sidebar” appears custom area of the “Single Product Page” which is on the left side of the page according layout. And this custom area is not wide enough .
I want the sidebar to appear in the left side of the page exactly as it is in the main shop page.
And I want to use the “8theme subcategories list Widget” Not the “Woocommerce Product Categories widget”
This is a screenshot if the main shop page with its side bar on the left :
Hello,
Please provide us with WP dashboard and FTP (FTP host, FTP user, FTP password) credentials in private content.
Best regards,
Jack Richardson.
As below
thanks
Hello, absico
1.Please add following code into the custom.css:
.product-shop{width:250px !important}
#product-page .product-shop .addto-container .button.big {margin-left:17px;}
#product-page .product-sidebar{width:220px}
2.Replace widget with the one you preffer in appearance-widets.
Regards,
Brian Johnson
Hello,
I’ve changed widget to “8theme subcategories” and added the following css code in custom.css:
#product-page .product-shop {
float: right;
width: 300px;
}
#product-page .product-sidebar {
border-left: none;
float: left;
width: 220px;
margin-left: 0px;
padding-left: 0px;
}
#product-page .product-images {
width: 400px;
margin-left: 250px;
position: absolute;
}
Please check your site now.
Best regards,
Jack Richardson.
Hello Jack
your code works great on the laptop screen.
Three issues appears on the mobile screen :
1- The image of the products goes to the right(Not Responsive)
2- The related products widget becomes upside down and not scrollable.
3- 8theme subcategories sidebar disappears.
I really appreciate your help and support
best regards
absico
Hello,
I’ve edited previously provided css code to the following:
@media (min-width: 1200px) {
#product-page .product-shop {
float: right;
width: 300px;
}
#product-page .product-sidebar {
border-left: none;
float: left;
width: 220px;
margin-left: 0px;
padding-left: 0px;
}
#product-page .product-images {
width: 400px;
margin-left: 250px;
position: absolute;
}}
@media (max-width: 768px) {
#product-page .product-sidebar {
display: block;
width: 220px;
float: left;
text-align: left;
border: none;
}}
Also changed the code in the /wp-content/themes/blanco/woocommerce/single-product/related.php file in lines 46 and 52 <?php if($related_count > 3): ?>
to display slider on mobile devices.
Please check your site now.
Best regards,
Jack Richardson.
Thanksssssssssss
Hello,
You are welcome!
Best regards,
Jack Richardson.
The issue related to '‘Categories in the Single Product Page’' has been successfully resolved, and the topic is now closed for further responses