hide Viewer Badge is it possible?

Is it possible to hide the viewer badge?

Hey there, thanks for your question! :blush: The “viewer badge” (often the GitHub icon or Streamlit branding in the top right or bottom of the app) can be hidden using custom CSS. There isn’t a built-in Streamlit config option specifically for hiding the viewer badge, but you can inject CSS to hide it.

For example, you can use the following code in your app:

import streamlit as st

st.markdown("""
    <style>
    .css-1jc7ptx, .e1ewe7hr3, .viewerBadge_container__1QSob,
    .styles_viewerBadge__1yB5_, .viewerBadge_link__1S137,
    .viewerBadge_text__1JaDK {
        display: none;
    }
    </style>
    """, unsafe_allow_html=True)

This approach is widely used in the community and discussed in the Streamlit forum and here. If you want to hide more branding or UI elements, you can add more CSS selectors as needed.

Sources: