- This topic has 13 replies, 2 voices, and was last updated 5 years, 7 months ago by Leo.
-
AuthorPosts
-
September 20, 2018 at 9:50 am #682343Rich
Hey there,
I created an element:
Background image that is full width, goes right below nav menu.I want to add text in that same element, that goes above background image-so image is behind text.
I want to be able to have top text be centered, then add some other text below that, which is left justified.
And also be able to add a form to that element that is right justified.
I also want this text to be responsive on mobile so that it is readable when viewed on smartphone.
Please advise
September 20, 2018 at 10:02 am #682353RichSo like this basically:
https://snag.gy/Mizbfc.jpgSeptember 20, 2018 at 11:37 am #682409LeoStaffCustomer SupportHi there,
Not sure what your comfort level of coding is but it will take a bit of custom HTML and CSS to create something like that and make it look good on responsive screens as well.
I’ve marked up the basics here: https://www.screencast.com/t/MWJ9FBs5
So basically you will want one
<div>
for the top text marked in red, then one<div>
with columns marked in green.Columns can be created using one of these methods: https://docs.generatepress.com/article/creating-columns/
Here are some page hero examples that might help a bit: https://docs.generatepress.com/article/page-hero-examples/
If you aren’t comfortable with coding, I would highly recommend you to look into a page builder like Beaver Builder and Elementor to help to create this. It should save you lots of headaches.
Let me know if this helps π
September 20, 2018 at 11:41 am #682411RichAwesome! Thanks
September 20, 2018 at 11:44 am #682417LeoStaffCustomer SupportNo problem!
Thanks for the example! I’ll see if I can add it to the example page when I find some time π
September 20, 2018 at 11:46 am #682418RichSo for the background image – do you recommend selecting it :
under page hero tab:
Background image??
Also, where is best place to put the custom CSS?
Thanks
September 20, 2018 at 11:49 am #682422RichSo I am also assuming for the columns:
top headline is 1 column 100%
then the second part is 2 columns?September 20, 2018 at 11:55 am #682425LeoStaffCustomer SupportCustom Image option should work for you.
Methods for CSS: https://docs.generatepress.com/article/adding-css/
Top headline shouldn’t need to be a column. 100% column = no columns.
You will also need to use media query for responsive texts: https://docs.generatepress.com/article/responsive-display/
September 20, 2018 at 12:24 pm #682441RichThis theme is awesome!
September 20, 2018 at 12:27 pm #682443RichHey,
So I have the columns inserted into hero section.
The 2 in the middle are at 70/30.
I want the column on left to be left justified.
Tried to add in CSS and also inline style – but won’t work.
How do I get the copy in first column to be left justified?
September 20, 2018 at 1:49 pm #682480LeoStaffCustomer SupportThe content in page hero should align to left by default unless you set the horizontal alignment to center:
https://docs.generatepress.com/article/header-element-overview/#page-heroSeptember 20, 2018 at 2:01 pm #682493RichRight, but I want the headline to be centered, then the other text left
September 20, 2018 at 2:03 pm #682496RichI just centered top div and it worked.
Thanks
September 20, 2018 at 4:34 pm #682545LeoStaffCustomer SupportNo problem π
-
AuthorPosts
- You must be logged in to reply to this topic.