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.

Blog Module /

Discuss the Blog Module.

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

Remove / Change 'Browse By Date' Title in Archive Widget


Go to End


3 Posts   2657 Views

Avatar
timwjohn

Community Member, 98 Posts

7 October 2009 at 11:17pm

Hello all,

I'm looking to change the output of the Archive Widget so instead of the title being

<h3>Browse by Date</h3>

it's

<h2 class="area-heading">Archive</h2>

I've looked in the template file, and the title isn't generated in there. I can find the title itself in ArchiveWidget.php, but even if I changed that I wouldn't be able to change the tag it comes in...

Thanks,

Tim

Avatar
dio5

Community Member, 501 Posts

13 October 2009 at 2:29am

Hi,

the html for widgets is rendered by sapphire/templates/WidgetHolder.ss

If you want to change it, add a WidgetHolder.ss file under your themes/yourtheme/templates folder and add in the changed html there.

Avatar
timwjohn

Community Member, 98 Posts

13 October 2009 at 5:57am

Awesome!

Thanks dio5!