With this function I make my own Icon placed in the header:
// Register new icon as a theme icon
function avia_add_custom_icon($icons) {
$icons['icon_name'] = array( 'font' =>'fontello', 'icon' => 'ue881');
return $icons;
}
add_filter('avf_default_icons','avia_add_custom_icon', 10, 1);
function avia_add_custom_social_icon($icons) {
$icons['Icon Label'] = 'icon_name';
return $icons;
}
add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);
Now I want a anchor Link for this Icon with TARGET_SELF. Therefore I use this function:
//add_filter('wp_footer', 'avf_social_attr', 10);
function avf_social_attr() { ?>
<script>
(function($){
$(window).load(function(){
$(".social_bookmarks_icon_name a").attr("target", "_self");
});
})(jQuery);
</script>
<?php
}
But it is not working! Target of the link is always target=”_blank”
Hey frankeee,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
Victoria