Reactive Meta Tags

I am trying to add meta tags onto my website based on the page it is on and contents on the page (can be determined using a callback, for example).

However, I’m not sure how to do this as if I add meta tags in app.py inapp = dash.Dash, they seem to be fixed and cannot be reactive/change based on the page itself.

Any help would be appreciated!

Check out the index functions in Adding CSS & JS and Overriding the Page-Load Template | Dash for Python Documentation | Plotly

This will also be easier in our forthcoming pages feature: πŸ“£ Introducing Dash `/pages` - A Dash 2.x Feature Preview

Welcome to Dash :slight_smile:

1 Like

Thanks! Is there a way to just overide/create an index function for the head of the HTML but not the body?

there isn’t at the moment