WebsiteBaker Support (2.8.x) > Templates, Menus & Design
Remove search feature from Generic template
kweitzel:
From the start to the end of that DIV ... maybe make a copy of the template first, so you don't loose everything in case you delete too much.
cheers
Klaus
Matto:
--- Quote from: kweitzel on April 09, 2008, 08:25:08 AM ---From the start to the end of that DIV ... maybe make a copy of the template first, so you don't loose everything in case you delete too much.
cheers
Klaus
--- End quote ---
Thanks, but that didn't seem to do the trick. I have posted the apparent code below that mentions the search bar and the login....
--- Code: ---<div id="content">
<div id="searchbar">
<?php if(SHOW_SEARCH) { /* Only show search box if search is enabled */ ?>
<h2>Search This Site</h2>
<!--<br />
Search: <br />-->
<form name="search" action="<?php echo WB_URL; ?>/search/index<?php echo PAGE_EXTENSION; ?>" method="post">
<input type="text" name="string" />
<input type="submit" value="<?php echo $TEXT['SEARCH']; ?>" id="submit" name="searchbutton" />
</form>
<br />
<?php } ?>
<?php page_content(); ?>
</div>
<div id="subcontent">
<?php
if(FRONTEND_LOGIN AND !$wb->is_authenticated()) {
?><br />
<form name="login" action="<?php echo LOGIN_URL; ?>" method="post">
<h2><?php echo $TEXT['LOGIN']; ?></h2>
<?php echo $TEXT['USERNAME']; ?>:
<input type="text" name="username" />
<?php echo $TEXT['PASSWORD']; ?>:
<input type="password" name="password" /><br /><br />
<input type="submit" name="submit" value="<?php echo $TEXT['LOGIN']; ?>" /><br />
<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT['FORGOT_DETAILS']; ?></a>
<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a>
<?php } ?>
</form>
<?php
} elseif(FRONTEND_LOGIN AND $wb->is_authenticated()) {
?>
<form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post">
<h2><?php echo $TEXT['LOGGED_IN']; ?></h2>
<?php echo $TEXT['WELCOME_BACK']; ?>,<br /> <a href="<?php echo PREFERENCES_URL; ?>">
<?php echo $wb->get_display_name(); ?></a><br /><br />
<input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" />
</form>
<?php
}
?>
</div>
</div>
--- End code ---
mickpage:
If it's the width of the page you are trying to reclaim then you need to look at the template's screen.css file as there are width settings in there:
#container{width:758px;..............
#content{float:left;width:530px;...............
#subcontent{float:right;width:168px;...............
If you are removing the searchbar and subcontent then you should be able to increase the #content width above 530px.
Matto:
--- Quote from: mickpage on April 09, 2008, 04:18:11 PM ---If it's the width of the page you are trying to reclaim then you need to look at the template's screen.css file as there are width settings in there:
#container{width:758px;..............
#content{float:left;width:530px;...............
#subcontent{float:right;width:168px;...............
If you are removing the searchbar and subcontent then you should be able to increase the #content width above 530px.
--- End quote ---
Thanks very much, I was able to reach a useful compromise for my site.
Navigation
[0] Message Index
[*] Previous page
Go to full version