Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add html line to footer #1284

Closed
Tracked by #73
michaelweinold opened this issue Apr 5, 2023 · 3 comments
Closed
Tracked by #73

Add html line to footer #1284

michaelweinold opened this issue Apr 5, 2023 · 3 comments

Comments

@michaelweinold
Copy link
Contributor

I would like to add an html string of this sort:

<p>Sample footer text <a href='https://example.com'></p>

between the "footer_start": ["copyright"] and the footer_end (which is not explicitly defined in the config, but displays the "Built with the PyData Sphinx Theme 0.13.3.".

I tried to add this to a footer.html file that I put into a _templates directory, as described here - that does not seem to work.

Compare also the discussion:

@12rambau
Copy link
Collaborator

12rambau commented Apr 5, 2023

As yous saw, there are already 2 subsection in the footer: footer_start and footer_end. they are described here in our documetnation: https://pydata-sphinx-theme.readthedocs.io/en/stable/user_guide/layout.html#footer

I agree footer_end is missing I'll do a quick PR.

if you want to know it's content it sis set here:

so what happend if you set in templates a footer_test.html` with the following content:

<p>Sample footer text <a href='https://example.com'></p>

and then add it in the footer_end link this:

html_theme_options = {
  # ...
  "footer_end": ["theme-version", "footer_test"],
  # ...
}

12rambau added a commit to 12rambau/pydata-sphinx-theme that referenced this issue Apr 5, 2023
@michaelweinold
Copy link
Contributor Author

and then add it in the footer_end link this

...now it works - perhaps it was an issue with the templates_path variable. Many thanks!

@12rambau
Copy link
Collaborator

12rambau commented Apr 5, 2023

you're welcome !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants