Jump to content

Hidden content In Product Description?


phuber

Recommended Posts

Hi I have very long product descriptions due to the amount of info required for the products, as such I'm always looking for ways to shorten them.

Latest idea is to use something like a spoiler code so 

 

gfdgffdg

dgffggfdgfd

dgfgfdggd

gdfgdfg

turns into 

Spoiler

fjdfsjfdsjkdfs

dsfjfdsjfdsjkfds

fdjkfdsjkfdsjkfdsjk

fdsjkdfsjk

 

What would be the easiest and or best way to do this?

Link to comment
Share on other sites

On 15/05/2019 at 20:37, phuber said:

I have very long product descriptions due to the amount of info required for the products, as such I'm always looking for ways to shorten them. 

Latest idea is to use something like a spoiler code - What would be the easiest and or best way to do this?

easiest and/or best will be two different things - and could get complicated by any customisations you've added to your site, or which template you're using... in other words - the simpler you keep it, the less you should have to tweak for future releases; the more complex you create it, the more something to come along to break it, and the more involved the solution would need to be... e.g requiring JavaScript and therefore hooks.

so as a basic example, the example image below shows hidden text (5 paragraphs of lorem ipsum) that is revealed when the customer runs their mouse over the "Further Details" button box.... it's only using HTML and CSS (the HTML is in the product description and the CSS is in a custom.css file), so updating WHMCS shouldn't necessarily break the solution.

is this what you had in mind ?

bJdyhnkRC8.gif

XtUT2N1.png

nG3hSVy.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated