Removing Name under "Section Image"
I'm using images to direct people to locations of my site, and under those images is the text which is the same text on the left side column.
Is there a way to remove the text (just for the product sections) without removing the text on the left side column?
Re: Removing Name under "Section Image"
Re: Removing Name under "Section Image"
Quote:
Originally Posted by
kobra
Where can this be seen?
Link in your PM box Kobra. The site isn't linked to the public yet, so I don't want many on it. ;-)
Feel free to post the reply out here however should you have a solution.
Re: Removing Name under "Section Image"
So, does anyone know what I'm talking about or can help me out with suggestions?
Please? :lamo:
Re: Removing Name under "Section Image"
Your original description is too vague to answer. How are you getting these image links? Are they categories? Or what?
Re: Removing Name under "Section Image"
Sorry, I thought it was clear... I think from now on, I'll just include pictures. :wink:
Here's the section of the site that I'm not liking.
The big bold years are the images, and the text under them each is what I want gone - BUT, I still want the text to appear on the left-side column.
http://img62.imageshack.us/img62/2348/new1dm.jpg
I want the text gone from all categories and sub-categories.
Re: Removing Name under "Section Image"
"using images to direct people to locations of my site" sounds like something other than product categories, so I wasn't sure if you had some custom code going.
The category listing does not have a way to single out the name under the image; you will have to edit /includes/modules/your_template/category_row.php. Find this
PHP Code:
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
and add
<span class="catListingName"> </span>
near the end to get
PHP Code:
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<span class="catListingName"><br />' . $categories->fields['categories_name'] . '</span></a>');
Add to your stylesheet
Code:
.catListingName {display:none;}
Re: Removing Name under "Section Image"
PERFECT!
I am totally digging Zen Cart! Woo! Thanks so much!!! Works perfectly!
Re: Removing Name under "Section Image"
hi, i'm having a similar problem however the solution here fixed the issue i had with text displaying underneath the category images.
my next issue is how do i get rid of the text under the product information page which is located within the category?
any help much appreciated!
Re: Removing Name under "Section Image"
under the product information page?
Do you mean at the bottom of the product info page (with details of a single product)? If not, which page are you referring to, and what text? A link to see it live will let us give correct answers instead of guessing.