Favicon light and dark in Page

This tool allows you to dynamically change your website's favicon based on user preferences or specific conditions. Support both light and dark mode favicons that automatically switch based on the user's system preferences. Perfect for branding consistency, seasonal changes, or providing visual feedback. The favicon updates instantly without page reload, enhancing your site's professional appearance and user experience.
Webflow only

Share this feature

Cover of the Favicon light and dark tool by BeBranded, designed for Webflow

Implement it easier

  1. 1

    Add the script

    Add this script in page settings > Custom code > Before the closing </body> tag

    <!-- BeBranded Contents -->
    <script async src="https://cdn.jsdelivr.net/npm/@bebranded/bb-contents@latest/bb-contents.js"></script>
  2. 2

    Simple favicon

    Simple favicon

    Required

    Add the bb-favicon attribute to any element on the page to change the favicon.

    Namebb-favicon
    Valuehttps://www.mysite.com/favicon.ico
  3. 3

    Dark/light mode

    Adaptive favicon

    Optional

    Use bb-favicon for light mode and bb-favicon-dark for dark mode. The favicon will automatically change according to user preferences.

    Namebb-favicon-dark
    Valuehttps://www.mysite.com/favicon-dark.ico

Add the script

Add this script in page settings > Custom code > Before the closing </body> tag

Simple favicon

Add the bb-favicon attribute to any element on the page to change the favicon.

bb-favicon = "https://www.mysite.com/favicon.ico"

The URL must point to a valid image (ICO, PNG, SVG). The favicon will be changed as soon as the page loads.

Still need help?

Get Support