Use a custom CSS file with Social Login

I'm attempting to use the provided code to switch the stylesheet but it doesn't seem to be working:
function oa_social_login_set_custom_css ($css_theme_uri)
{
$css_theme_uri = Roots\Sage\Assets\asset_path('styles/main.css');
return $css_theme_uri;
}
add_filter('oa_social_login_default_css', __NAMESPACE__ . '\\oa_social_login_set_custom_css');
add_filter('oa_social_login_widget_css', __NAMESPACE__ . '\\oa_social_login_set_custom_css');
add_filter('oa_social_login_link_css', __NAMESPACE__ . '\\oa_social_login_set_custom_css');
Any idea why this is not switching the stylesheet?

Best Answer

Answers

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Hi Andrew,

    could you please post a link to the page where I can see the icons that you are trying to customize?

    Regards,

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.