We are glad to welcome you to our Community Support Forums!
These forums are your way of communicating with the community of people developing and using tools provided by the OneAll platform.
The forums are run by the community and moderated by the OneAll team during office hours. Please stick to technical issues - and remember, no confidential information - these are public forums!

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

  • Hi Andrew,

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

    Regards,
Sign in with your OneAll account to take part in the discussion.