Shopify themes, liquid, logos, and UX
Hi All, Im not sure this is possible, My table in the product description is overflowing on mobile, see below screenshot.
Theme: Trade. This is effecting product page on mobile.
https://www.affluentarchives.co.uk/products/versace-blue-polo-mediu
Hi @ecommfirst
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
<style>
.rte__table-wrapper {
overflow-x: scroll;
}
.rte table {
table-layout: fixed;
border: 1px solid #ccc;
}
</style>
You will have scroll bar for table, and the page will not have extra spacing
To enhance the professionalism and uniqueness of your site, I recommend setting a favicon. This can be easily done in the theme settings. Adding a favicon will help make your store stand out to customers.
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
➜ Optimize your Shopify store with PageFly Page Builder (Free plan available)
All features are available from Free plan. Live Chat Support is available 24/7.
Hi Richard, I have followed this but unfortunate no change
Hi @ecommfirst ,
May I suggest to update code these steps:
1. Go to Store Online-> theme -> edit code
2. Assets/base.css
3. Add code below to end of file
.product__description .rte__table-wrapper {
overflow: auto;
padding: 10px 1px;
}
Hi @ecommfirst
If the figure below meets your expectations, you need to follow the steps below,
First, you need to remove the width attribute of table
Secondly, modify base.css to change the padding: 1em; of line 417 to padding: 0.2em;
Hello, where can I remove the width attribute from? thank you
If you cannot find the width attribute of the table, you can try another way,
Modify line 3100 in the base.css file and add 'width: auto;' to the '. rte table'
I hope it can be helpful to you.
Hi @ecommfirst
Please add this code to theme.liquid file, after <head> in Online Store > Themes > Edit code
<style>
@media (max-width: 749px) {
html, body { overflow-x: hidden; }
.rte__table-wrapper { overflow-x: auto; }
}
</styl>
- Helpful? Like and Accept solution!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024