- This topic has 8 replies, 4 voices, and was last updated 3 years, 3 months ago by
Leo.
-
AuthorPosts
-
December 9, 2018 at 9:28 pm #752456
trung
Hi GeneratePress.
In my single post, the post title and all meta is left as default. They looks like this, includes:
– Category link (move into above post title by code in the topic )
– Post title
– Post date
– Social sharing icons (use GP social share and Hook after_entry_header)I want to move something like this:
– Move Social sharing icons into exactly the end of post and align right (I want it appears above Next/Pre posts navigation so I don’t use Hook after_content).
– Post date move into above post title, and in same line with category link. Category link first, post date second, both of them is transformed italic. The character “/” is used to connect them.Please support me. Thank you.
December 10, 2018 at 9:53 am #753056Tom
Lead DeveloperLead DeveloperHi there,
I’m not sure how you’re adding the social icons. You’d likely need to tweak the plugin settings so they appear after the content.
As for the other stuff, try this CSS:
header.entry-header { display: flex; flex-wrap: wrap; justify-content: center; } header.entry-header .entry-meta { order: -1; } header.entry-header h1.entry-title { width: 100%; } .entry-header .entry-meta.cat-links:after { content: " / "; display: inline-block; margin: 0 10px; }
December 11, 2018 at 7:08 am #753804trung
Sorry Tom.
Your CSS code works well. But I forgot one thing in this topic: I want to move post title and all meta into center (as the name of topic).
I tried CSS and it worked with post title:header.entry-header h1.entry-title { text-align: center; }
But I don’t know how to move category link and post date into center. Please support me about this.
Again, sorry about my carelessness in started the topic.
December 11, 2018 at 7:51 am #753842trung
About adding Social sharing icon, I think GP social share setting is not enough for my design. I am trying to use Elementor shortcode and GP hook. I will open other topic to ask. Thank you.
December 11, 2018 at 6:41 pm #754252Tom
Lead DeveloperLead DeveloperI just adjusted the CSS above so it centers the meta as well.
Let me know π
January 13, 2019 at 1:32 am #780463trung
Thank you, Tom.
January 13, 2019 at 8:53 am #780759Tom
Lead DeveloperLead DeveloperYou’re welcome π
February 23, 2020 at 5:00 am #1174230Rickard
Hello,
The code above works great when looking on individual posts, but when looking at all the posts on the blog page the meta data is next to the title.
I want the meta data on the blog page to be under the post title, how can I do that?
February 23, 2020 at 1:11 pm #1174644Leo
StaffCustomer SupportAny chance you can open a new topic and link us to the page in question?
Thanks π
-
AuthorPosts
- You must be logged in to reply to this topic.