-
Notifications
You must be signed in to change notification settings - Fork 32
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
Implement global header/footer design across w.org network #38
Comments
Now that WordPress/wporg-news-2021#6 is done, it'd be a good time to start thinking about this. It's a big chunk of work that's essential to the launch. @dd32, do you have any thoughts on any of it? Are there any parts you'd like to do? |
I noted this is mentioned in https://github.com/WordPress/wporg-mu-plugins/blob/trunk/mu-plugins/blocks/global-header-footer/README.md too. It's not possible to iframe it and have a expanding menu that floats over existing content, without using some complicated JS to move the menu from within the iframe to the parent document. Trac doesn't curl it as there's some complications in the way that Trac Genshi templates work, It's not a straight HTML include but rather a dynamic template language. We could build an endpoint that output the new header in a format that can be included via a curl, that generated something like wporg-head.html & wporg-header.php though. It might be possible to simply have a JS embed though? So that the "header" is always built on the site via an inline
This already exists, kind of, for rosetta localised sub-sites. https://de.wordpress.org/?fetch-custom-header=%2Fplugins%2F the Menu is generated on the "main localised site" and that menu (and therefor, all menu items) are then output on the sub-site. There's memcache involved in all that of course. The menu on Rosetta can't be built on a not-main/root-site as Nav Menu's (as used on Rosetta, rather than hard-coded links) can't be generated with a simple |
Hi folks, chiming in to note that Openverse would also ideally use w.org/header.php and w.org/footer.php once they are updated. Inlined styles and scripts for these parts would be ideal for our use case. I'll keep an eye on things here and if details about our implementation would be useful just let me know. |
…dPress.org homepage. See WordPress/wporg-mu-plugins#42, WordPress/wporg-mu-plugins#38 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11415 74240141-8908-4e6f-9713-ba540dce6ec7
See WordPress/wporg-mu-plugins#38 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11427 74240141-8908-4e6f-9713-ba540dce6ec7
These items are unchecked and don't have corresponding issues:
Are they still relevant? Are they needed for launch? |
I just checked off the last two after closing #46. The first was an aspirational thing, but I don't think it's worth it right now. |
thank you for completely breaking the UX for forums and translation system. Also on rosetta sites locale managers are unable to define custom menus, can only add extra items after global menus, |
I have been translating Gutenberg into Russian for several years. Now you have killed the interface. I quit using this service and being active until you remove the huge menu and return the styling of the service interface. |
Thanks for the feedback, and sorry this has caused issues for Translate! Do you mind posting some screenshots demonstrating the problems you're seeing? It seems that some of them are specific to particular screens and/or window sizes, and the more info we have the better we can fix it. |
When viewing a list of translation strings like https://translate.wordpress.org/projects/wp/dev/dsb/default/?page=4, each translation has its own sticky header and menu: These can be obscured by the sticky header, which is particularly frustrating on short (namely small laptop and ultrabook) displays: |
I created #124 for the sticky element bug. Closing this since the work that it tracked is done. |
Some other Translate bugs were fixed in https://meta.trac.wordpress.org/ticket/6037 and https://meta.trac.wordpress.org/ticket/6046 |
See WordPress/wporg-mu-plugins#38 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11427 74240141-8908-4e6f-9713-ba540dce6ec7
After it's implemented for News in WordPress/wporg-news-2021#6, we'll need to roll the new header/footer out to all sites in the network. That can/should probably happen before News launches.
There are a lot of potential improvements we can make under the hood, to make the header easier to maintain across the various systems that implement it. It'd be nice to do at least some of that here, but we'll have to weigh the time/benefit tradeoffs for each one.
Pain Points
w.org/header.php
instead of having a dynamic file. It's easier to fork it, but those quickly become out of date.wp4.css
is massive, and changes have unintended consequencespub/wporg/footer.php
for localizationPotential solutions
We could:
meta.svn
wp4.css
and move them to some shareable component.curl https://wordpress.org/header.php
to import it.<iframe>
it, or curl-and-cache it like the Codex? Could the Codex<iframe>
it for simplicity? probably because submenus/modals can't expand beyond fixed height of the iframeRefine existing code
active-menu-item
dynamically #35 - highheader.php
features etc #42 - mediumfooter.php
- mediumbb_head()
, footer etc like is done for GlotPress?Add new features
wp_head()
in classic themes, but not FSE themes/mobile/index.php
content to WP page and delete #47/hosting/index.php
content to WP page and delete #48/search/index.php
content to WP page and deleteLaunch day
Tracked in #100
Post-launch iteration:
Tracked in #55
The text was updated successfully, but these errors were encountered: