Archived topic
Move Author, Date to the bottom - after content.
29 replies · Started by Ramesh Srinivasan on February 4, 2016
Is there a way to move the author and date meta to the bottom of the post, after content and just before Categories/Tags section? I only found a way to hide Date/author at the top, from a previous thread here, but no idea how to show it at the bottom. I have GP Premium, and I guess I need to use Hooks?
Hi there,
Give this function a try: https://gist.github.com/generatepress/cf95fae85d5e7773d97a
Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/
You'll also want to add this CSS:
.entry-header.entry-meta {
display: none;
}
Adding CSS: https://generatepress.com/knowledgebase/adding-css/
Hi,
Added Simple PHP Plugin, but when I go to Appearance -> Simple PHP, I get this error:
You do not have sufficient permissions to access this page.
Looks like I need to change the CHMOD somewhere. If so, where?
Thanks,
Hmm, I'll have to check the code of the plugin - I'm on a laptop at the hospital still.
Can you try this plugin instead?: https://en-ca.wordpress.org/plugins/code-snippets/
Let me know :)
Perfect! Code snippets works fine. :)
Thanks Tom.
You're welcome :)
Hi Tom,
I used the php function and it worked fine.
But, now there is a white line where the author and date used to be.
The css seems not to work.
Here is an example: http://eersdiekoninkryk.co.za/lei-my-elke-dag/
Thanks,
Jan
Hi Jan,
Not seeing a white line - any chance you can show me a screenshot of what you're seeing?
Sorry Tom,
To fix it I used a negative margin of 34. I removed the negative margin so you can quickly look. If that is the only solution it is fine.
It might be better to change the single post header position in "Customize > Layout > Page Header" to "Above Content Area".
Hello Tom,
I have added the PHP to my site using the Code Snippet plugin
I have Auther >> Show and Date >> Show
No change!
You can see here on a post page
http://aaa.greaterthanthesum.com/showing-up-practice/
Thanks
Hi Tim,
I could be wrong but I think beaver builder has taken over the style/layout of that content section. Therefore I'm not sure if the code would work. I'll ask Tom to confirm.
Hello Leo, thanks for looking
I have not altered the Comments section with beaver builder, though I have used it to style the post section above the comments section
The author and date on that page isn't added by GeneratePress, it looks like it's actually been typed directly into a beaver builder text module as Leo said.
Hello,
Yes, I did type it into a beaver builder text module but that is not the issue.
The PHP code I added did not move Author, Date to the bottom - after content, do you think beaver builder is interfering with the PHP code as Leo suggested?