Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] Author box not displaying correctly

Home Forums Support [Resolved] Author box not displaying correctly

Home Forums Support Author box not displaying correctly

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1422245
    Nidhi

    Hi David,
    I wanted to add an author box on the right sidebar and found one post from the support forum where you shared a simple author box code, but it isn’t working as expected. I’ve also linked the URL for you to check. If possible, I’d like a circle image at the center, a small description below with a read more button and social media accounts buttons.

    #1422285
    Leo
    Staff
    Customer Support

    Hi there,

    What code are you using?

    Do you have multiple authors on the site?

    If not it might be easier to just build author box content manually.

    #1422287
    Nidhi

    There will only be one author on the site. I have used the code given here.
    https://gist.github.com/diggeddy/c448f642993866f79dbb960cbc450a6a

    #1422352
    Leo
    Staff
    Customer Support

    I feel like that’s a bit overkill if you only have one author on the site.

    Would you consider using block element and GB to build whatever you have in mind?
    https://docs.generatepress.com/article/block-element-overview/
    https://wordpress.org/support/plugin/generateblocks/

    Or let me know if you have an example in mind πŸ™‚

    #1422597
    Nidhi

    Thank you Leo, the block element does the job but there is no way to add a background to the sidebar. The customize option does not work for the sidebar now. I would also like the sidebar to occupy more space on the right, so I tried to increase sidebar width but it increases the width from the left side resulting in a decrease in the main container’s width. It seems to me as if the right side of the sidebar and left side of the main container is fixed. How to change that?

    #1423143
    Leo
    Staff
    Customer Support

    the block element does the job but there is no way to add a background to the sidebar.

    I would recommend using GenerateBlock to build your current content then you can use a container block which allows you to add a background color:
    https://docs.generateblocks.com/article/container-overview/

    As for sidebar width, this should help:
    https://docs.generatepress.com/article/sidebar-widths/

    #1423234
    Nidhi

    Generateblocks for the win!!
    Thank you leo, it looks exactly as I wanted. 😊

    #1423238
    Leo
    Staff
    Customer Support

    Awesome. That looks good!

    Just to mention that you GB also has buttons block as well πŸ™‚

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