This topic has 15 replies, 3 voices, and was last updated 8 years, 5 months ago ago by Robert Hall
Hello there,
I would like to remove the field that says Sort by ( popularity etc ) and the text that says “Showing all 1 results” to make “All NumberHERE Items”
Also i am trying to put an image on each category, i managed to do that from the categeory pages but i want my image to be responsive, can you help ?
I cannot use visual composer for the categories because i haven’t created pages for them so i have to manually add the image from the category page itself.
But i want it to be responsive. please provide as much help as possible
Thanks
Hello,
1) Please add this code in custom.css file
.toolbar .woocommerce-ordering {
display: none;
}
2) To change “Showing all 1 results” string you should edit the \wp-content\plugins\woocommerce\templates\loop\result-count.php file.
3) You can add an image for the Category in Dashboard->Products->Categories->edit category->Banner image.
Regards,
Robert Hall
1. Thanks
2. How do i add it to child theme and which line to i change? And what do i change it to ?
3. I know i can add the images from, i am asking how to add responsive images that have text one them.
Hello,
2. How do i add it to child theme and which line to i change? And what do i change it to ?
In the mentioned file you can see short description how to add it to your theme as shown on the screenshot http://prntscr.com/bfxrrp. You need to change the code in line 40, change
Showing all %d results
to All %d items
.
3. I know i can add the images from, i am asking how to add responsive images that have text one them.
If you want to add images with text you need to edit them with image editor (e.g. Photoshop) as there are no such features in the theme.
Best regards,
Jack Richardson.
2. If i copy the mentioned file to the child theme will it be okay if i update? Or i will lose the change?
3. I know i have to use photoshop to add text. I am asking how to make the image responsive so to be responsive with laptops/computers and mobile devices.
So i made a new director in my child theme :
Legenda-child/woocoommerce/loop/result-count.php . Will the be okay if i update woocommerce or the theme? Or i will lose the change?
Still waiting for the image.
Hello,
You’ll not lose your customizations made in child theme after theme or plugins update.
As for the category images I checked category page on mobile view and saw that image is responsive, please check the screenshot http://prntscr.com/bfybw0
Best regards,
Jack Richardson.
I know the image is responsive without text. My worry is that if i add text on it, it won’t be responsive. Care to ellaborate?
Hello,
I’ve just added the logo image (with text) as banner for category and you can see that’s responsive with laptops/computers and mobile devices.
See screenshot:
https://gyazo.com/19dfcc4878035c11467c0cf2adc924ad
In this case you should use an image with text only.
Regards,
Robert Hall
Hello, so i cant use an image i have taken and add text to it? It wont be responsive?
Also the codes you told me to change on the above i changed them ! On computer it looks perfect, but on mobile the “sort by” still shows but the “all numberhere items” doesnt show at all but on pc it displays correct
Please help
Hello, so i cant use an image i have taken and add text to it? It wont be responsive?
Unfortunately we do not have such feature through the admin panel.
Also I’ve checked the ‘sort by’ in mobile view and its not displayed. See screenshot:
https://gyazo.com/e02845eed01f1dc0ce1207e053a618c7
Regards,
Robert Hall
1.I don’t want theme features to add the image. I am asking you if i can take an image i took with my camera, add text to it from photoshop and upload it to the category banner. Will it be responsive or not ?
2. The Sort by is correct you are right on pc and mobile.
3. The “Showing all items” i used the code you told me and i changed to “All X items” . It is correct on pc but it doesnt display at all on mobile
Hello,
1) Yes, it should be responsive.
3) I’ve added this code into the Child Theme. Please check.
@media (max-width: 979px){
.toolbar .woocommerce-result-count {
display: block !important;
}}
Regards,
Robert Hall
Ok perfect. Thanks
I will create a different thread for 2 more questions and that’s it! 🙂
Ok, you’re welcome! I’ll close this topic.
Have a good day!
Regards,
Robert Hall
Tagged: categories, child theme, remove sort by, responsive image, templates, woocommerce, wordpress
The issue related to '‘Remove Sort By ( Child theme ) + Responsive image on categories’' has been successfully resolved, and the topic is now closed for further responses