Re: Newby needs to costumize
"remove the main header bar where the logo and stuff is, I have no need for this part of the header."
I tried this with the change logo tutorial editing the header.php file but could not get rid of everything completely, should I just delete the file all together?
Re: Newby needs to costumize
ok, well, deleting it didn't work. back to square one, restored the file, will wait for replies.
Re: Newby needs to costumize
To turn the header off, edit /includes/templates/your_template/common/tpl_main_page.php and follow the instructions in the comments.
PHP Code:
$flag_display_header = false;
Re: Newby needs to costumize
great! thanks for the quick reply. I did not have this file in my common directory, in fact my common directory is empty.
I copied the file over to my common directory. It says to copy it to
"templates/your_template_dir/pagename" is that the same as adding it to the common directory? I looked in the source code for $flag_display_header = true; but did not find it. Do I just add $flag_display_header = false; somehere?
It also says to edit the tpl_header.php to disable the header. I tried to add the code there after adding the file to my common folder but nothing happened.
Maybe what I am missing is where it says to "uncomment the following line" I am not sure what that means. Can you explain.
Sorry, thank you so much for your help so far.
Re: Newby needs to costumize
Do I just add $flag_display_header = false; somehere?
Correct. Add it somewhere inside the php tags but not within the comment section. That is all you really need to do.
And since you want the header gone sitewide, you would copy the file into /your_template/common/. The /your_template_dir/pagename/ is for making the change only on a specific pagename.
Re: Newby needs to costumize
Doesn't seem to be working... ?
Re: Newby needs to costumize
Post the section of the file where you added that line (and a few lines before & after for context) so we can see if you did it right.
Re: Newby needs to costumize
Ok Here it is:
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes _on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
$flag_display_header = false;
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<?php
if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) {
if ($banner->RecordCount() > 0) {
Re: Newby needs to costumize
Oof... I was thinking "display header" when I said to use "false". You need "disable header" to be true.