Before requesting any support Please search the Forum First. You may find your desired answer. This will save your waiting time and will save our working hour. We may not answer the question which we have already answered. You should also read our Support Policy
Icon with the Menu Items in AssocitionX Extend Theme
Icon with the Menu Items in AssocitionX Extend Theme
Is it Possible ?
– Yes, like the following Image:
You can add the following Classes in the CSS Classes (optional) field of Menu Items.
fa-lock d5-menu-with-icon d5-menu-no-text
Where fa-lock is a icon name from FontAwesome. You can use your desired Icon; d5-menu-with-icon is mandatory and d5-menu-no-text is optional if you don’t like to use the Anchor Text.
Now, you need to add the following CSS code in the WP-Admin > Appearance > AssociationX Options > General Options > Custom Code within Head Area Box. Please remember that, these should be used once, not every time for new Menu Icon Item.
1
2
3
4
5
6
7
8
9
10
11
<style>
/* --- Menu with Icon --- */
#main-menu-con .mainmenu-parent ul li.d5-menu-with-icon {padding:7px9px;display:flex;align-items:center;justify-content:center;}
#main-menu-con .mainmenu-parent ul li.d5-menu-with-icon::before {color:#ffffff;font-size:21px;padding:3px;display:inline-flex;}
#main-menu-con .mainmenu-parent ul li.d5-menu-with-icon a {padding:3px;}
#main-menu-con .mainmenu-parent li.d5-menu-no-text a {display:none;}
#main-menu-con .mainmenu-parent ul ul li.d5-menu-with-icon {padding:0;}
#main-menu-con .mainmenu-parent ul ul li.d5-menu-with-icon::before {padding:11px3px;}
#main-menu-con .mainmenu-parent ul ul li.d5-menu-with-icon a {padding:11px3px;}
#main-menu-con .mainmenu-parent ul ul li.d5-menu-with-icon.d5-menu-no-text {width:100%;}
</style>
Author
Posts
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.