Hide titles link

Good day.

First of all, I want to thank all for the magnificent tool that Streamlit is.

I was wondering if there is a way to hide the little clip symbol that appears next to the titles.
The reason for this is that when someone clicks its, it changes the http direction of the app

Example:
-before clicking:
https://share.streamlit.io/tylerjrichards/streamlit_goodreads_app/books.py
-after clicking:
https://share.streamlit.io/tylerjrichards/streamlit_goodreads_app/books.py#analyzing-your-goodreads-reading-habits

I need to turn this off because I have styled my app with lot of css code and this feature is interfering with the global behavior.

Thanks in advance for you help!

Unfortunately, I don’t think we accounted for that behavior. By default, if you don’t provide a value for the anchor parameter, then it looks like the code chooses for you.

Could you open a GitHub issue to highlight your use case? You could probably also hide that element using CSS, since you’re already hacking on it anyway.

Best,
Randy

Hi Randy,

thank you very much for your prompt response.

Indeed I could achieve it with CSS. If anyone wants to hide that link button you just need to include the following in your script:

st.markdown("""
.css-m70y {display:none}
“”", unsafe_allow_html=True)

1 Like