Text Teaser

Some texts are just too long for showing them always complete. A nice option would be to create a teaser and after clicking on “more information…” showing the complete text. Why all those efforts? Because it is important for SEO to have long text and describe in detail. Users / Customers like it more summarily and short. With this snippet you have both and it´s quite fancy as well!

Here an example for the category long description:

search for this part of the code in /out/azure/tpl/page/list/list.tpl:

then replace it with:

create a new file named HideText.js in the directory /out/azure/src/js with following content:

after that adjust base.tpl and include the new script:

…and Bob’s your uncle!

Don´t forget to clear /tmp!

Thanks to caladan for sharing!

 

0.00 avg. rating (0% score) - 0 votes


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *