What's your biggest current challenge? Have your say in Community Polls along the right column.

How To Increase Size Horizontally??

Solved

How To Increase Size Horizontally??

rgeafrauuhf
Tourist
39 0 3

i want to icrease width of enter your email horizontally as mentioned in image by black box.. and want the subscribe button size 1/3rd

URL : https://baab16-dc.myshopify.com/

PASS : Drapex

Screenshot 2024-07-27 165501.png

Accepted Solution (1)

niraj_patel
Shopify Partner
2378 514 507

This is an accepted solution.

Hello @rgeafrauuhf 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
.input-group .input-group-field {
min-width: 100% !important;
}
.text-center .newsletter-section__content form {
padding-right: 17% !important;
}
</style>

techlyser_web_0-1722011437669.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

View solution in original post

Replies 4 (4)

niraj_patel
Shopify Partner
2378 514 507

This is an accepted solution.

Hello @rgeafrauuhf 

You can add code by following these steps

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file

3. Paste the below code before </body> on theme.liquid
<style>
.input-group .input-group-field {
min-width: 100% !important;
}
.text-center .newsletter-section__content form {
padding-right: 17% !important;
}
</style>

techlyser_web_0-1722011437669.png

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

Shopify Partner || Helping eCommerce Stores
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
- For further discussion contact: Email ID- info@techlyser.com

BSS-TekLabs
Shopify Partner
2350 688 810

- Here is the solution for you @rgeafrauuhf 
- Please follow these steps:

- Then find the base.css or theme.css file.

step.png


- Then add the following code at the end of the file and press 'Save' to save it.

.input-group-field.newsletter__input {
 width: 300px !important;
}

- Here is the result you will achieve:

BSSTekLabs_0-1722080699928.png

 

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

If our suggestions are useful, please let us know by giving it a like or marking it as a solution.


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Roy-ロイ
Shopify Partner
91 19 34

Hi @rgeafrauuhf ,

 

We can do this through CSS.

To get started, follow these steps:

  1. Log in to your Shopify Admin panel.
  2. Go to Online Store > Themes > Customize.
  3. In the Customizer, navigate to the Theme settings and add the below code in the Custom CSS field. 

 

 

.input-group.newsletter__input-group {
    max-width: unset;
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.newsletter-section .input-group.newsletter__input-group .btn {
    width: 100%;
}​

 

 

 

 

Try changing the width .input-group.newsletter__input-group from 100% to any value to suit it to your liking. 

 

Result: 

Roy_0-1722081724428.png

 

Let's connect and grow your Shopify business together! 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Connect with me at: roy.solution.partner@gmail.com ( CRO | Site Speed Optimization | Custom Development )

BSSCommerce-B2B
Shopify Partner
1969 564 566

Hi @rgeafrauuhf , 

I have reviewed your requirement, you just need to edit css script and the issue will be resolved.  You can follow my instructions! 

 

Step 1: Go to Admin -> Online store -> Theme > Edit code:

BSSCommerceB2B_0-1722081103220.png

 

Step 2: Search for the file theme.css. And add this code snippet to the end of the file.

.input-group.newsletter__input-group {
    width: 100% !important;
}
.input-group.newsletter__input-group span.input-group-btn button {
    width: 100px !important;
}
.input-group.newsletter__input-group span.form__submit--large {
    display: flex !important;
    justify-content: center !important;
}

Step 3: Save your code and reload this page.

=>> The result: 

BSSCommerceB2B_1-1722081292574.png

We hope my suggestions will solved your issue.

 

If it is helpful, can you kindly give us likes and mark the solution for us? 

 

Have a nice day, sir

 

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now