Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove Text Reference to "SIZE" Next to Add to Cart Area

Remove Text Reference to "SIZE" Next to Add to Cart Area

Locked

Views: 766

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
6 Mar 2009, 12:44 PM
#1
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Remove Text Reference to "SIZE" Next to Add to Cart Area

Does anyone know what code or even what file is generating the word 'Size' in all of my product pages right next to the drop down menu that already says 'Select Size'?

I'd really like to remove this 'Size' text to save space. I have a near cramped product page as it is and there's no need for this text but I cannot find the correct file.

Obviously, searching for Size in the Developers Tool Kit is like looking for a needle in a haystack... but can anyone tell from the page source where it's coming from please?

6 Mar 2009, 12:54 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Remove Text Reference to "SIZE" Next to Add to Cart Area

That is the attribute name you created when setting up the attribute
You would have to comment out this in a copy of tpl_modules_attributes.php

<h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>

Or you can find in your style sheet h4.optionName separate it into its own entry as follows:

h4.optionName {
display: none;
}
6 Mar 2009, 1:13 PM
#3
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Remove Text Reference to "SIZE" Next to Add to Cart Area

Thanks for that Kobra, I deleted that line from tpl_modules_attributes.php and it worked, but I chose the cleaner option and commented it out in stylesheet.css instead.

Both methods work perfectly :-)

6 Mar 2009, 5:59 PM
#4
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Remove Text Reference to "SIZE" Next to Add to Cart Area

Update:

When I use this:

h4.optionName {
display: none;
}

It also takes all of the text out of the login/checkout/account pages so I had to get rid of this statement from the stylesheet and opt for option 1 ( from tpl_modules_attributes.php........ comment out <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4 )

This does the trick, but hopefully it's not affecting anything else as well?