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.
Re: Removing Name under "Section Image"
http://www.hextasy.com/temp/test.jpg
this is the product display page for one of the products i wish to sell, i want to get rid of the text under the bracelet image. when you run the mouse over the text it highlights the image and the text as a link. i just need the image as the link and to get rid of the text, hope this helps explain what i'm raving on about
Re: Removing Name under "Section Image"
I need to see the page live; a screenshot doesn't help in fixing this.
Re: Removing Name under "Section Image"
I was hoping for something better, but this is exactly the same difficulty as the previous question: there is no identifier to be able to address the text independently.
You will need to edit /includes/templates/your_template/templates/tpl_modules_category_icon_display.php
PHP Code:
require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORY_ICON_DISPLAY));
?>
<div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $_GET['cPath'], 'NONSSL') . '">' . $category_icon_display_image . $category_icon_display_name . '</a>'; ?></div>
Change
$category_icon_display_name . '</a>';
to
'<span class="categoryIconText">' . $category_icon_display_name . '</span></a>';
PHP Code:
require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORY_ICON_DISPLAY));
?>
<div align="<?php echo $align; ?>" id="categoryIcon" class="categoryIcon"><?php echo '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $_GET['cPath'], 'NONSSL') . '">' . $category_icon_display_image . '<span class="categoryIconText">' . $category_icon_display_name . '</span></a>'; ?></div>
and add to your stylesheet
Code:
.categoryIconText {display: none;}
Re: Removing Name under "Section Image"
oh that's brilliant Glen! thanks SO much for your help, it's been greatly appreciated.
Re: Removing Name under "Section Image"
Hey this is great and is just what I wanted, However the same problem still exists with the subcategory icons and links so the same question applies how do i remove the subcategory text links?
Thanks
Tony
Re: Removing Name under "Section Image"
Post 7 answers what you asked; if you meant something other than the category listing which shows subcategory images and names, please explain further, with a way to see your site live.