• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 2.0 Looking for this...


Previously Cylent1
This dont work in xf2.
I seen a post somewhere with the correct way for xf2, but cant find it anymore..
javascript:(function() {XenForo.alert($('#content').attr('class'), '', 5000);}())
Any hel is much appreciated!

Chris D

XenForo developer
Staff member
Is this a bookmarklet to display the current page template name?

If so, this is the recommended approach in XF2:

javascript:(function(){XF.flashMessage($('html').data('template'), 3000)}())