Home › Forums › WoodMart support forum › Categories icon size at the categories page and mobile menu
Categories icon size at the categories page and mobile menu
- This topic has 7 replies, 2 voices, and was last updated 4 years, 4 months ago by Elise Noromit.
-
AuthorPosts
-
August 11, 2020 at 12:55 pm #217945
siavashParticipantI want to change the Icon (and text) size at the Categories pages and the mobile menu.
For the category pages, I tried adding this as I found it in the furom:
div.category-nav-link .category-icon {
max-height: 80px;
}
div.category-nav-link .category-name {
font-size: 18px;
}div.category-nav-link .category-products-count {
font-size:14px;
}But t didn’t make any difference.
-For the Categories icon in Mobile. I added this to the “Custom CSS for mobile”, but it didn’t make any difference either:
.woodmart-navigation category-icon {
max-height: 40px;
margin-right: 10px;
}Can you help me?
ThanksAttachments:
You must be logged in to view attached files.August 11, 2020 at 2:13 pm #217982
Elise NoromitMemberHello,
You can change the text size for the mobile, however, you cannot change the image size.
Please add this code to the Theme Settings > Custom CSS > Mobile:
.category-nav-link .category-name { font-size: 14px; } .category-nav-link .category-products-count { font-size: 12px; }
Set the size as per your needs.
Best Regards
August 11, 2020 at 8:17 pm #218042
siavashParticipantThanks. How can I make the icons bigger and the gap in between the subcategories loo better?
(Attached Screenshot)Attachments:
You must be logged in to view attached files.August 11, 2020 at 9:02 pm #218058
Elise NoromitMemberHello,
If it is SVG you need to open your SVG icons file with some editor like Sublime Text or default system text editor and add width=”50″ height=”50″ attributes to your
<svg>
tag like it is shown: http://prntscr.com/m4n0qw
Then you will need to re-upload your icons in WordPress Dashboard.Best Regards
August 12, 2020 at 6:22 pm #218263
siavashParticipantI am using PNG files for the icons. Is there any way to change their size?
Attachments:
You must be logged in to view attached files.August 13, 2020 at 6:44 am #218359
Elise NoromitMemberHello,
PNG file size is not changeable. The image would be damaged. You can change the size of the block which contains the PNG.
Best Regards
August 13, 2020 at 12:44 pm #218480
siavashParticipantThat is what I have been asking from the beginning. I want to make their block or size bigger.
August 13, 2020 at 9:45 pm #218545
Elise NoromitMemberHello,
In this case, it is not possible. The wrapping bloc is
<a>
tag which is inline. Try to upload SVG images and set the width and height inside.You need to open your SVG icons file with some editor like Sublime Text or default system text editor and add width=”31″ height=”40″ attributes to your
<svg>
tag like it is shown: http://prntscr.com/m4n0qw
Try to use this convertor: https://image.online-convert.com/convert-to-svg
Then you will need to re-upload your icons in WordPress Dashboard.Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register