I have a site using a Content Toggle section to expand and show some content. I have scratched my head and tried a bunch of different ways to use an image as the trigger but no luck.
Right now I have:
- menu image
{toggle_start title=">> Click Here to Open Mini Leaderboard" width="290" }
Code for leaderboard
{toggle_end}
So the text "> Click to open Mini Leaderboard" is the trigger.
Is there any way to update this so that clicking on the menu image would cause the toggle down?? I've tried making the toggle start above the image, and it just hides the image thus leaving you nothing to click on to trigger the expansion.
Anyone have any brilliantly obvious ideas?
TIA
Content Toggle question - image to trigger?
-
- Forum Members
- Posts: 13
- Joined: Wed Oct 15, 2008 9:16 pm
Content Toggle question - image to trigger?
Last edited by cdndesigns on Thu Jan 22, 2015 5:39 am, edited 1 time in total.
Re: Content Toggle question - image to trigger?
This works for me
You still have to style class .trigger of course, so your image will fit into it nicely and to remove (or set) background color of the class etc.
Frank
Code: Select all
{toggle_start title='<img src="uploads/images/logo1.gif" alt="" width="200" height="40" />'}
Frank
-
- Forum Members
- Posts: 13
- Joined: Wed Oct 15, 2008 9:16 pm
Re: Content Toggle question - image to trigger?
Awesome.. that worked!! I had tried putting <img src="/image.jpg"> in the title before but I had it with double quotation marks, that didn't work. This code with single quotation marks works perfectly!! 
