• Resolved patowins

    (@patowins)


    If anyone needs this.

    I changed the target to social media icons in the header and footer .

    Adding the attribute: target=”_blank”

    IsleMag: Theme Header (header.php)

    <div class="navbar-left social-icons">
                        <?php
                            $islemag_social_icons = get_theme_mod('islemag_social_icons');
    
                            if( !empty( $islemag_social_icons ) ){
                                $islemag_social_icons_decode = json_decode( $islemag_social_icons );
                                if( !empty( $islemag_social_icons_decode ) ){
                                    foreach( $islemag_social_icons_decode as $icon ){
                                        if( !empty( $icon->icon_value ) )
                                        echo '<a '.( empty( $icon->link ) ? '' : 'href="'. esc_url( $icon->link ).'"' ).' class="social-icon" target="_blank"><i class="fa '.esc_attr( $icon->icon_value ).'"></i></a>';
                                    }
                                }
                            }
                        ?>
                    </div>

    IsleMag: Theme Footer (footer.php)

    <div class="footer-social-icons">
    							<?php
    									if( !empty( $islemag_footer_social_icons ) ){
    			                            $islemag_footer_social_icons_decode = json_decode( $islemag_footer_social_icons );
    			                            if( !empty( $islemag_footer_social_icons_decode ) ){
    			                                foreach( $islemag_footer_social_icons_decode as $icon ){
    			                                    if( !empty( $icon->icon_value ) )
    			                                    echo '<a '.( empty( $icon->link ) ? '' : 'href="'. esc_url( $icon->link ).'"' ).' class="footer-social-icon" target="_blank"><i class="fa '.esc_attr( $icon->icon_value ).'"></i></a>';
    			                                }
    			                            }
    			                        }
    							?>
    							</div><!-- .footer-social-icons -->

    Goodbye and thank you for this beautiful theme!

  • The topic ‘Target Social Icon’ is closed to new replies.