Forums / Templates, Stylesheets, Page Layout / opening a link in a new window

opening a link in a new window

Locked

Views: 568

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 May 2010, 3:15 PM
#1
artifaxworthing avatar

artifaxworthing

New Zenner

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

opening a link in a new window

Hi thank you to all that have helped with this dreaded link sidebox we have now cracked it !! now we need these links to open in a separate window so you do not navigate away from our site

thank you for the code target="_blank" but we are unsure where it needs to go we have tried putting it in a few places but either get another line of text with that wording or we loose everything again here is the line of text we think it goes into but where?

$logoimage = '<a href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT). '</a>';

(this code is from tpl_logo_sidebox2.tpl)

25 May 2010, 3:17 PM
#2
gerrivelasquez avatar

gerrivelasquez

New Zenner

Join Date:
May 2010
Posts:
1
Plugin Contributions:
0

Re: opening a link in a new window

nice site!

25 May 2010, 6:53 PM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: opening a link in a new window

Try:

$logoimage = '<a target="_blank" href="' . LOGO_SIDEBOX2_LINK . '">' . zen_image($template->get_template_dir(LOGO_SIDEBOX2_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . LOGO_SIDEBOX2_IMAGE, LOGO_SIDEBOX2_IMAGE_TEXT). '</a>';

20 years a Zencart User