Support » Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies » Plugin Messing with font awesome

  • If I activate the plugin my font awesome icons are partly disappear. In the Search bar there is usually a magnifying glass now it is gone.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Beda

    (@bedas)

    I assume you use a newer Fontawesome Version than the deprecated Toolset Types Plugin does.
    That’s unfortunate because Types, as it’s available here, is deprecated:
    https://wordpress.org/support/topic/types-plugin-will-go-away-at-the-end-of-2018/

    We cannot push any updates to it.
    We suggest looking out for other solutions.

    Note, this is the exact description of the issue, for your confirmation:

    When you use a Theme (or Plugin) which enqueues Fontawesome 5.x (using standard handle) and activate Toolset Types, then Icons that are using Fontawesome 5.x syntax will not be visible anymore on the front end.
    4.x Font Awesome Icons will still work.

    Plugin Support Beda

    (@bedas)

    Forgot to add, you should be able to solve it with this:

    function fix_different_version_same_handle_script() {

    //Dequeue/Deregister any conflicting script
    wp_dequeue_style( 'font-awesome' );
    wp_deregister_style( 'font-awesome' );

    //Re-enqueue the desired script with a different handle - change $src adequately)
    wp_enqueue_style('font-awesome-compatible', get_template_directory_uri() . '/assets/font-awesome-v5/css/fontawesome-all' . $min . '.css');

    }
    add_action( 'wp_enqueue_scripts', 'fix_different_version_same_handle_script', 20 );

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Messing with font awesome’ is closed to new replies.