- This topic has 24 replies, 3 voices, and was last updated 3 years, 8 months ago by
Ying.
-
AuthorPosts
-
October 3, 2022 at 3:50 am #2361324
Jatin
Thanks Fernando. When you saw all views what do you mean. If you open my site on Mobile, you can see post-meta items are not displaying properly. I just want to display it properly so that end user will be able to clearly see it without clutter.
I have removed the CSS code now and cleared cache. Thanks for the advise.
October 3, 2022 at 11:28 am #2361862Ying
StaffCustomer SupportTry adding this CSS:
.single-post header.entry-header .entry-meta { flex-wrap: wrap; }October 4, 2022 at 4:13 am #2362504Jatin
Thanks, There is no separator between the authorname and Comments. Is it possible to add a separator ?
October 4, 2022 at 10:45 am #2363106Ying
StaffCustomer SupportTry this:
.single-post .entry-meta > *:not(.comments-link):after { content: "|"; padding-left: 10px; padding-right: 10px; }You can change the
|to other operators you prefer.October 4, 2022 at 12:55 pm #2363240Jatin
Thank you Ying. One last thing. As its now working on Single posts. How can I apply the same style and meta on Archive Page as well ?
October 4, 2022 at 1:43 pm #2363280Ying
StaffCustomer SupportJust remove the
.single-postfrom the code.October 4, 2022 at 2:07 pm #2363293Jatin
Thanks, I updated the code to below and removed .single-post from CSS. Its working fine on most of the posts but some of the posts are not showing comment info in meta. Nothing is displaying after separator |
Am i missing anything ? Screenshot and Link in the private box.
add_filter( 'generate_header_entry_meta_items', function() { return array( 'date', 'author', 'comments-link', ); } ); add_action( 'wp', function() { { add_filter( 'generate_show_comments', '__return_true' ); } } ); add_filter( 'generate_footer_entry_meta_items', function( $items ) { return array_diff( $items, array( 'comments-link' ) ); } );Also My Archive Page Category Info shows the separator as well ? I did not add a separator on archive page in after category [Please refer to the sceenshot]
October 4, 2022 at 2:20 pm #2363306Ying
StaffCustomer SupportChange the CSS to:
.entry-header .entry-meta > *:not(:last-child):after { content: "|"; padding-left: 10px; padding-right: 10px; }The post you attached closed the comment function, so I would assume it would not show.
October 5, 2022 at 1:01 am #2363718Jatin
Thank you Ying.
October 10, 2022 at 11:09 am #2369094Ying
StaffCustomer SupportNo Problem, glad to help 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.