• Hi Guys,

    I found this topic as a solution for my issue:

    http://wordpress.org/support/topic/how-to-open-links-to-social-media-in-new-windowtab?replies=9

    but unfortunately I couldn’t find the right .php file to edit it

    here is the website www . the royal music academy . com

    I think I need to add target=”_blank” to the header.php file but the structure is not the same as the example in that link.

    Here is what I have in header.php

    <div class="container">
    
                <div class="eight columns">
    
                    <div class="call-phone">
                        <i class="icon-phone"></i><span><?php echo slicetheme_option('interface_callus_phone'); ?></span>
                    </div>
                    <div class="call-mail">
                        <i class="icon-envelope"></i><span><a href="mailto:<?php echo slicetheme_option('interface_callus_email'); ?>"><?php echo slicetheme_option('interface_callus_email'); ?></a></span>
                    </div>
    
                </div>
    
                <div class="eight columns far-edge">
                    <?php slicetheme_socials(); ?>
                </div>
    
            </div>

    I found this code in st_functions.php

    function slicetheme_socials()
    {
    	$args = array('soc_facebook', 'soc_google', 'soc_twitter', 'soc_youtube', 'soc_vimeo', 'soc_flickr', 'soc_dribbble', 'soc_linkedin', 'soc_pinterest');
    
    	$socials = slicetheme_option($args);
    
    	$out = '[social]';
    	foreach ($socials as $key => $social) {
    		$name = str_replace('soc_', '', $key);
    		if ( !empty($social) )
    			$out.= '[item type="'.$name.'"]'.$social.'[/item]'."\n";
    	}
    	$out.= '[item type="RSS"]'.slicetheme_option('soc_rss', get_bloginfo('rss2_url')).'[/item]'."\n";
    	$out.= '[/social]';
    
    	echo do_shortcode($out);
    }

    and this in functions_options.php

    //Social Settings
    		$of_options[] = array(	"name" => "Social Settings",
    								"type" => "heading");
    
    								$of_options[] = array(	"name" => "Facebook URL",
    														"desc" => "Enter the url to your facebook page.",
    														"id" => "soc_facebook",
    														"type" => "text");
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to open links to social media in new window/tab?’ is closed to new replies.