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

Mu-plugins: Add margin to fixed navigation on sites with the latest event banner #1100

Open
wants to merge 1 commit into
base: production
Choose a base branch
from

Conversation

2ndkauboy
Copy link
Contributor

The solution to the linked issue is not really easy, since different WordCamp themes use very different markup and CSS to make the navigation fixed. There is also no way to change the reference point for a fixed positioned element.

This PR will introduce some JavaScript that searches for any <nav> item with position: fixed and adds a CSS class, that is than used in the existing CSS selector pushing down the navigation as well.

Fixes #1098

Screenshots

This is how the pages look like with this PR applied (compared to #1098):

image

image

@pkevan
Copy link
Contributor

pkevan commented Feb 8, 2024

It might be better to assume that some sites have a fixed top nav, and just place this banner somewhere below that - I do wonder about the effectiveness of such an element though, and perhaps we'd be best with something more obvious?

@renintw renintw force-pushed the fix/1098-latest-site-fixed-navivagtion-fix branch from 41d4d90 to 847b4f0 Compare May 20, 2024 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

Navigation hidden under "latest site" banner
4 participants