Shopify themes, liquid, logos, and UX
Hello,
Looking to add a 'Read more' and perhaps 'Read less' button to a Rich Text section in my front page store. Using Brooklyn theme. Any help is appreciated.
Thanks,
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community!😊
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
thanks
can you please try this code
https://codepen.io/royketelaar/pen/avWxve
Hi KetanKumar,
There is no place to add the html code in the Rich Text section, but I created a custom html section and applied it there. However, I am not getting the desired results. I copy and pasted the html code in the 'HTML section' however it does seem to work. (See below) You can see that the 'Read more' text is present and so is all the text. When I click on the 'Read more' text it simply refreshes the web page. Perhaps I am doing something wrong. Please let me know what you think.
can you please user HTML, CSS and javascript same as demo
Thank you @KetanKumar . I am just not sure where to apply the html, css and javascript. Still learning. My apoligies. Please let me know how to apply all these codes.
It can be done by doing some code customization. please send me a personal message and we can discuss what you'd like
Hi KetanKumar,
I was able to add the .js code to theme.js.liquid and the css code to theme.scss.liguid. I also added the html text to a new custom html section. It looks pretty good except when I click on read more or read less, which function well, the page refreshes to the top thereby losing one's place in the text in question. Any ideas?
Best,
can you please share further issue screenshot or video
Hi KetanKumar,
I will send you the video link via pm.
Thanks.
ok i will check and update
Hello,
I'm also trying to add a read more button in a text section (brooklyn theme). Can anyone help me with this code? I tried some, but they don't work...
Much appreciated!
can you please sent store URL and issue images
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024