- This topic has 15 replies, 2 voices, and was last updated 3 years, 3 months ago by Ying.
-
AuthorPosts
-
December 25, 2020 at 10:52 pm #1594436DJ
Hello, Please advise on how I can make the adjustments to my site so that the mobile view appears in example 1 below. Example 2 is what my site looks like.
Thank you.
Example 1 – https://imgur.com/lUiEYGQ
Example 2 – https://imgur.com/pYPh2xl
December 26, 2020 at 11:05 am #1595042YingStaffCustomer SupportHi DJ,
Give this css a try:
.site-logo.mobile-header-logo img{ position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
Let me know π
December 26, 2020 at 1:11 pm #1595121DJHello Ying, I have a basic understanding of WordPress. Where do I add this code at on my site. Thank you.
December 26, 2020 at 3:30 pm #1595188YingStaffCustomer SupportI should’ve mentioned it π
Adding CSS: https://docs.generatepress.com/article/adding-css/December 26, 2020 at 5:39 pm #1595233DJI found where to put the code. Thanks for the info. However, I’m still trying to achieve the desired effect of having my picture in the middle of the page with the words centered aligned over the top of the image. Similar to the setup of https://imgur.com/lUiEYGQ. The code you provided worked for the log, but not the header image. Please advise.
December 26, 2020 at 8:10 pm #1595283YingStaffCustomer SupportAny chance you can link us to the site in question?
It’s hard for us to help without seeing the code.
You can use the private information field.
Let me know π
December 26, 2020 at 8:16 pm #1595289DJOk. I have provided the details in the private info filed.
December 26, 2020 at 8:28 pm #1595291YingStaffCustomer SupportI can see the user name and pw, but no website link?
December 26, 2020 at 8:41 pm #1595296DJMy apologies! Totally forgot.
December 26, 2020 at 9:13 pm #1595302YingStaffCustomer SupportNo worries!
Try to set the page hero background position to left top.
https://docs.generatepress.com/article/header-element-overview/#background-image-positionAnd to center the logo in mobile view, edited css here:
https://generatepress.com/forums/topic/mobile-header-optimization/#post-1595042Let me know π
December 27, 2020 at 3:43 pm #1596078DJHey Ying, Moving the settings to top left did the trick. Thanks! Is there a way to adjust the text for the mobile view without affecting the standard view? I’m trying to keep the text centered and with one line of text per row. Similar to the text on the second line in this image. https://imgur.com/3D4wZwr
December 27, 2020 at 8:33 pm #1596192YingStaffCustomer SupportYes, the text font size can be adjusted only in mobile with media query:
@media (max-width: 768px) { .page-hero .inside-page-hero h1 { font-size: 19px; margin-bottom: 30px; } }
Let me know π
December 27, 2020 at 9:27 pm #1596220DJYing, it Worked great. What line of code would I need to add to move the text down the page and move it toward the right?
December 29, 2020 at 12:46 pm #1598724YingStaffCustomer SupportIt actually doesn’t require css, you can adjust it in Page hero > Padding (click the mobile icon):
https://docs.generatepress.com/article/header-element-overview/#paddingIncrease the left and top padding, reduce the right and bottom padding as the screenshot below.
https://tinyurl.com/ycpztoybLet me know π
December 30, 2020 at 9:35 pm #1600311DJThanks Ying! I’ll have to play with the numbers to get the desired effect, but I should be able to find the right combination.
-
AuthorPosts
- You must be logged in to reply to this topic.