Hi there,
I´d like to open the default RSS feed link that I added to my header (Header Layout > Social Icons function) in a new window/tab. How can I do that in a child theme?
Thanks
Michael
Hey Michael!
Please add following code to Functions.php file of your child theme in Appearance > Editor
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery("li.social_bookmarks_rss a").attr("target", "_blank");
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Best regards,
Yigit
Rock ´n Roll! Works great.
Thanks
Michael