Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Changing the CSS for the Category link in tpl_product_info_display.php

Changing the CSS for the Category link in tpl_product_info_display.php

Locked

Views: 1,272

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
4 Mar 2008, 7:05 AM
#1
bugyoutoo avatar

bugyoutoo

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

Changing the CSS for the Category link in tpl_product_info_display.php

I'd like to change the font/css of the Category link when visitors view items. I know the template is in tpl_product_info_display.php, but the span class I wrap around the beginning of and end of the Category Icon doesn't work. Also, I changed the category_icon default CSS to no avail as well.

Those are the two best steps a beginner can take, now I need some guidance from an expert please!

An example of what I tried:

<!--bof Category Icon --><span class="pinfocategory">
<?php if ($module_show_categories != 0) {?>
<?php
/**
 * display the category icons
 */
require($template->get_template_dir('/tpl_modules_category_icon_display.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_category_icon_display.php'); ?>
<?php } ?></span>
<!--eof Category Icon -->
4 Mar 2008, 7:17 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Changing the CSS for the Category link in tpl_product_info_display.php

I'd like to change the font/css of the Category link when visitors view items.
Got no idea what you are trying to do...
Explain what you want to happen/appear like

4 Mar 2008, 7:42 AM
#3
bugyoutoo avatar

bugyoutoo

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

Re: Changing the CSS for the Category link in tpl_product_info_display.php

kobra:

Got no idea what you are trying to do...
Explain what you want to happen/appear like

http://www.thuyvancollection.com/index.php?main_page=product_info&cPath=1_13&products_id=24

For product info display, I'd like to change the category link that's shown at the top left corner. Currently, the link is using the regular A: link for regular text on my site, and I'd like to make it bolder to stand out.

4 Mar 2008, 10:32 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Changing the CSS for the Category link in tpl_product_info_display.php

The php files is should not be your first plan for most of this...

Try finding this and adding the following additions to your stylesheet and adjust as you want

.categoryIcon a{
	color: #FF66FF;
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
	font: Arial, Helvetica, sans-serif
        }
4 Mar 2008, 4:57 PM
#5
bugyoutoo avatar

bugyoutoo

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

Re: Changing the CSS for the Category link in tpl_product_info_display.php

Great thanks that worked just fine. I had forgotten about the "A" code for the links! :clap: