Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2010
    Posts
    74
    Plugin Contributions
    0

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

  2. #2
    Join Date
    May 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: opening a link in a new window

    nice site!

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default 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

 

 

Similar Threads

  1. v139d Opening all sidebox categories in a new window
    By 1066geoff in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Sep 2012, 07:32 PM

Posting Permissions

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