Quote Originally Posted by jill8026 View Post
I feel like an idiot that I cannot get this to work...trying to get my image to link (got the image in fine..), I have looked through the forums and cannot see anything I am doing wrong!!!

Here is my logo_sidebox_defines code:

define('BOX_HEADING_LOGO_SIDEBOX', 'test');
define('LOGO_SIDEBOX_IMAGE_WIDTH', '150');
define('LOGO_SIDEBOX_IMAGE_HEIGHT', '200');
define('LOGO_SIDEBOX_IMAGE', 'bumper_sticker_ad.jpg');
define('LOGO_SIDEBOX_IMAGE_TEXT', 'test');

//this is optional if you want to use the logo as a link
//replace your_link.com with the link you choose
define('LOGO_SIDEBOX_LINK', 'http://www.andrealevinedesigns.com/pet-bumper-sticker/');

?>

...and here is the tpl_logo_sidebox code:

// Link Option - uncomment this if you intend to use the logo as a link

$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT) . '</a>';

//comment this out if you use the above link option.
//$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT, LOGO_SIDEBOX_IMAGE_WIDTH, LOGO_SIDEBOX_IMAGE_HEIGHT);

$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';

$content .= $logoimage;

$content .= '</div>';
?>

..the site is http://www.andrealevinedesigns.com and the you can see the banner in the lower left....what am I missing to get the link to work to go to the product?!?!?

Thank you in advance!!!!!!!

Jill
how do I add a hyper-link:
Open includes/languages/english/extra_definitions/logo_sidebox_defines.php
Change the highlighted portion to suit you needs.

define('LOGO_SIDEBOX_LINK', 'http://your_link.com/');

Now open includes/templates/YOUR_TEMPLATE/sideboxes/tpl_logo_sidebox.php

uncomment this line of code: remove the highlighted portion
//$logoimage = '<a href="' . LOGO_SIDEBOX_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT) . '</a>';

comment out this line of code: add the highlighted portion
//$logoimage = zen_image($template->get_template_dir(LOGO_SIDEBOX_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX_IMAGE, LOGO_SIDEBOX_IMAGE_TEXT);


Save everything and upload to your server.
##############################___
Clyde
Check and make sure all your files are uploading to your server and they are in your custom folders.