WebsiteBaker Support (2.8.x) > Templates, Menus & Design

Remove search feature from Generic template

<< < (2/2)

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[&#39;SEARCH&#39;]; ?>" 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[&#39;LOGIN&#39;]; ?></h2>
<?php echo $TEXT[&#39;USERNAME&#39;]; ?>:
<input type="text" name="username" />
<?php echo $TEXT[&#39;PASSWORD&#39;]; ?>:
<input type="password" name="password" /><br /><br />
<input type="submit" name="submit" value="<?php echo $TEXT[&#39;LOGIN&#39;]; ?>" /><br />
<a href="<?php echo FORGOT_URL; ?>"><?php echo $TEXT[&#39;FORGOT_DETAILS&#39;]; ?></a>
<?php if(is_numeric(FRONTEND_SIGNUP)) { ?>
<a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT[&#39;SIGNUP&#39;]; ?></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[&#39;LOGGED_IN&#39;]; ?></h2>
<?php echo $TEXT[&#39;WELCOME_BACK&#39;]; ?>,<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[&#39;LOGOUT&#39;]; ?>" />

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