Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1581318
Open link in new window
Closed

Comments

  • tonyrolfe69 started the conversation

    Hi there,

    I would like it so that when someone presses the customer login button at the top of the screen that the link opens in a blank widow.

    Could you let me know how I can do this?

    Thanks

    Tony

  •  7,280
    Oliver replied

    Hi,

    Copy file: 

    /wp-content/themes/thegem/top_area.php

    to the child theme and change there line 20 to:

    <div class="top-area-button"><?php thegem_button(array('href' => thegem_get_option('top_area_button_link'), 'text' => thegem_get_option('top_area_button_text'), 'size' => 'tiny', 'no-uppercase' => true), true); ?></div>
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • tonyrolfe69 replied

    Hi,

    Thanks for this. I have done as you have suggested but nothing has changed. Also, the code you have asked me to add looks exactly the same as the code I have replaced?

    Thanks

    Tony

  •  7,280
    Oliver replied

    Hi,

    Sorry, my bad, didn't copy the code, use this:

    <div class="top-area-button"><?php thegem_button(array('href' => thegem_get_option('top_area_button_link'), 'text' => thegem_get_option('top_area_button_text'), 'size' => 'tiny', 'target' => '_blank', 'no-uppercase' => true), true); ?></div>
    

    I added 

    'target' => '_blank',


    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver