
Originally Posted by
jamesHe
Hi clydjones,
I searched forum, find some has the same issue.
I referred his suggestion, add the new class in the stylesheet.css.
.bestsellersContent {
background-image:url(../images/sidebox_content_bg.gif);
margin-top: 0;
padding:0;
}
and change the /tpl_best_sellers.php.
from
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
to
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="bestsellersContent">' . "\n";
BUT it doesn't work, it still has a blank between the sidebox_content_bg.gif and sidebox_header_bg.gif.
Could you help me on this?
Thanks a lot.
try the following:
open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_best_sellers.php
replace the following code:
Code:
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<div class="wrapper">' . "\n" . '<ol>' . "\n";
for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
$content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
}
$content .= '</ol>' . "\n";
$content .= '</div>' . "\n";
$content .= '</div>';
with this:
Code:
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">' . "\n";
$content .= '<ol>' . "\n";
for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
$content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
}
$content .= '</ol>' . "\n";
$content .= '</div>';
Bookmarks