Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #18716

    THEME: Choices V1.50

    RE: Want partner logos to open in new window

    CLOSEST FIND IN BLOG: http://www.kriesi.at/support/topic/logopartner-list-open-in-new-tab

    Great work you are doing.

    QUESTION: I would like my partner logos (how ever many I chose to load) to open in a new window.

    I am very basic in code skills (or lack there of) but I do know that I must place the ‘target=’_blank’ in .php.

    Please could you supply me with the text where I can copy and replace it as well as the name of the document.

    I found the above link but it was for another theme.

    Thanking you in advance

    Andrew

    #100583

    Hi,

    Open framework > php > function-set-avia-frontend.php and find this code

    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a href='".home_url('/')."'>".$logo."$sub</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    if($use_image) $logo = "<img src=".$use_image." alt='' title='$logo'/>";
    $logo = "<h1 class='logo bg-logo'><a href='".home_url('/')."'>".$logo."$sub</a></h1>";
    }

    Regards,

    Ismael

    #100584

    Thanks Ismael

    Would I copy and past that in order for it to work? If note, please could you supply the code for it to work so that I could copy and paste.

    Thank you for the speedy reply.

    Regards

    Andrew

    #100585

    Find the code Ismael posted above and replace it with:

    if($logo = avia_get_option('logo'))
    {
    $logo = "<img src=".$logo." alt='' />";
    $logo = "<h1 class='logo'><a target='_blank' href='".home_url('/')."'>".$logo."$sub</a></h1>";
    }
    else
    {
    $logo = get_bloginfo('name');
    if($use_image) $logo = "<img src=".$use_image." alt='' title='$logo'/>";
    $logo = "<h1 class='logo bg-logo'><a target='_blank' href='".home_url('/')."'>".$logo."$sub</a></h1>";
    }

    #100586

    Did as instructed – found text and replaced with yours.

    Cleared cache, reloaded page.

    When I click on the partner logo on the Home / Front Page it does not open the partner URL in a new window.

    Please advise.

    Thank you

    #100587

    I’m sorry – I didn’t read the question carefully enough. Ismael’s code suggestion is totally wrong in this case. Revert the change I posted above, open up choices/includes/helper-template-dynamic.php and replace following line:

    $img = "<a href='".$set['link']."' title=''>$img</a>";

    with:

    $img = "<a target='_blank' href='".$set['link']."' title=''>$img</a>";

    #100588

    It works !!!

    Thank you Dude

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Chioces Theme: Partner logo open in new page’ is closed to new replies.