Okay
  Public Ticket #2922791
How do I make the social icons open in a new tab?
Open

Comments

  • goodfolksmarketing started the conversation

    In Winwood Options, there is an option to add your social media links to display on the very top right of your webpage. Is there some additional CSS or a way to make those tabs open in a new window?

  •  1,992
    Opal replied

    Dear mate,

    Pls add the code below in file functions.php of theme or child theme then check again the issues.

    if ( ! function_exists( 'winwood_social' ) ) {
        function winwood_social() {
            $social_list = winwood_get_theme_option( 'social_text', [] );
            if ( is_array($social_list) && count( $social_list ) <= 0 ) {
                return;
            }
            ?>
            <div class="winwood-social">
                <?php esc_html_e( 'Follow Us', 'winwood' ); ?>
                <ul>
                    <?php
                    foreach ( $social_list as $social_item ) {
                        ?>
                        <li><a href="<?php echo esc_url( $social_item ); ?>" target="_blank"></a></li>
                        <?php
                    }
                    ?>
                </ul>
            </div>
            <?php
        }
    }
    

    Thanks.


    WpOpal Support Team

    We are located in GMT +7 time zone and we answer all questions within 12-48 hours in weekdays. In some rare cases the waiting time can be to 48 hours. Support tickets sent during weekends or public holidays will be processed next Monday or the next business day. 

    If you like our theme, Please vote it 5 stars. We are really really appreciate your vote :
    To vote go to http://themeforest.net/downloads then follow that link : Here

    Thanks and have a nice day

    Website: http://wpopal.com/ | Follow to Get Our Promotion Themes

  • goodfolksmarketing replied

    I tried to plug in the code to the file functions.php, but it didn’t work and gave me this Error: *see attachment*

    Attached files:  Screen Shot 2021-11-24 at 9.20.55 AM.png

  •  1,992
    Opal replied

    Dear mate,

    Pls send me the link admin site and info login admin site.

    We will check and update the code for you.

    Thanks.


    WpOpal Support Team

    We are located in GMT +7 time zone and we answer all questions within 12-48 hours in weekdays. In some rare cases the waiting time can be to 48 hours. Support tickets sent during weekends or public holidays will be processed next Monday or the next business day. 

    If you like our theme, Please vote it 5 stars. We are really really appreciate your vote :
    To vote go to http://themeforest.net/downloads then follow that link : Here

    Thanks and have a nice day

    Website: http://wpopal.com/ | Follow to Get Our Promotion Themes

  • goodfolksmarketing replied

    Our site isn’t accessible because it is on a private server. Is there anything else we can try?

  •  1,992
    Opal replied

    Dear mate,

    You can open file and edit code.

    Path: wp-content/themes/winwood/inc/template-functions.php

    Line 154

    <li><a href="<?php echo esc_url( $social_item ); ?>"></a></li>

    To 

    <li><a href="<?php echo esc_url( $social_item ); ?>" target="_blank"></a></li>
    

    Then check again the issues.

    Thanks.


    WpOpal Support Team

    We are located in GMT +7 time zone and we answer all questions within 12-48 hours in weekdays. In some rare cases the waiting time can be to 48 hours. Support tickets sent during weekends or public holidays will be processed next Monday or the next business day. 

    If you like our theme, Please vote it 5 stars. We are really really appreciate your vote :
    To vote go to http://themeforest.net/downloads then follow that link : Here

    Thanks and have a nice day

    Website: http://wpopal.com/ | Follow to Get Our Promotion Themes