Forums / Templates, Stylesheets, Page Layout / Removing Name under "Section Image"

Removing Name under "Section Image"

Views: 1,742

Results 1 to 16 of 16
21 Feb 2010, 3:32 PM
#1
fett avatar

fett

New Zenner

Join Date:
Feb 2010
Posts:
55
Plugin Contributions:
0

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?

21 Feb 2010, 3:46 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Removing Name under "Section Image"

Where can this be seen?

Zen-Venom Get Bitten

21 Feb 2010, 5:57 PM
#3
fett avatar

fett

New Zenner

Join Date:
Feb 2010
Posts:
55
Plugin Contributions:
0

Re: Removing Name under "Section Image"

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.

23 Feb 2010, 12:57 AM
#4
fett avatar

fett

New Zenner

Join Date:
Feb 2010
Posts:
55
Plugin Contributions:
0

Re: Removing Name under "Section Image"

So, does anyone know what I'm talking about or can help me out with suggestions?

Please? :lamo:

23 Feb 2010, 1:44 AM
#6
fett avatar

fett

New Zenner

Join Date:
Feb 2010
Posts:
55
Plugin Contributions:
0

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.

I want the text gone from all categories and sub-categories.

23 Feb 2010, 2:11 AM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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
$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>');


<span class="catListingName"> </span>

near the end to get```php
    $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```
.catListingName {display:none;}
23 Feb 2010, 4:30 AM
#8
fett avatar

fett

New Zenner

Join Date:
Feb 2010
Posts:
55
Plugin Contributions:
0

Re: Removing Name under "Section Image"

PERFECT!

I am totally digging Zen Cart! Woo! Thanks so much!!! Works perfectly!

2 Mar 2010, 1:43 AM
#9
sinsister avatar

sinsister

New Zenner

Join Date:
Nov 2006
Posts:
22
Plugin Contributions:
0

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!

2 Mar 2010, 2:32 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.

2 Mar 2010, 2:42 AM
#11
sinsister avatar

sinsister

New Zenner

Join Date:
Nov 2006
Posts:
22
Plugin Contributions:
0

Re: Removing Name under "Section Image"

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

2 Mar 2010, 5:41 AM
#13
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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
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>';

  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```
.categoryIconText {display: none;}
2 Mar 2010, 6:08 AM
#14
sinsister avatar

sinsister

New Zenner

Join Date:
Nov 2006
Posts:
22
Plugin Contributions:
0

Re: Removing Name under "Section Image"

oh that's brilliant Glen! thanks SO much for your help, it's been greatly appreciated.

17 Aug 2011, 1:00 PM
#15
tonyb6 avatar

tonyb6

New Zenner

Join Date:
Mar 2010
Posts:
77
Plugin Contributions:
0

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

17 Aug 2011, 3:01 PM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

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.