Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter buyavets

    (@buyavets)

    up. Please, help me.

    Thread Starter buyavets

    (@buyavets)

    really, I need help.

    Plugin Author Miled

    (@miled)

    inside the filter you’re using change the idp name to vk instead of vkontakte.

    generated code should be <i class="fa fa-vk fa-lg"></i>

    Thread Starter buyavets

    (@buyavets)

    Hello again.

    I’m using your source code https://miled.github.io/wordpress-social-login/themes.html

    /* -----------------------------------------------------------------------------
     * FONT AWESOME
     * -------------------------------------------------------------------------  */
    function wsl_use_fontawesome_icons( $provider_id, $provider_name, $authenticate_url )
    {
        ?>
            <a
               rel           = "nofollow"
               href          = "<?php echo $authenticate_url; ?>"
               data-provider = "<?php echo $provider_id ?>"
               class         = "wp-social-login-provider wp-social-login-provider-<?php echo strtolower( $provider_id ); ?>"
             >
                <span>
                    <i class="fa fa-<?php echo strtolower( $provider_id ); ?> fa-lg"></i>&nbsp;&nbsp
                </span>
            </a>
        <?php
    }
    
    add_filter( 'wsl_render_auth_widget_alter_provider_icon_markup', 'wsl_use_fontawesome_icons', 10, 3 );

    but in this code Vkontakte (or vk.com) button didn’t show.
    How can I fix this?

    Plugin Author Miled

    (@miled)

    something like this:

    function wsl_use_fontawesome_icons( $provider_id, $provider_name, $authenticate_url )
    {
        $btn_class = ( $provider_id == 'Vkontakte' ) ? 'vk' : $provider_id;
        ?>
            <a
               rel           = "nofollow"
               href          = "<?php echo $authenticate_url; ?>"
               data-provider = "<?php echo $provider_id ?>"
               class         = "wp-social-login-provider wp-social-login-provider-<?php echo strtolower( $provider_id ); ?>"
             >
                <span>
                    <i class="fa fa-<?php echo strtolower( $btn_class ); ?> fa-lg"></i>?&nbsp
                </span>
            </a>
        <?php
    }
    Thread Starter buyavets

    (@buyavets)

    it works! Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP Social Login Better Font Awesome vkontakte icon is not shown’ is closed to new replies.