- This topic has 18 replies, 3 voices, and was last updated 1 year, 4 months ago by
Elvin.
-
AuthorPosts
-
December 28, 2020 at 8:50 am #1597063
Sourabh
Hi,
Seems the meta title of my post moving with my post Title, However, I want to set the Featured image just below the title and wants meta to display below the featured image, (However Meta moves with Title) how to make it ???
December 28, 2020 at 6:21 pm #1597576Elvin
StaffCustomer SupportHi,
To clarify: You want the Featured image to be inbetween the Post Title and the entry meta?
If so, set the featured image’s Location to “Below title” on Appearance > Customize > Layout > Blog and then add this PHP snippet:
add_action( 'wp', function() { remove_action( 'generate_after_entry_title', 'generate_post_meta' ); add_action( 'generate_after_entry_header', 'generate_post_meta', 15 ); } );
The order of things should look something like this:
https://share.getcloudapp.com/yAuZ9XzjA wise man once said:
"Have you cleared your cache?"December 29, 2020 at 12:13 am #1597764Sourabh
It’s breaking my Meta Style (Lines, styles etc), So how to manage it ???
Refer private section for sample –
December 29, 2020 at 12:18 am #1597766Elvin
StaffCustomer SupportCan you link us to the site/page where this is issue is occurring? So we could check how it is laid out.
You can provide the site details on the private information text field. Thank you.
A wise man once said:
"Have you cleared your cache?"January 6, 2021 at 11:07 am #1608407Sourabh
Okay, Find the same..
at present, I have deleted the code from function.php because it was destroying the formatting of my meta…
so you can add code again for checking purposes, you are allowed to do it…
Regds:
January 6, 2021 at 5:42 pm #1608740Elvin
StaffCustomer Supportso you can add code again for checking purposes, you are allowed to do it…
I’m afraid it’s against our policy to directly apply any changes to the user’s site.
at present, I have deleted the code from function.php because it was destroying the formatting of my meta…
We can fix the styling you applied to be applicable to the changes made by the PHP filter.
That said, can you re-apply the PHP snippet keep it temporarily until we take a second look? So we could check for the appropriate selectors to use for styling it.
Let us know.
A wise man once said:
"Have you cleared your cache?"January 7, 2021 at 2:51 am #1609094Sourabh
Fine, its done..check now
However, also refer to before and after snapshot in the P-section…
Regds:
January 7, 2021 at 4:31 am #1609234Elvin
StaffCustomer SupportThank you.
Add this CSS to revert the styling to the preferred layout.
.inside-article .entry-meta { display: flex; border-top: 1px solid black; border-bottom: 1px solid black; padding: 10px 0; } .inside-article .entry-meta > *:first-child { margin-left: auto; } .inside-article .entry-meta > *:last-child { border: unset; margin-right: auto; } .inside-article .entry-meta > * { border-right: 2px solid #ccc; padding: 0 10px; } .inside-article footer.entry-meta { border: unset; }
A wise man once said:
"Have you cleared your cache?"January 7, 2021 at 6:12 am #1609380Sourabh
Lol, it’s reflecting even on the home page now???
I just needed it for post only ??
January 7, 2021 at 7:21 am #1609653David
StaffCustomer SupportFor the single post only, in Elvins CSS replace each instance of:
.inside-article
with.single-post .inside-article
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 7, 2021 at 7:27 am #1609658Sourabh
did it but could not help, its just removed border of meta nothing else..
January 7, 2021 at 8:22 am #1609755David
StaffCustomer SupportYour CSS should look like this:
.single-post .inside-article .entry-meta { display: flex; border-top: 1px solid black; border-bottom: 1px solid black; padding: 10px 0; } .single-post .inside-article .entry-meta > *:first-child { margin-left: auto; } .single-post .inside-article .entry-meta > *:last-child { border: unset; margin-right: auto; } .single-post .inside-article .entry-meta > * { border-right: 2px solid #ccc; padding: 0 10px; } .single-post .inside-article footer.entry-meta { border: unset; }
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 7, 2021 at 9:22 am #1609849Sourabh
Just to detach a meta from the title, so much has to do ??
dont we have any simple process David ??
January 7, 2021 at 9:24 am #1609850Sourabh
after applying css, the problem is still the same..
January 7, 2021 at 4:08 pm #1610188Elvin
StaffCustomer SupportLet’s we clarify a few things:
What pages do you want this applied?
The modification on the CSS David suggested only applies to single post pages.
And I’ve checked the site and it’s actually applied. Here’s what I see on my end:
https://share.getcloudapp.com/JruqQDeZNow the issue seems to be that you want this applied to archive pages to BUT NOT static pages?
If that’s the case then you can re-modify the CSS David provided into this:
body:not(.page) .inside-article .entry-meta { display: flex; border-top: 1px solid black; border-bottom: 1px solid black; padding: 10px 0; } body:not(.page) .inside-article .entry-meta > *:first-child { margin-left: auto; } body:not(.page) .inside-article .entry-meta > *:last-child { border: unset; margin-right: auto; } body:not(.page) .inside-article .entry-meta > * { border-right: 2px solid #ccc; padding: 0 10px; } body:not(.page) .inside-article footer.entry-meta { border: unset; }
We basically just changed
.single-post
tobody:not(.page)
so it applies on all pages except static pages like the home page, about page and contact me page.A wise man once said:
"Have you cleared your cache?" -
AuthorPosts
- You must be logged in to reply to this topic.