- This topic has 7 replies, 2 voices, and was last updated 6 months, 1 week ago by
Leo.
-
AuthorPosts
-
August 28, 2020 at 12:14 pm #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.August 28, 2020 at 1:19 pm #1422285Leo
StaffCustomer SupportHi 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.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 28, 2020 at 1:22 pm #1422287Nidhi
There will only be one author on the site. I have used the code given here.
https://gist.github.com/diggeddy/c448f642993866f79dbb960cbc450a6aAugust 28, 2020 at 2:26 pm #1422352Leo
StaffCustomer SupportI 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 π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 29, 2020 at 12:09 am #1422597Nidhi
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?
August 29, 2020 at 9:14 am #1423143Leo
StaffCustomer Supportthe 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/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/August 29, 2020 at 10:51 am #1423234Nidhi
Generateblocks for the win!!
Thank you leo, it looks exactly as I wanted. πAugust 29, 2020 at 10:53 am #1423238Leo
StaffCustomer SupportAwesome. That looks good!
Just to mention that you GB also has buttons block as well π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.