Home Forums Travel WordPress Theme opening socila networks on a new tab

This topic contains 7 replies, has 2 voices, and was last updated by  friemanr 3 years, 10 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #692

    friemanr
    Participant

    Hi
    I would like that when someone click on the Social media icon it will open in a new tab and not on the same page.

    site – travelers4u.com

    Ronen

    #693

    Johnny
    Participant

    hi, please open file functions/include_socialicon.php, add attribute target=”_blank” to all a tags,
    good luck

    #695

    friemanr
    Participant

    sorry cant find the file
    can I do it from the WP admin? in the editor?

    Ronen

    #697

    Johnny
    Participant

    yes, in the editor.

    #712

    friemanr
    Participant

    this are the options I have in the editor
    Templates

    404 Template
    (404.php)

    Archives
    (archive.php)

    Comments
    (comments.php)

    Footer
    (footer.php)

    include_block.php
    include_custom_style.php
    metabox.php
    shortcodes.php
    Theme Functions
    (functions.php)
    Header
    (header.php)

    Main Index Template
    (index.php)

    comments-ajax.php
    wp-auth-ajax.php
    wp-logout-ajax.php
    options.php
    Page Template
    (page.php)

    Search Results
    (search.php)

    Single Post
    (single.php)

    #714

    Johnny
    Participant

    hi, please use ftp download your functions/include_socialicon.php and send to me: sweethome.shanghai[at]gmail.com, I will modify it and send you back,
    thanks

    #721

    friemanr
    Participant

    I have used the ftp
    1. there is no file that is called – include_socialicon.php
    2. if you say this file does exists can you give me the path to this file?

    #722

    friemanr
    Participant

    sorry!!!
    I had an older version of the template
    Installed the new one and found the file
    where should I add the attribute target=”_blank”

    <?php if(of_get_option(‘facebook-link’)){ ?>” title=”<?php _e(‘Visit Facebook page’,’ux’); ?>”><span></span><?php } ?>

    Ronen

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

You must be logged in to reply to this topic.