Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2005
    Posts
    12
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2004
    Location
    Rocky Mountains, Colorado
    Posts
    2,936
    Plugin Contributions
    5

    Default 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:
    Code:
    $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:
    Code:
    $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
    Neville
    An assumption is what you arrive at when you get tired of thinking...
    www.customcartmods.com

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •