|
|
| A simple way to add icons to your categories and other taxonomies. Wordpress Tutorial |
Noted That:
|
Start the Tips:1. First Download " simple-category-icons.zip " Plugin to your Local Computer. (Click Download) 2. Then, Login to your " yourdomain.com/wp-admin " Dashboard. 3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard. 4. Now, Click on "Upload Plugin" button.
5. Now, Browse " simple-category-icons.zip " Downloaded plugin from your computer, Where you downloaded simple-category-icons.zip According to Step – 1 Above then, click on " Install Now" 6. Now, Click on " Active Plugin" 7. Then, See left sidemenu. " Simple Category Icons " folder is added on left sidemenu. Now, Click on " Simple Category Icons " folder. Noted that: If you do not see " Simple Category Icons " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ". 8. Now you configure yourself oR Watch video tutorial below about Simple Category Icons Configurtions and Settings or How to work " Simple Category Icons " in your WordPress site. oR After Activated Plugin According to Step-6 then,
|
| Guide |
|---|
|
Upload files to your plugin directory or use WordPress built-it features. Activate plugin. Simple Category Icons features functions you can use in your themes to output icons where you need them. SCI defaults to retrieving icons set on the category but you can use other taxonomies as well. Theme codes
Example: the_icon($args, $term_type = ‘category’,$id = null, $use_term_id = null):
You can use different arguments either in a string or array:
or
Other arguments accepted are taxonomy type ( i.e category,post_tag ) for getting icons from other taxonomies and
Will use the tag taxonomy: Args currently accepts size (small,medium or large) and class ( custom CSS class ).
If you want more control over your icon you can use this function. $args accepts size (small, medium, large) FiltersIf you need even more control over the_icon these two filters are for you:
‘sci_icon_title’ : Filters ‘title’ tag on the image. Parameters given are title and term_id By default SCI gets the icon of the lowest category in the structure. I.e. with a structure like : ( parent term -> sub-parent term -> term ) SCI will take the icon set to term and will display nothing if there is no icon on this term. You can change this behavior by applying the ‘sci_category_decision’ filter. Parameters are a term object (the ‘decision’) which is about the be used and an Array of all term Objects used in this decision. Return value is a term Object. You can return any term object here. |
| simple , icons , categories , other , taxonomies , tutorial , |
| Name |
|---|
Read Article https://develop.horje.com/learn/1434/reference