Zen Cart Logo
Forums / Basic Configuration / Customize Manufacturers Homepage Link

Customize Manufacturers Homepage Link

Locked

Views: 2,164

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
16 May 2006, 10:04 PM
#1
charlwillia6 avatar

charlwillia6

New Zenner

Join Date:
Jul 2005
Posts:
8
Plugin Contributions:
0

Customize Manufacturers Homepage Link

I want to customize the Manufacturer Homepage link that shows up in the Manufacturer Sidebox. I have checked out manufacture.php, and I don't know a lick of code, so if it is there, I have no idea where or how to change it.

I would just change the CSS of my template, but I don't want all the links to change, just the Homepage link that shows up in the Manufacture sidebox. I would like to adjust the size of the text used for that llink, because right now it is so big that it ends up being on two lines like this:

  • Micro-trak
    Homepage
  • Other Products

Any help would be much appreciated. Thank you.

17 May 2006, 2:00 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Customize Manufacturers Homepage Link

What you need to do is make an override copy of includes/templates/template_default/sideboxes/tpl_manufacturer_info.php, and edit this line of code to put your own distinct style class on the link:

$content .= '<li><a href="' . zen_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $manufacturer_info_sidebox->fields['manufacturers_id']) . '" target="_blank">' . sprintf(BOX_MANUFACTURER_INFO_HOMEPAGE, $manufacturer_info_sidebox->fields['manufacturers_name']) . '</a></li>' . "\n" ;

so it looks like this:

$content .= '<li><a class="myclass" href="' . zen_href_link(FILENAME_REDIRECT, 'action=manufacturer&manufacturers_id=' . $manufacturer_info_sidebox->fields['manufacturers_id']) . '" target="_blank">' . sprintf(BOX_MANUFACTURER_INFO_HOMEPAGE, $manufacturer_info_sidebox->fields['manufacturers_name']) . '</a></li>' . "\n" ;

Then just add your new class to the stylesheet