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,
  • Thanks for sharing this example. Custom CSS integration can be tricky, especially when a theme uses a framework like Roots Sage to manage asset paths. Checking whether the generated stylesheet URL is correct and accessible is a good first step when the social login styles are not updating. Audio files also have different format requirements, and understanding WAV vs MP3 vs FLAC can help when choosing the right format for sound quality and file size. Helpful discussion!

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.