• Resolved herculesdesign

    (@herculesdesign)


    Hi,

    In the latest version of Redux, font awesome icons are not loaded on the frontend. They are only visible in the options panel. After checking the site’s code source, Font Awesome icons are not embedded.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Kev Provance

    (@kprovance)

    Are you using either the Icon Select or Social Profiles field? Font Awesome does not enqueue for the front end automatically. It only does so if either of those fields are in use. If your config does involve use of those fields, I’m going to need FAR more information from you, otherwise I’d be guessing.

    Thread Starter herculesdesign

    (@herculesdesign)

    Thank you for getting back to me.

    I am using the Social Profiles field. I noticed a code change in the class-redux-extension-social-profiles.php file. Previously it was like this:

        public function enqueue_styles() {
            wp_enqueue_script(
                'font-awesome-kit',
                'https://kit.fontawesome.com/a29229187e.js',
                array(),
                time(),
                true
            );
    
            // Field CSS.
            wp_enqueue_style(
                'redux-field-social-profiles-frontend',
                $this->extension_url . 'social_profiles/css/field_social_profiles_frontend.css',
                array(),
                self::$version
            );
        }

    And now in the latest version of Redux it’s like:

    public function enqueue_styles() {
            // Field CSS.
            wp_enqueue_style(
                'redux-field-social-profiles-frontend',
                $this->extension_url . 'social_profiles/css/field_social_profiles_frontend.css',
                array(),
                self::$version
            );
        }

    so this snippet is missing and the icons don’t show up:

    wp_enqueue_script(
    ‘font-awesome-kit’,
    https://kit.fontawesome.com/a29229187e.js’,
    array(),
    time(),
    true
    );

    Is there a way to make Redux enqueue font awesome icons even when the Icon Select or Social Profiles fields are not in use?

    Plugin Author Kev Provance

    (@kprovance)

    I had to get rid of that CDN URL for Font Awesome some time back. There was a limit on how many calls could be made. 24+ million blew that limit.

    I added a global argument, fontawesome_frontend to the beta version in the GitHub repo: https://github.com/reduxframework/redux-framework

    That will enqueue FA on the frontend regardless the fields used.

    Thread Starter herculesdesign

    (@herculesdesign)

    That’s great! Thank you for this extra global argument and I appreciate it. I’m closing this thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘FontAwesome’ is closed to new replies.