Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Widgets /

Discuss SilverStripe Widgets.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Add a div to the title of a widget


Go to End


2689 Views

Avatar
Nachos

Community Member, 22 Posts

2 December 2014 at 6:15am

Hello,

I want to use the space of the h3 title of the archive widget to use it as a button to toggle the slide up and down of its content for the mobile version of a site. I just can't find the place to add a div to it. As the h3 is not contained in the template I guess it's being generated with .php? Is there a way to add a div class containing the title to be able to target it with javascript?
Cheers for answers!
Nacho