soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

Add Ability to Use Oxygen Icon Set as Menu Icons #3040

Open switchupcb opened 2 years ago

switchupcb commented 2 years ago

Describe the feature you'd like to see included in Oxygen. Allow usage of menu icons in menus to showcase on the front-end.

What are the use cases for this feature? Allows the Oxygen User to set icons in the "Appearance > Menu" rather than resorting to manual menu's (containing icons). Allows the user to maintain one set of icons rather than two through multiple plugins. Allows the user to reduce plugin amount (and potential plugin conflicts). Includes a potential performance benefit through the loading of only icons used by the website (from Oxygen's Optimization).

Examples of this feature or functionality. The equivalent is usage of a plugin such as Menu Icons and enabling their set to add icons to the menu by setting a navigation label to <i class="fab fa-youtube"></i> (uses YouTube icon). Alternatively with the use of no plugins, fetch a script upon page load from a server containing a javascript file that contains the icons you are using (i.e https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/brands.min.css). Then, add icons to the menu by setting a navigation label to <i class="fab fa-youtube"></i> (uses YouTube icon).

samjco commented 2 years ago

I’ve done this by combine ACF icon field to the menu PT and then modify filter the menu code in Snippets. The result will show icons based on what is chosen