You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change advertisement position in new pydata theme #1358
Is your feature request related to a problem? Please describe.
With the new pydata theme implemented in #1173, the ads from readthedocs have become much more prominent. E.g., the main pvlib landing page in the latest version is dominated by the advertisement (see screenshot from a phone below):
Describe the solution you'd like
While there are good reasons for having the advertisement, I do not think that it should be the most dominant feature that greets users.
One solution would be to move the advertisement to the bottom of the page. Though I have not been able to determine if this is possible with the theme. Perhaps @choldgraf could add a comment on this?
I noticed that other sites using the template also feature the ad at the top on the mobile version, e.g., pydata theme, binder, and jupyterhub.
Additional context
I fully support changing to the new theme btw.
Build the docs in the ci, post to a github.io repository.
Live with the ads
I prefer 4, 1, 3, 2.
Would be nice if PVPMC could pay for rtd ad free hosting and, while we're at it, a domain name too. While the combined price of that is roughly $100 per year, I'm guessing the overhead in making that happen is on the order of $1000 per year, unfortunately. Maybe there's a more efficient path through numfocus or github sponsors.
I think that the right long-term solution is to make the sidebar collapsible when you're on mobile, rather than having it displayed at the top of the page. Agreed it is sub-optimal
Another option would be to move the advertisement to the right-hand side. This only would require a minor change of the sphinx settings and avoids the advertisement being placed at the top on smartphones.
well we probably don't want the advertisement in the footer on a full width, since it'd generally be hidden, but I think the "hidden sidebar" that I mentioned above is a reasonable compromise
Activity
wholmgren commentedon Dec 16, 2021
Of these options:
I prefer 4, 1, 3, 2.
Would be nice if PVPMC could pay for rtd ad free hosting and, while we're at it, a domain name too. While the combined price of that is roughly $100 per year, I'm guessing the overhead in making that happen is on the order of $1000 per year, unfortunately. Maybe there's a more efficient path through numfocus or github sponsors.
[-]Change add position in new pydata theme[/-][+]Change advertisement position in new pydata theme[/+]choldgraf commentedon Dec 16, 2021
I think that the right long-term solution is to make the sidebar collapsible when you're on mobile, rather than having it displayed at the top of the page. Agreed it is sub-optimal
AdamRJensen commentedon Dec 16, 2021
Another option would be to move the advertisement to the right-hand side. This only would require a minor change of the sphinx settings and avoids the advertisement being placed at the top on smartphones.
In general the left-hand side of a webpage tends to get the most attention, so either way, I would favor moving the advertisement to the right.
choldgraf commentedon Dec 16, 2021
ah I just realized that you could do this already with theme configuration, by following these instructions:
https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/sections.html#the-left-sidebar
You should try putting the
sidebar-ethical-adssnippet in the footer:https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/sections.html#the-footer
does that work?
AdamRJensen commentedon Dec 17, 2021
@choldgraf I successfully moved the ad to the footer in #1359 and it worked like a charm!
I really think it's a win-win, it moves the advertisement to the bottom on smartphones and makes it less dominating in the browser version.
Would it make sense to make this the default for the theme?
choldgraf commentedon Dec 17, 2021
well we probably don't want the advertisement in the footer on a full width, since it'd generally be hidden, but I think the "hidden sidebar" that I mentioned above is a reasonable compromise