Product title font size (desktop view only)
I want to make my font size bigger on desktop view only can anyone help please?
url: https://errival.com/products/errival%E2%84%A2-mini-rubber-band-shotgun
A user seeks to increase product title font size on desktop view only for their Shopify store (errival.com). Two solutions are provided:
Solution 1 (Moeed):
</body> tag@media only screen and (min-width: 750px) to target desktop screens onlySolution 2 (charliebrown):
min-width: 768px.product-title classBoth approaches use CSS media queries to apply styling exclusively to desktop viewports, leaving mobile displays unchanged.
Product title font size (desktop view only)
I want to make my font size bigger on desktop view only can anyone help please?
url: https://errival.com/products/errival%E2%84%A2-mini-rubber-band-shotgun
Hey @Ryan1998
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
thank you, but will that affect mobile view also?
@media only screen and (min-width: 750px) {
All good added this, thanks ![]()
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.
To increase the font size of your product title on desktop view only, you can add some custom CSS. Here’s how you can do it:
Go to Shopify Admin: Click on “Online Store” and then “Themes.”
Edit Code: Find your theme, click “Actions,” and then “Edit code.”
Open CSS File: Go to the “Assets” folder and open base.css or theme.css.
Add Custom CSS: Add the following code at the end of the file:
@media only screen and (min-width: 768px) {
.product-title {
font-size: 24px; /* Adjust the size as needed */
}
}
Make sure to replace .product-title with the actual class used for your product titles. You might need to inspect the page to find the correct class.
Save Your Changes: Click “Save” to apply the update.
This code will increase the font size for the product title only on desktop screens. Adjust the font-size value to fit your needs.