Home › Forums › Support › My Author Page is aligned left and the rest of the website is aligned centrally
- This topic has 5 replies, 2 voices, and was last updated 4 years, 9 months ago by Leo.
-
AuthorPosts
-
July 21, 2019 at 1:39 am #963155Tom
Hi,
I’ve spent several hours trying to resolve this, but cannot find a solution. I’d really appreciate some suggestions as to how to fix it.
The entire website is aligned centrally, but when you click on an author name and go to
mydomain.com/author/{author-name}
The website becomes aligned left in the browser.
Thank you!
July 21, 2019 at 8:22 am #963454LeoStaffCustomer SupportHi there,
Very strange indeed.
Can you try #1 here to eliminate any plugin conflicts first?
https://docs.generatepress.com/article/debugging-tips/Make sure to clear all caching plugins you might have after disabling all other plugins.
Let me know ๐
July 22, 2019 at 10:54 am #964384TomThanks Leo, and sorry for the delay. I finally managed to do what you suggested above, with some interesting results.
So, I did the following:
1) Create a new staging site on on a new URL at SiteGround.
2) Disabled all the plugins except the three GeneratePress ones.
– CodeSnippets 2.13.3
– GP Premium
– Simple CSSThe problem still existed at this point. So I did this:
3) Disabled Simple CSS
The problem went away.
4) I assumed I must have done something wrong with the CSS I’d copied from the GeneratePress documentation, so I checked it and ran it through a validator. Which said “Congratulations! No Error Found.”
5) I then disabled Code Snippets as well (so I only have two plugins enabled: GP Premium and Simple CSS). The problem persisted.
6) I then emptied the CSS from the Simple CSS plugin, and saved with no CSS. The problem went away.
7) Found the cause. I realised that some CSS I copied from Example 2 here was messing something up. So I removed the CSS and it is fine now.
Specifically, it was this:
.page-hero-gravatar img { width: 40px; height: 40px; border-radius: 50%; position: relative; vertical-align: middle; margin: 0 10px 0 0; } .author, .page-hero-gravatar { display: inline-block; }
I left all the steps in in case someone else has a problem like this.
July 22, 2019 at 11:01 am #964388LeoStaffCustomer SupportAhh ok. Are you still using the page hero?
If so removing the
.author
part should fix the issue:.page-hero-gravatar img { width: 40px; height: 40px; border-radius: 50%; position: relative; vertical-align: middle; margin: 0 10px 0 0; } .page-hero-gravatar { display: inline-block; }
July 22, 2019 at 11:30 am #964408TomI wasn’t, but I may do with your fix. Thank you ๐
July 22, 2019 at 11:31 am #964412LeoStaffCustomer SupportSounds good. Let me know if you notice more issues with the style if you do decide to use the page hero.
Should just need some small tweaks in CSS.
Thanks for bringing this up!
-
AuthorPosts
- You must be logged in to reply to this topic.