• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Change Ionicons with Dashicons

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Change Ionicons with Dashicons

This topic is: not resolved

Tagged: dashicons, Icons, ionicons

  • This topic has 2 replies, 2 voices, and was last updated 2 years, 1 month ago by enrico padovani.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 1, 2021 at 10:50 am #502868
    enrico padovani
    Participant

    I use 4/5 Ionicons icons only in the mobile responsive menu of the Navigation Pro theme. It is possible to change and use only Dashicons. for so few icons it doesn't seem logical to take all that Ionicons CSS with me.
    Many greetings and thanks in advance

    https://www.shiatsu-shintai.it/
    February 1, 2021 at 3:12 pm #502869
    Anita
    Keymaster

    You can enqueue the Dashicons this way.

    //* Enqueue Dashicons
    add_action( 'wp_enqueue_scripts', 'enqueue_dashicons' );
    function enqueue_dashicons() {
    
    	wp_enqueue_style( 'dashicons' );
    
    }

    Then locate the code for the ones you want here.

    Then you can remove the code for Ionicons and the CSS.


    Love coffee, chocolate and my Bella!

    February 4, 2021 at 2:44 am #502909
    enrico padovani
    Participant

    Thanks anyway Anita, I understood that too.
    A warm greeting

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble