Topic RSS
Is there a way to remove the shopping cart in the header.php without the image and search re-aligning? I had tried:
<!–
<div class="sdl viewcarttop"><a href="<?php market_shopcart_link('thickbox'); ?>"><img src="<?php bloginfo('template_directory'); ?>/imgs/cart.gif"><?php echo mkt_THEME_HEADER_VIEW_SHOP_CART; ?></a>
–>
But it removed the color fill as well as moving the header image and search boxes.
Su, I was just working on this myself the other day. I agree that the CSS could use some tweaking here to make the header better laid out. The empty divs with clear:both is not good CSS form.
I made these edits to remove the shopping cart and search field in the header, and center my own header graphic. This may not be what you wanted to do, but if it is, feel free to take this code and use it.
First, I've changed header.php so that the "bar" div looks as follows:
<div id="bar">
<div class="barhead">
<div style="clear:both;"></div>
<div class="header"><a href="<?php bloginfo('url'); ?>" alt="<?php bloginfo('name'); ?> – <?php echo mkt_THEME_HEADER_NAV_HOME; ?>"><img src="<?php
if ($mkt_options['mktlogo'] != null) {
echo $mkt_options['mktlogo'];
} else {
bloginfo('template_directory');
echo '/imgs/logo.gif';
}
?>" alt="<?php bloginfo('name'); ?>" align="center" /></a>
</div> <!– close header div –>
<div class="sdl">
</div>
<div style="clear:both;"></div>
</div>
</div>
Then, I went to styles.css and changed the .header definition to add "text-align:center;" to it.
Hope this helps you too!
Thanks. I actually like the search in the header. I may play with it – did you determine a way to eliminate the Cart Tab? I don't see it under the pages. I really just want to disable the cart functions, and the tab, as I'm hopeful eventually someone will come up with a clean way to have both affiliate and direct sales.
Try this:
In your "header.php" file, find the following code at or around line #88:
</div>
Change this line to:
</div>
Save the file, and I think that should do it.
In the "header.php" file on or around line #118, you should see this:
<li><a href="<?php market_shopcart_link('thickbox'); ?>"><?php echo mkt_THEME_HEADER_NAV_VIEWCART; ?></a></li>
<!– End of "View Cart" menu option–>
Basically, just remove the middle line and save.
JHi
i have jsut followed the instructions above. I want to keep the search box and remove the cart and cart image.
However, following the instructions for line#118 removes teh search box and following the instructions for line #88 removes cart image cart function and the search box goes half way down the page.
Any suggestions?
Susan
Hi,
I would like to removet the view cart link and logo from the header but the code seems different in Ver4 from the above at line #88 and I'm afraid I don't know enough about coding to work it out myself.
Any help you can give greatly appreciated – as are all the other postings and help availalbe through this forum – thanks to all contributors.
Cheers,
Mark
Ok, for Market 4 versions, to remove them, just open your "header.php" file for editing.
To remove the view cart link in your menu area, remove line #129 where it says:
To remove the logo area, remove line #109 where it says:
Finally, to remove the top "view shopping cart" link change line #104 from this:
to this:
and save.
Most Users Ever Online: 40
Currently Online:
21 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Member Stats:
Guest Posters: 428
Members: 2252
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 2983
Posts: 16042
Newest Members: Allsed, deleteduser, shanm, slidesketch, jimharrison, vmi
Moderators: Market Admin (5051)
Administrators: Market Admin (5051)

Log In
Register
Home
Offline



