Page Icon

Hello… I had the exact same issue as those in this thread. I tried using the above approach, but is this possible if your HOME page is your main.py page? In other words, how can you execute the streamlit run 1[EMOJI]_Home.py?

1 Like

Hi,
When I run my app locally the page icon (waving hand) displays correctly, but in my deployed app the globe icon is displayed. I have tried both text ‘:\wave:’ and :wave: (sorry i don’t know how to escape emoji coding there is not actually a backslash there)

PAGE_TITLE = “My app | Joe Bloggs”
PAGE_ICON = “:wave:

st.set_page_config(page_title=PAGE_TITLE, page_icon=PAGE_ICON)

You could use a wildcard like

streamlit run *_Home.py

Assuming that’s the only file in there that ends with _Home.py

is that in the Community Cloud or somewhere else?

Community cloud

It seems to work with the example I have at hand…

image

1 Like

I have tried this, have removed the PAGE_ICON variable I was using, and just directly assigned in set_page_config as below.

st.set_page_config(page_title= “My app | Joe bloggs”, page_icon= “:wave:”)

page title is working fine whether I do it like this or calling a PAGE_TITLE variable that I have assigned, but cannot get icon to to work. This is what displays in edge and chrome

image
image

Does the stpyvista example app show the custom icon for you?

Hi yes stpvista icon is displayed the same as @edsaac screenshot for me

Then the issue is specific to your code / deployment.

Thank you, can you advise where error is likely/where to look?

I forked from GitHub - Sven-Bo/digital-resume-template-streamlit
and this worked locally for displaying the icon. I can’t actually test if the deployed version of this source ( https://resume.pythonandvba.com/ ) is working as it is offline. In requirements.txt the streamlit version was 1.12.0, but I have updated to 1.31.0 and no change.

I have deployed another app with just the lines below and the icon works fine, so struggling to see where the issue is as have used the same syntax in the app that is not working

import streamlit as st
st.set_page_config(page_title= “sausage”, page_icon=“:wave:”)

https://sausage.streamlit.app/ (correct icon)
https://timscv.streamlit.app/ (no icon displays)

You may have to reboot or redeploy the app after making changes to requirements.txt.