vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   CMS Section Titles (https://vborg.vbsupport.ru/showthread.php?t=272372)

MicheleJin88 10-19-2011 08:29 PM

CMS Section Titles
 
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.

HTML Code:

<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 [DATE]1319134563[/DATE] at [TIME]1319134563[/TIME] ---------------

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.

HTML Code:

<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!


All times are GMT. The time now is 11:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02766 seconds
  • Memory Usage 1,716KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete