Remove search feature from Generic template

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.
Thanks very much, I was able to reach a useful compromise for my site.

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

#7
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
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....
<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>

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:22:30 AM
The generic template is a 2 column template. Not only the searchbox is there, but also the Login Box. You will have to edit the HTML code of the template.

Look for everything enclosed by the DIV "subcontent".

cheers

Klaus
Thanks. Should I just remove the subcontent portion of the code?

Matto

Thanks, I have some knowledge of HTML. Could you elaborate on the specific code in question please?

kweitzel

The generic template is a 2 column template. Not only the searchbox is there, but also the Login Box. You will have to edit the HTML code of the template.

Look for everything enclosed by the DIV "subcontent".

cheers

Klaus

doc

Hello,

have a look in the index.php file of the template. You need some knowledge of HTML to achieve what you want.

Regards Christian

Matto

Hi. I use the Generic template and I like it a lot. But I when I disable the search feature I find that the real estate it uses is still unavailable, as if the search is just invisible but still taking up the space. How can I reclaim this screen space please?

Thanks in advance to anyone who may be able to advise me.  :-)