Jump to content

How to left-align homepage headers just on mobile

Recommended Posts

Site URL: https://www.craigkleila.com/

Password to site is "password"

On the homepage on mobile, I want the "Testimonials" header and subtext and "Featured case study" header and subtext to be left-aligned. I also want to left align the "View the case study" button on mobile. I want them to stay centered on desktop.

How can I do this? When I change the alignment from center to left in the mobile view, it also changes the desktop view.

Edited by Craig456
Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

17 hours ago, Craig456 said:

Site URL: https://www.craigkleila.com/

Password to site is "password"

On the homepage on mobile, I want the "Testimonials" header and subtext and "Featured case study" header and subtext to be left-aligned. I also want to left align the "View the case study" button on mobile. I want them to stay centered on desktop.

How can I do this? When I change the alignment from center to left in the mobile view, it also changes the desktop view.

Try the following code to make tt

@media only screen and (max-width: 767px) {
  #block-yui_3_17_2_1_1660667937194_236600  h2, #block-yui_3_17_2_1_1660667937194_310862 p {
    text-align: left !important;
  }
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

If you want the sub-text is align the same as the heading, kindly edit this section in mobile display, you can drag it it meet your need

image.png.ea276bf776bf57edd991f87b9a3ed32a.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

This left-aligned the Testimonials headers but none of the other text I mentioned. I want the "Testimonials" header and subtext and "Featured case study" header and subtext to be left-aligned. I also want to left align the "View the case study" button on mobile. I want them to stay centered on desktop.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.