Font Size Settings Issue - Based on the Vision Theme

Solved

Font Size Settings Issue - Based on the Vision Theme

yusihuman
New Member
5 0 0

yusihuman_0-1735212628238.pngyusihuman_1-1735212633351.png


I currently have three requests:

  1. I would like to change the font size of the product titles on my homepage. The default font size in the theme is currently too large, and I would like to make it smaller.

  2. The product titles on the homepage are currently displayed in full. I would like the titles to only show two lines, with any text exceeding two lines being truncated with an ellipsis (...).

For both the first and second requests, the desired result is as shown in the image below. I would like the font size adjustments to apply to both desktop and mobile versions.

yusihuman_2-1735212659261.png

 

The third request is:

  1. I would like to reduce the font size and line spacing for the product titles on the product page. The ideal reference for this is shown in the image below.
    yusihuman_3-1735212667771.png

     

Accepted Solution (1)
DaisyVo
Shopify Partner
2371 297 340

This is an accepted solution.

Hi @yusihuman 

 

I hope you are well. You can follow our instructions below:


Step 1: Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
Step 2: Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
Step 3: Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ

 

 

Here is the code for Step 3:

 

{% style %}
{% if template == 'index' %}
.product-card-info a.product-card-title {
    font-size: 13px !important;
display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
{% endif %}
{% if template == "product" %}
h1.product-title {
    font-size: 20px !important;
    line-height: 20px !important;
}
{% endif %}
{% endstyle %}

 

image (20).png

image (21).png


Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

View solution in original post

Replies 10 (10)

websensepro
Shopify Partner
1738 196 235

Hi @yusihuman , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP

topnewyork
Astronaut
964 131 163

Hello, @yusihuman 
Please share "Store URL"
Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

DaisyVo
Shopify Partner
2371 297 340

Hi @yusihuman 

 

Could you please share your store link with us for further checking?

 

Looking forward to hearing from you soon. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
yusihuman
New Member
5 0 0
DaisyVo
Shopify Partner
2371 297 340

This is an accepted solution.

Hi @yusihuman 

 

I hope you are well. You can follow our instructions below:


Step 1: Shopify admin > Online store > Edit code: https://prnt.sc/M4p-gua99Uf4
Step 2: Search for "theme.liquid" file: https://prnt.sc/b6xveIKe-Rh2
Step 3: Open the file and search for </head> tag and add the following code above </head> tag: https://prnt.sc/KWtKYyZkDtYJ

 

 

Here is the code for Step 3:

 

{% style %}
{% if template == 'index' %}
.product-card-info a.product-card-title {
    font-size: 13px !important;
display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
{% endif %}
{% if template == "product" %}
h1.product-title {
    font-size: 20px !important;
    line-height: 20px !important;
}
{% endif %}
{% endstyle %}

 

image (20).png

image (21).png


Please let me know if it works. Thank you!

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution
yusihuman
New Member
5 0 0

Thank you so much for your help, the issue has been perfectly resolved. However, I’m now facing a new problem: the mobile view of the product page seems to be displaying incorrectly, as shown in the image below.

yusihuman_0-1735268882242.png

 

Could you please assist me in resolving this issue? I would really like the product page to be fully responsive on mobile devices.

Additionally, I noticed that both the mobile view of the homepage and the product page have an issue with the font size of the product prices being too large. Could you please help fix this as well? I greatly appreciate your assistance.

yusihuman_1-1735268905625.png

 

DaisyVo
Shopify Partner
2371 297 340

Hi @yusihuman 

 

To ensure that other users can find appropriate answers when searching for similar questions on the community, I will address your requests within your original goal.

 

If this resolves your issue, I will be grateful if you mark our answer as the solution.

 

If you have another question, feel free to create a new thread and tag me. I’ll take a look and do my best to assist.

 

Best,
Daisy - Avada Support Team.

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution

yusihuman
New Member
5 0 0
topnewyork
Astronaut
964 131 163

Hello, @yusihuman 
1) Go to Online Store
2) Edit Code
3) Find theme.css/base.css file
4) Add the following code in the bottom

h1.product-title {
    font-size: 21px !important;
}

 Thanks! 

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

websensepro
Shopify Partner
1738 196 235

@yusihuman Solution for your Third request:

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.

 

h1.product-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
}

 If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP