Jump to content

Show CTA in center of mobile header?

Recommended Posts

Site URL: https://hideawaycoaching.com

Hi everyone, I hope whoever reads this is doing well.

I'm wanting to show the CTA for my site, which is currently in the mobile navigation, in the center of the header. I can get it to show using the code below, but I can't seem to make it align into the center.

Thank you so much in advance for any help.

Code
@media screen and (max-width:767px) {

.header-actions {
    display: block !important;
}
.header .header-actions-action--cta {
    display: block;
}

.header-title-nav-wrapper {
    flex: 50% !important;
}
}

Link to comment
  • Replies 2
  • Views 476
  • Created
  • Last Reply

Top Posters In This Topic

On 7/24/2021 at 11:24 AM, mitchgraunke said:

Site URL: https://hideawaycoaching.com

Hi everyone, I hope whoever reads this is doing well.

I'm wanting to show the CTA for my site, which is currently in the mobile navigation, in the center of the header. I can get it to show using the code below, but I can't seem to make it align into the center.

Thank you so much in advance for any help.

Code
@media screen and (max-width:767px) {

.header-actions {
    display: block !important;
}
.header .header-actions-action--cta {
    display: block;
}

.header-title-nav-wrapper {
    flex: 50% !important;
}
}

Add to Design > Custom CSS

@media screen and (max-width:767px) {

.header-actions {
    display: block !important;
    flex: 50%;
}
.header .header-actions-action--cta {
    display: block;
}

.header-title-nav-wrapper {
    flex: 20% !important;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 1 year later...

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.