View Full Version : CMS Section Titles
MicheleJin88
10-19-2011, 08:29 PM
My first post, but I've already found tons of useful information here. Thanks in advance for your advice.
How can I get rid of the title on the main section page (default title = THE FRONT PAGE) while leaving titles on subsection and category pages?
Lynne
10-20-2011, 01:45 AM
Have you thought of how you will edit that section if you remove the section name? Exactly what do you want that page to look like and where are you going to put the edit pencil?
MicheleJin88
10-20-2011, 03:38 PM
I don't need an edit pencil. I can just add "/edit" to the URL when I'm logged in as administrator.
I want the page to look like whatever layout I'm using, just with no "THE FRONT PAGE" above my first article headline.
Thanks for your help!
Lynne
10-20-2011, 04:00 PM
How about just writing some CSS.... if on home page, set div.title to display:none? Just add it to the bottom of the headinclude template. Change 1-home-page to the correct name for your site.
<vb:if condition="$_GET['r'] == '1-home-page' OR !$_GET['r']"><style type="text/css">
div.title { display:none;}
</style></vb:if>
MicheleJin88
10-20-2011, 04:05 PM
I'll try it. Thanks so much!!
--------------- Added 1319134563 at 1319134563 ---------------
It almost worked, but it also got rid of the content titles.
Lynne
10-20-2011, 04:34 PM
Then just set those to still show.
<vb:if condition="$_GET['r'] == '1-home-page' OR !$_GET['r']"><style type="text/css">
div.title { display:none;}
#section_content div.title { display:inline;}
</style></vb:if>
MicheleJin88
10-20-2011, 04:37 PM
Fixed. Thanks a million!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.