Jettrue,
Is there a way to remove or reduce the space that surrounds the template?
I would like to remove the space above the main nav and outside the left and right sideboxes. Can it be removed or reduced to a minimum value? I was looking for the obvious quick solution like (template spacing=1px). Can you point me in the right direction?
Thank you for taking the time to put together a wonderful template.
Dannie
MySite Link
To increase the width of the template, open up includes/templates/cherry_zen/templates/stylesheet.css and find the section that starts with:
/* site and main content width section */
and change the width of #nw.
The space at the top is controlled by the margin-top for body:
body {
font-family: "Lucida Grande", tahoma, verdana, arial, helvetica, sans-serif;
font-size:73.5%;
margin-top:20px;
}
hi jettrue;
i have the admin feature show cart after adding a product set to false so the customer stays on the product page, but the box that says "successfully added product to the cart... doesn't show anywhere. how can i get that box to show at the top of product page (middle column)?
thanks!
This is exactly what the template is designed to do (and works fine on my test site). Make sure that your includes/templates/cherry_zen/common/tpl_main_page.php still has this section (approx. line 77-91):
<div class="contentWrap">
<?php
// Display all header alerts via messageStack:
if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
}
if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
echo htmlspecialchars(urldecode($_GET['error_message']));
}
if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
echo htmlspecialchars($_GET['info_message']);
} else {
}
?>
yep it seems to be there. this is the code from lines 73-101. also when there is no item in the cart the side columns touch the nav bar (no gap). but when you add an item to the cart, it creates a small gap between the side columns and the nav bar... maybe that has something to do with it???
thanks!Code:/** * prepares and displays header output * */ if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) { $flag_disable_header = true; } require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?> <div id="contentMainWrapper"> <div id="contentMainWrapperb"> <div class="outer"> <div class="inner"> <div class="float-wrap"> <div id="content"> <div class="contentWrap"> <?php // Display all header alerts via messageStack: if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) { echo htmlspecialchars(urldecode($_GET['error_message'])); } if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) { echo htmlspecialchars($_GET['info_message']); } else { } ?>
Hi there, sorry to bother you again..
Just having a little issue with the shopping cart and specials sideboxes, the product names are displaying all in one line when the names are long and it is causing the side boxes to widen and then drop down below the main content. I am running 170px width and, since you helped me last time, it has been fine without hassle.
yep lines 387 to 390
weird huh?Code:// for all pages except where multiple add to cart is used: define('SUCCESS_ADDED_TO_CART_PRODUCT', 'Successfully added Product to the cart ...'); // only for where multiple add to cart is used: define('SUCCESS_ADDED_TO_CART_PRODUCTS', 'Successfully added selected Product(s) to the cart ...');