- This topic has 29 replies, 6 voices, and was last updated 3 years, 9 months ago by
Tom.
-
AuthorPosts
-
February 4, 2016 at 10:59 am #170430
Ramesh Srinivasan
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?
February 4, 2016 at 6:00 pm #170511Tom
Lead DeveloperLead DeveloperHi 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/
February 4, 2016 at 7:32 pm #170521Ramesh Srinivasan
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,
February 4, 2016 at 10:02 pm #170537Tom
Lead DeveloperLead DeveloperHmm, 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 π
February 4, 2016 at 10:51 pm #170551Ramesh Srinivasan
Perfect! Code snippets works fine. π
Thanks Tom.February 4, 2016 at 10:52 pm #170554Tom
Lead DeveloperLead DeveloperYou’re welcome π
September 22, 2016 at 9:11 am #228652Jan
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,
JanSeptember 22, 2016 at 10:15 am #228681Tom
Lead DeveloperLead DeveloperHi Jan,
Not seeing a white line – any chance you can show me a screenshot of what you’re seeing?
September 22, 2016 at 11:44 am #228722Jan
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.
September 22, 2016 at 10:28 pm #228808Tom
Lead DeveloperLead DeveloperIt might be better to change the single post header position in “Customize > Layout > Page Header” to “Above Content Area”.
January 10, 2017 at 4:10 pm #262744Tim
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
January 10, 2017 at 4:36 pm #262749Leo
StaffCustomer SupportHi 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.
January 10, 2017 at 7:28 pm #262786Tim
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
January 10, 2017 at 10:06 pm #262805Tom
Lead DeveloperLead DeveloperThe 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.
January 11, 2017 at 9:09 am #262978Tim
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?
-
AuthorPosts
- You must be logged in to reply to this topic.