- This topic has 41 replies, 3 voices, and was last updated 4 years, 6 months ago by Tom.
-
AuthorPosts
-
September 14, 2019 at 4:42 am #1009223An Nguyen
Hi David,
Thanks David, it’s perfect. I can adjust CSS a bit to fix with my current layout.
Could you help me to add a big fullstop sign to separate each part of metadata please? I have no idea to do this.
An.
September 14, 2019 at 6:02 pm #1009624TomLead DeveloperLead DeveloperHi there,
I’m not too sure what you mean – do you have any examples you can show us?
September 14, 2019 at 6:05 pm #1009626An NguyenHi Tom,
I can handle it. Thanks Tom & David!
September 15, 2019 at 10:03 am #1010071TomLead DeveloperLead DeveloperNo problem ๐
September 27, 2019 at 6:01 am #1020351An NguyenHi Tom & David,
During test process, I found an issue in mobile mode. The category-tags displays wrong in mobile mode, but it’s perfect on desktop. I don’t know why so I need your help.
I used this code below to display cat-tags below image. In mobile mode, if the title is long as 2 lines following with title is long as 1 line. The error happens and the tags will overlap the bottom-border of image a bit. Normally, it below it a bit and above title 10px.
/* Postiion cat links below image */ .generate-columns-container .inside-article { position: relative; } .generate-columns-container footer.entry-meta { position: absolute; top: 55%; bottom: 45%; left: -20px; margin-top: 0; } /* Adjust for mobile padding */ @media (max-width: 768px) { .generate-columns-container .entry-title { margin: 30px -20px 30px; } .generate-columns-container .entry-meta { padding: 10px 10px 0; margin: 0 0px 10px; } .blog h2.entry-title, .archive h2.entry-title { font-size: 21px; } }
September 27, 2019 at 1:55 pm #1020847DavidStaffCustomer SupportLittle confused – the original code we provided was to place the cat tags over the image – roughly top right – is this no longer required?
September 27, 2019 at 3:35 pm #1020925An NguyenHi David,
I adjusted your code above a bit, I used top, left – float attribute to move cat-tag to under image only.
.generate-columns-container footer.entry-meta { position: absolute; top: 55%; left: -20px; margin-top: 0; }
Thanks David.
September 28, 2019 at 9:34 am #1021359TomLead DeveloperLead DeveloperThere isn’t really a way to fix that using absolute positioning.
What you could try is removing that CSS:
.generate-columns-container footer.entry-meta { position: absolute; top: 55%; left: -20px; margin-top: 0; }
Then physically moving the categories below the featured image:
add_action( 'wp', function() { if ( ! is_singular() ) { remove_action( 'generate_after_entry_content', 'generate_footer_meta' ); add_action( 'generate_before_content', 'generate_footer_meta', 15 ); } } );
September 28, 2019 at 9:41 am #1021363An NguyenHi Tom,
This code was added, but cat-tags move below the title. I expected that they move below feature-image and above title.
Thanks
September 28, 2019 at 9:45 am #1021366TomLead DeveloperLead DeveloperSorry about that, I just updated the function above.
September 28, 2019 at 11:21 am #1021398An NguyenHi Tom,
They display perfectly. Now, I only adjust them by css a bit.
It’s a perfect solution. I really like it.
Thanks.
September 28, 2019 at 7:09 pm #1021553TomLead DeveloperLead DeveloperYou’re welcome ๐
-
AuthorPosts
- You must be logged in to reply to this topic.