Currently <nav> element displays flat list (actually, not even <ul>, but just <a>s) of pinned posts. For blogs with longer lists this might not appear nice on mobile browsers.
Shall we have pinned posts as unordered list and make it responsive?
Now I know many responsive implementations require JavaScript, but right here I’ve found one very nice example of pure CSS implementation.
Any ideas?
It would also be nice to have a chance to order pinned posts, but for that we would need drag-and-drop interface in blog settings (will require JavaScript) and ordering enumerator in database for post
Great suggestion @gytisrepecka! I wonder if adding a hamburger menu would help — something minimal enough for people to know there’s a menu and to hide multiple pinned posts.
Yes, hamburger menu would definitely be great! But regular menu should turn to hamburger only when screen width is smaller than expected (usual) menu width.
Also in example I referenced hamburger button is added as extra object in menu HTML code:
Has anyone got this working? I’ve dabbled with the list of pinned posts which look great on a laptop, but disappear off screen on my phone. Without a responsive list, I’m currently considering a Menu pinned post as a stop-gap solution … but will then have to hide the system menu in the top left hand corner.
Do you mind sharing your site? There are a couple aspects of this – links should normally wrap fine, though links can get broken up across lines, which can be confusing. But some custom themes might break that. Either way, there should be a way to fix this at least with custom CSS for now.
It’s possible to put the pinned links down the left. That’s what I do on Coffee 22 — LMJargon - I don’t have it perfect, but it got close enough that I quit fiddling with it.
Feel free to ask about what I did, though it’s been months, so I don’t remember any details at the moment.
Regarding the links disappearing on a phone, ISTR there’s a minimum screen width in the default css, and a screen narrower than that loses the nav entirely. I remember fiddling with that now…
You could use a show/hide menu, like I’ve done on my blog’s home view. Feel free to grab that code if it works for you.
Also note that it doesn’t require adding a new HTML element, as @gytisrepecka mentioned with the solution he found. You can use CSS to inject a :before pseudo-element that’s clickable.