But it removed the color fill as well as moving the header image and search boxes.
2:29 pm October 17, 2009
scormeny
Member
posts 8
2
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:
Then, I went to styles.css and changed the .header definition to add "text-align:center;" to it.
Hope this helps you too!
2:40 pm October 18, 2009
Su
Member
posts 33
3
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.
2:25 pm October 19, 2009
Market Admin
Admin
posts 4756
4
Try this:
In your "header.php" file, find the following code at or around line #88:
Beautiful, that did it. Is there a way to hide the cart tab too?
3:22 pm October 21, 2009
Market Admin
Admin
posts 4756
6
In the "header.php" file on or around line #118, you should see this:
<!– The following line adds a "View Cart" link to the navigation menu. You may remove it if you don't want it shown –> <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.
5:17 pm October 21, 2009
Su
Member
posts 33
7
Wonderful-Thank you.
11:37 pm November 26, 2009
Warnold
Australia
Member
posts 99
8
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
9:02 am July 22, 2010
asiascouts
New Member
posts 1
9
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
10:33 am July 22, 2010
Market Admin
Admin
posts 4756
10
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: