View Full Version : Section Titles
fanhockeycoach
07-03-2012, 10:49 PM
Is there a way to hide the title of a section. I want a logo as the title. See http://www.fantasyhockeycoach.com/content.php?772-the-press-box I use the logo but then the section title 'The Press Box' seems redundant.
You could edit the template vbcms_content_section_page (in the VBulletin CMS Templates group) and add an <vb:if> around the title, something like this:
<vb:if condition="$nodeid != 772">
<span>{vb:raw title}</span>
</vb:if>
fanhockeycoach
07-09-2012, 07:50 PM
that didn't work :(
Hmm...I tested it before posting, so maybe we're talking about something different? I was thinking you wanted to remove the text "The Press box" that's between the lines, next to the RSS feed icon. Also, in the code I posted above the <vb:if> ... </vb:if> is meant to go around the existing "<span>{vb:raw title}</span>" line, in case that wasn't clear.
fanhockeycoach
07-09-2012, 09:58 PM
Now it works, thanks. Just needed the right placement
--------------- Added 1341875132 at 1341875132 ---------------
do i need to put that in multiple times if I have multiple pages I want to do this for?
If you have a list of node ids, you could change the if tag to this:
<vb:if condition="!in_array($nodeid, array(1, 2, 3, ...))">
where you would of course change 1, 2, 3,.. to your list.
fanhockeycoach
07-11-2012, 05:40 PM
AWESOME that worked! Thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.