Okay
  Public Ticket #399068
ionicons update
Closed

Comments

  • Fabrizio started the conversation

    Hi!

    Great template, thank you for that wonderful work!

    How can I update the icon of ionicons? The current version is 2.0.1 with 733 icons and in the theme there is v 1.4.1 with "only" 525.

    Many thanks

    Fabrizio

  •  291
    Paul replied

    Hi Fabrizio!

    You need to manually edit the code a bit. Please open "/includes/assets.php" file and find this code:

    wp_register_style( 'uxbarn-ionicons', 'http://code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css', array(), null );

    Just update the URL of the Ionicons reference to the latest version which you can find it on http://ionicons.com/. So as a result it would be:

    wp_register_style( 'uxbarn-ionicons', 'http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', array(), null );

    This should help. :)

    Regards,
    Paul

  • Fabrizio replied

    Many thanks!


  • Fabrizio replied

    Hi,

    there is a problem with the icons update... when I change the url, the new icons that I need works properly but olders icons, like "ion-ios7-arrow-left" disappears... there is a way for mixing the two css?


    thanks


    F.

  •  291
    Paul replied

    Hi,

    Looks like the latest version Ionicons of has changed from "-ios7-" to just "-ios-" so that's why your old icons disappear.

    Please try updating your icon code and make sure to use the same code as the list on: http://ionicons.com/

    Cheers,
    Paul

  • Fabrizio replied

    Yes, what you say is correct, and it seems logical.

    The problem is that the old code of the icons used by you in the template (such as photo galleries and other)...

  •  291
    Paul replied

    Oh, I see...

    Well, please add below code into the "uxbarn_load_css()" function (in "assets.php" file):

    wp_register_style( 'uxbarn-ionicons-152', 'http://code.ionicframework.com/ionicons/1.5.2/css/ionicons.min.css', array(), null );
    wp_enqueue_style( 'uxbarn-ionicons-152' );

    It will load the older Ionicons v1.5.2 so some icons that are fixed in the template files can display. This should help.

  • Fabrizio replied

    yeah!

    it works fine!

    Many thanks Paul

    cheers