- This topic has 34 replies, 3 voices, and was last updated 4 years, 9 months ago by Tom.
-
AuthorPosts
-
June 23, 2019 at 12:32 am #938346Morgan
Following on from previous.
ARCHIVES
1. Masonry randomly breaks 2 cols to 1
Strange – suddenly breaks and shows only 1 left aligned column, turn off Masonry and layout returns to 2 cols, then on refresh *sometimes* breaks again. At the moment it’s broke, turn off masonry and 2 cols return. UPDATE: Oh wait, masonry working again.2. At random screen sizes, title has no padding-right
Attempts to add any padding hasn’t worked.
UPDATE: I think I’ve sorted most of it, for nearly all Archive screen sizes (though Single Posts still busted, see 4), except for this bg gap which *only shows below 768 breakpoint*
Adding bg colour to either .entry-summary or <p> doesn’t work.3. Weird big titles *just above* breakpoint:
SINGLE POSTS
4. Layout below is as I want (showing below 1024, but breaks above).5. Want metadata alongside the date (for both Archive and Singles).
I.e.
June 21, 2019, By: m0rg5, Categories: Fun, Tags: blaa, blaa6. Can I get the Posts Sidebar at top right, as as per Archives?
June 23, 2019 at 6:36 am #938525DavidStaffCustomer SupportHi there,
may be better to make a clean start as the current method you’re trying is going to be ‘tricky’ to achieve the result.
If you want to put the Blog and Post customizations back to default ( aside of typography and colors ) and set it so the Featured images are Above Title for archives and posts i can take a look at solution to achieve what you need. Let me know.
June 23, 2019 at 7:04 am #938647MorganCan do, but to clarify – this a continuation of thread – Tom asked to create new for clarity. The only (non customizer) changes is the CSS above that Tom started to which I’ve made minimal, obvious, changes (mainly to illustrate what I want) .
Obviously it’s not there yet, but it’s pretty close.Considering that, could u review and let me know?
June 23, 2019 at 8:03 am #938702TomLead DeveloperLead DeveloperDavid is actually much better at CSS stuff like this – he might have a better method in mind ๐
June 23, 2019 at 9:18 am #938756DavidStaffCustomer Support( that’s awfully flattering coming from Tom ) – apologies i paid no attention to “following on from previous”
So for the single post my approach would be this for the single post. The set-up is the standard blog settings, for the featured image on single i have put the image above title and removed the padding around image.
Then this CSS:
@media (min-width: 420px) { .single .inside-article { display: grid; grid-template-rows: auto auto auto auto; } .single .inside-article>* { grid-column: 1; } .single .featured-image { grid-row: 1 / 3; margin-bottom: 0 !important; } .single .entry-header { grid-row: 1 / 3; align-self: end; padding: 40px; background-color: #fff; width: 60%; margin-left: -40px } }
The result is this:
https://mic.assemblewp.com/my-latest-post/
It only applies to desktop and tablet as there isn’t a lot of image left visible on smaller devices.
June 23, 2019 at 3:35 pm #938992MorganVery cool,
I tweaked@media (min-width: 480px) . . . . . . . .single .entry-header { grid-row: 1 / 3; align-self: end; padding: 40px 40px 0px; background-color: #fff; width: 60%; margin-left: -40px;
Weird behaviour, at different sizing (see below) that I’m thinking could easily be fixed by having:
– 1 col around 1000px
– Change .single .entry-header Width 60% to 80% at smaller sizes (before min-width 480px)Also this is showing Single Post as i’d like, but breaking elsewhere, don’t know what it should be:
/* Page Padding */ .page-content, .entry-content, .entry-summary { padding-top: 30px; padding-right: 5%; }
June 24, 2019 at 3:36 am #939291DavidStaffCustomer SupportThe CSS should only apply to the Single Post but to be sure you can change the
.single
selector to.single-post
To stack the sidebar and content at 1000px you can do this:
@media (max-width: 1000px) { .single-post #primary, .single-post #right-sidebar { float: none; width: 100%; } }
June 25, 2019 at 7:12 am #940678MorganThanks.
/* Page Padding */ .single-post #primary { padding-top: 30px; padding: 0 1% 0 2%; }
Is working.
June 25, 2019 at 8:41 am #940779DavidStaffCustomer SupportSorry i missed that part in part ๐ Glad to hear you got it resolved.
June 25, 2019 at 3:31 pm #941115MorganMade a lot of progress @David , and couldn’t have done it without u, but there’s more where that come from!
Onto the unresolved stuff:
BLOG
1. Get Metadata alongside the date (for both Archive and Singles)?
I.e. June 21, 2019, By: m0rg5, Categories: Fun, Tags: blaa, blaa2. Masonry still randomly breaking 2 cols into 1, now *not working again*. Seems a bug.
Can I get a fix pls?MOBILE
3. Only just noticed that Mobile on-scroll sticky *does not* swap logo, can I actually keep the logo swap on Mob as per desktop?
While on that subject – I got the effect I wanted on scroll-down (asked on prior post) by creating an animated gif – hit refresh, scroll down. Right now *it’s not* a looping gif, so it doesn’t work on returning to top and scrolling down again (already loaded). Is it possible to make the gif reload (call cached file?) on every scroll-down/logo swap so it shows animation?4. EDIT: I’m trying to customise the various breakpoints that’s causing things like below, only a few pixels apart (from generate-style-inline-css , it seems a mess! Any tips?):
5. To top button VERY slow scroll up on mobile.
6. Advise re CSS to style the Mobile Menu (ul#menu-menu, not working), no option to just use overlay, as per off-canvas? (seems an easy add!)
June 26, 2019 at 5:03 am #941590DavidStaffCustomer Support1. So we can use the new filter:
https://docs.generatepress.com/article/generate_header_entry_meta_items/
So your filter would look like:
add_filter( 'generate_header_entry_meta_items', function() { return array( 'author', 'date', 'categories', 'tags', ); } );
2. Masonry – not able to replicate the issue, the problem may be dependent on screens size and using the negative margins on the entry header that is causing the problem.
3. You would need to disable the Mobile Header to keep the sticky logo on mobile. Not sure about the looping Gif not something i have come across but would need JS to do that.
4. The mobile font size is working – it drops to 25px on mobile devices. To add additional breakpoints then you would need to add some CSS using media queries and set your various breakpoints:
https://docs.generatepress.com/article/responsive-display/
Or you can use some fluid typography CSS like this:
h2.entry-title { font-size: calc(25px + (36 - 25)*(100vw - 400px)/(1600 - 400)) !important; }
This will create a fluid scale between 25px at the smallest screen size and max out at to 36px when the screen is at 1600px width.
5. You can change the back to top speed using the filter provided here:
https://docs.generatepress.com/article/generate_back_to_top_scroll_speed/
6. Not sure what you mean? So you want the Mobile Menu to cover the entire screen?
June 26, 2019 at 5:13 am #941603MorganThank you,
Quick replies first.6. Yes, was thinking it’s already there/easy (given off-canvas has it, and I wont use for off-canvas).
June 26, 2019 at 5:17 am #941606Morgan5. To-top is only (very) slow *on mobile*.
2. Doesn’t work on any screen size, and the clincher is it sometimes works *with same css*, no change suddenly works. Other times doesn’t.
June 26, 2019 at 5:32 am #941625DavidStaffCustomer Support2. Its hard to diagnose the issue without being able to replicate the problem. The adjustment to the article layout could be the problem, and therefore masonry may not be a good option.
5. Didn’t originally notice any difference when checking out the site – did you add the filter as it now rockets to the top on desktop and mobile.
6. Hmmm… could try some CSS like this – not sure would need testing:
.mobile-menu-open #mobile-header.toggled .main-nav>ul { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
June 26, 2019 at 5:44 am #941647MorganOk, onto all this for as many hours as it takes, will keep you posted!
-
AuthorPosts
- You must be logged in to reply to this topic.