Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / Change style of product names in special listing?

Change style of product names in special listing?

Locked

Started by flix on 4 Mar 2010, 10:42 AM · Views: 3,410

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
4 Mar 2010, 10:42 AM
#1
flix avatar

flix

New Zenner

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

Post #1 by flix

I am torturing myself for days now. Maybe one of you has an idea how to solve that:

GOAL 1:
I want to change the font style of product name links in the** normal products listing**.

GOAL 2:
I want to change the font style of product name links in the specials listing.

PRECONDITION:
I do not want to change the font style of all my links in the cart. Only the links in the above mentioned listings.

GOAL 1 is pretty easy to achieve: You just define your new link style in the css stylesheet (/includes/templates/YOUR_TEMPLATE/css) e.g. as follows:

a.other_style:link {
color:#052b62;
text-decoration:none;
font-weight:normal;
}

a.other_style:visited {
color:#111111;
text-decoration:none;
font-weight:normal;
}

Then, you go and change the template product_listing.php (/includes/modules/YOUR_TEMPLATE) as follows:

Before change:
$lc_text = '<h3 class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']),....

After change:
$lc_text = '<h3 class="itemTitle"><a class="other_style" href="' . zen_href_link(zen_get_info_page($listing->fields['products_id']),....

For GOAL 2 I would like to do exactly the same for the special products listing, but I am just not able to find the file/template with the <a href="....> tag.

Does anybody have a clue in which file the the product name links for the specials listing are defined?????

By the way: Changing the style of the h3 tag seems to have absolutely no impact on my special products listing?!?!?!!?

5 Mar 2010, 1:29 PM
#2
flix avatar

flix

New Zenner

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

Post #2 by flix

Yessss!!!!!!!!!!!! I found it:

You can change any styles of the specials listings in the following two files:

includes/modules/pages/specials/main_template_vars.php

and

includes/modules/free_blue/specials_index.php

Was this not interesting for anybody out there???

5 Mar 2010, 2:17 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Post #3 by gjh42

You don't need to change any PHP files for this. You can specify the links under any particular section with the classes built in, such as this:

<h3 class="itemTitle"><a href=

.itemTitle a {your: style;}

Read up on "descendant selectors", and use the Firefox Web Developer or Firebug tools to help you find relevant classes/ids quickly.