[Resolved] Move Author, Date to the bottom – after content.

Home Forums Support [Resolved] Move Author, Date to the bottom – after content.

Home Forums Support Move Author, Date to the bottom – after content.

  • This topic has 29 replies, 6 voices, and was last updated 4 years ago by Tom.
Viewing 15 posts - 1 through 15 (of 30 total)
  • Author
    Posts
  • #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?

    #170511
    Tom
    Lead Developer
    Lead Developer

    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/

    #170521
    Ramesh 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,

    #170537
    Tom
    Lead Developer
    Lead Developer

    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 πŸ™‚

    #170551
    Ramesh Srinivasan

    Perfect! Code snippets works fine. πŸ™‚
    Thanks Tom.

    #170554
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

    #228652
    Jan

    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

    #228681
    Tom
    Lead Developer
    Lead Developer

    Hi Jan,

    Not seeing a white line – any chance you can show me a screenshot of what you’re seeing?

    #228722
    Jan

    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.

    #228808
    Tom
    Lead Developer
    Lead Developer

    It might be better to change the single post header position in “Customize > Layout > Page Header” to “Above Content Area”.

    #262744
    Tim

    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

    #262749
    Leo
    Staff
    Customer Support

    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.

    #262786
    Tim

    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

    #262805
    Tom
    Lead Developer
    Lead Developer

    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.

    #262978
    Tim

    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?

Viewing 15 posts - 1 through 15 (of 30 total)
  • You must be logged in to reply to this topic.