PDA

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.

kh99
07-05-2012, 01:31 PM
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 :(

kh99
07-09-2012, 08:47 PM
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?

kh99
07-09-2012, 11:01 PM
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