-
AuthorPosts
-
December 10, 2008 at 4:00 pm #136127
I can not get rid of the reset to default and the search area with out detroying the header. What I want to do is remove all that and have a area that I can place my cart. Here is the header php code but just don’t know how and where to make this work. If some one could edit the code for me it would be much appreciated.
Thanks
MIke<!– BEGIN: HEADER –>
<div id=”ja-headerwrap”>
<div id=”ja-header” class=”clearfix”><div id=”ja-cpanel-tools”>
<div id=”ja-cpanel” >
<div id=”ja-usertools” class=”clearfix”>
<?php if ($tmpTools->getParam(‘usertool_color’)): ?>
<div id=”ja-usercolor” class=”clearfix”>
<span>CHANGE COLOR</span>
<?php $tmpTools->genToolMenu($tmpTools->getParam(‘usertool_color’), ‘gif’); ?>
</div>
<?php endif; ?><?php if ($tmpTools->getParam(‘usertool_layout’)): ?>
<div id=”ja-userlayout” class=”clearfix”>
<span>CHANGE LAYOUT</span>
<?php $tmpTools->genToolMenu($tmpTools->getParam(‘usertool_layout’), ‘gif’); ?>
</div>
<?php endif; ?><?php if ($tmpTools->getParam(‘usertool_font’)): ?>
<div id=”ja-userfont” class=”clearfix”>
<span>SET FONT SIZE </span><?php $tmpTools->genToolMenu($tmpTools->getParam(‘usertool_font’), ‘gif’); ?>
</div>
<?php endif; ?>
<a href=”#” id=”reset-default”><img style=”cursor: pointer;” src=”<?php echo $tmpTools->templateurl().”/images/reset-default.gif” ;?>” title=”” alt=”” onclick=”resetall();return false;”/></a>
</div>
</div>
<jdoc:include type=”modules” name=”ja-cpanel” style=”raw” />
</div><?php
$siteName = $tmpTools->sitename();
if ($tmpTools->getParam(‘logoType’)==’image’) { ?>
<h1 class=”logo”>
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $siteName; ?></span></a>
</h1>
<?php } else {
$logoText = (trim($tmpTools->getParam(‘logoText’))==”) ? $config->sitename : $tmpTools->getParam(‘logoText’);
$sloganText = (trim($tmpTools->getParam(‘sloganText’))==”) ? JText::_(‘SITE SLOGAN’) : $tmpTools->getParam(‘sloganText’); ?>
<div class=”logo-text”>
<h1>
<a href=”index.php” title=”<?php echo $siteName; ?>”><span><?php echo $logoText; ?></span></a>
</h1>
<p class=”site-slogan”><?php echo $sloganText;?></p>
</div>
<?php } ?><div id=”ja-search”>
<jdoc:include type=”modules” name=”user4″ style=”raw” />
</div></div>
</div>
<!– END: HEADER –>jay973 Friendjay973
- Join date:
- October 2008
- Posts:
- 401
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 28
- Thanked:
- 105 times in 68 posts
December 10, 2008 at 4:26 pm #282201I havent worked out the default button yet but you can disable the search module in module manager and then add
display:none;
to #ja-search in your template.css (line 1201)
Example:
#ja-search {template.css (line 1201)
background:transparent url(../images/search-form.png) no-repeat scroll left top;
display:none;
height:24px;
position:absolute;
right:0;
top:45px;
width:200px;
}That should sort out the search problem.
Hope this helps a bit,
Jason.
1 user says Thank You to jay973 for this useful post
jay973 Friendjay973
- Join date:
- October 2008
- Posts:
- 401
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 28
- Thanked:
- 105 times in 68 posts
December 10, 2008 at 6:50 pm #282243I’ve found a way to hide the ‘restore default’ button and everything else to do with the drop down panel,
1. Unpublish the ‘Customise your homepage’ module ( mod_ja-cpanel)
2. Replace (template.css line 1305)
a#reset-default {
display: block;
margin-left: 15px;
margin-top: 20px;
width: 100px;
}With this:
a#reset-default {
display: none;
margin-left: 15px;
margin-top: 20px;
width: 100px;
}This still leaves a small black line visible so:
3. Replace (template.css line 1262):
#ja-cpanel {
background:#151515 none repeat scroll 0 0;
border-bottom:1px solid #333333;
height:auto;
width:220px;
}with:
#ja-cpanel {
background: #151515;
width: 220px;
height: auto;
}Now this works OK in firefox but for IE7 you need to also need to:
Replace (template.css line 1242):
#ja-cpanel-tools {
color: #999999;
display: block;
font-size: 92%;
right: 0;
position: absolute;
width: 220px;
z-index: 100;
}with:
#ja-cpanel-tools {
color: #999999;
display: none;
font-size: 92%;
right: 0;
position: absolute;
width: 220px;
z-index: 100;
}Hopefully, that should do it. I’m not a css expert so this was all done by trial and error so please test and post if there are any problems.
December 10, 2008 at 8:12 pm #282259Thanks i will give it a try…
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by radmanmike 15 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum