Guglielmo Corvetti
asked 7 years ago

Hi there,
I still use DW Minion for my website/blog, but I have a problem with social links, I want the link open in a new tab, or new page, because I want visitors stay with page open of website when they visiting social pages. How can I do it ?
Thanks in advanced

1 Answers
DominicStaff
answered 7 years ago

Hi,

To resolve this issue, you can open the wp-content > themes > dw-minion > inc > extras.php file and find the line 265 to line 269 then replace the following code:

<?php if($social_links['facebook']!='') { ?><li class="social"><a href="<?php echo $social_links['facebook']; ?>"><i class="icon-facebook"></i></a></li><?php } ?>
<?php if($social_links['twitter']!='') { ?><li class="social"><a href="<?php echo $social_links['twitter']; ?>"><i class="icon-twitter"></i></a></li><?php } ?>
<?php if($social_links['google_plus']!='') { ?><li class="social"><a href="<?php echo $social_links['google_plus']; ?>"><i class="icon-google-plus"></i></a></li><?php } ?>
<?php if($social_links['youtube']!='') { ?><li class="social"><a href="<?php echo $social_links['youtube']; ?>"><i class="icon-youtube"></i></a></li><?php } ?>
<?php if($social_links['linkedin']!='') { ?><li class="social"><a href="<?php echo $social_links['linkedin']; ?>"><i class="icon-linkedin"></i></a></li><?php } ?>

With new code:

 <?php if($social_links['facebook']!='') { ?><li class="social"><a href="<?php echo $social_links['facebook']; ?>" target="_blank"><i class="icon-facebook"></i></a></li><?php } ?>
<?php if($social_links['twitter']!='') { ?><li class="social"><a href="<?php echo $social_links['twitter']; ?>" target="_blank"><i class="icon-twitter"></i></a></li><?php } ?>
<?php if($social_links['google_plus']!='') { ?><li class="social"><a href="<?php echo $social_links['google_plus']; ?>" target="_blank"><i class="icon-google-plus"></i></a></li><?php } ?>
<?php if($social_links['youtube']!='') { ?><li class="social"><a href="<?php echo $social_links['youtube']; ?>" target="_blank"><i class="icon-youtube"></i></a></li><?php } ?>
<?php if($social_links['linkedin']!='') { ?><li class="social"><a href="<?php echo $social_links['linkedin']; ?>" target="_blank"><i class="icon-linkedin"></i></a></li><?php } ?>

Hope this helps !

Powered by DW Question & Answer Pro