buttons in one row on the first screen of the mobile version

buttons in one row on the first screen of the mobile version

SvitlanaLogvin
Tourist
3 0 1

 

Please help to rearrange the buttons on the first screen of the mobile version in one line. My Shopify theme is Dawn

I am attaching a photo of how it should look

photo1685091318 (1).jpeg

Replies 8 (8)

shreyhweb
Shopify Partner
633 111 116

URL?

- If You Find Our Solution Helpful Please Like And Mark As Accepted!
- Sip, savor, and support – your Coffee Tip helps us keep coding.❤️
- If You Want To Further Discussion. Then Contact - info@shreyhsoftsolutions.com
SvitlanaLogvin
Tourist
3 0 1
NartTok
Shopify Partner
3 0 1

To access the Hero section in the customizer, please follow these steps:

  1. Open the customizer.
  2. Open the Image banner section
  3. Scroll down until you reach the custom CSS section.
  4. Add the following code below:



 

@media screen and (max-width: 749px) {
.banner--content-align-mobile-center .banner__buttons--multiple > * {
min-width: unset;
}
banner__buttons.banner__buttons--multiple {
grid-template-columns: 1fr 1fr;
display: grid;
}
}

 



Screen Shot 2023-06-04 at 2.53.18 AM.png

SvitlanaLogvin
Tourist
3 0 1

unfortunately it didn't help

Sarrah_Jenni
Visitor
2 0 0
  1.  Access your Shopify admin panel.
  2. From the left-hand menu, click on "Online Store" and then select " Theme."
  3. In the Themes section, find and click on the "Customize" button next to the Dawn theme.
  4. Once the theme customization page loads, look for the section that corresponds to the first screen of the mobile version, typically labeled "Header" or "Mobile Header."
  5. Within that section, locate the buttons you want to rearrange.
  6. To rearrange the buttons, you can typically drag and drop them to the desired position. If dragging and dropping is not supported, there might be an option to reorder them using arrows or a numerical input field.
  7. After you have rearranged the buttons to your liking, preview the changes to ensure they appear as expected on the first screen of the mobile version.
  8. If you are satisfied with the changes, click on the "Save" or "Publish" button to apply the new button arrangement to your live Shopify store.

made4Uo
Shopify Partner
3851 717 1195

HI @SvitlanaLogvin 

 

You do the following to make the button layout you want. 

 

1. From you Admin page, go to Online store > Themes > Click the three dots on the theme you want to edit > Edit code
2. Go to Asset folder and open the base.css file
3. At very end of the code, add the code below

 

@media only screen and (max-width: 750px){
.banner__buttons.banner__buttons--multiple> * {
    min-width: 15ch;
}
}

 Result here:

made4Uo_0-1685836619007.png

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free

PageFly-Lucas
Pathfinder
110 28 29

HI @SvitlanaLogvin 

This is Lucas from PageFly - Landing Page Builder App

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file -> Save


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

a.button.button--secondary, a.button.button--primary {

    min-width: 16rem !important;

}

.banner__buttons.banner__buttons--multiple {

    display: flex !important;

    flex-direction: row !important;

    flex-wrap: nowrap;

    justify-content: center !important;

}}

PageFlyLucas_0-1685839156839.png

 

Hope that my solution works for you.

Best regards,

Lucas | PageFly

banned
Sarrah_Jenni
Visitor
2 0 0

Here is the solution. Thanks