Menu Category Icons 48px
Hi, I bring a new guide to the size of 48 pixels icons in the menu. All night I drank coffee and smoked cigarettes and old, we tried several variants of tutorials that are on the board until we came to a simple code that I líbyl, so I decided to publish it.
Pro správné použití kodu musíte mít nainstalované child theme protože zápis bude do style.css
Pro nastavení child theme můžete použít tento tutorial:
http://www.appthemes.com/blog/creati...ategory-icons/
In the directory classipress-child, create a folder "images" into which to copy the icon file "youricon.png" 48 pixels in size not more not less
I assume you know how to check IDs when kategoy not find a solution here tutorial:
http://sethmatics.com/articles/addin...ress-homepage/
OK LET´S START TUTORIAL
Open the style.css file and copy this code.
PHP Code:
div#adv_categories .catcol ul li.maincat.cat-item-10 { padding: 0 0 0px 32px; line-height: 48px; height: 48px; width:97,5%; background: #e3e3e3 url(images/youricon.png) no-repeat scroll left center; font-size: small; text-align: center;}
1. First you change the code in the ID number of the category: cat-item-XX
(XX = number of the category ID)
2. Rewrite the code name "youricon.png" in the name of your icon in the folder "images"
Parentheses do not delete !!!
3. Save the style.css
4. That All