As described, which codes should I add to achieve that result?
I search the old threads and found something I need for the post tile, but it failed for the thumbnail, can you help me?
function add_custom_tooltip(){
?>
<script>
jQuery(window).load(function(){
jQuery('.av-magazine-title a ').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_tooltip');
Thank you in advance.
Eric
Why nobody answer my questions?
Hi,
Please change your code to following one
function add_custom_tooltip(){
?>
<script>
jQuery(window).load(function(){
jQuery('.av-magazine a ').attr('target','_blank');
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_tooltip');
Best regards,
Yigit
Hi Yigit,
Thank you so much.
I have another question, that my website is not open to Google index, but I found there is one page can not be indexed, the warning is because of the robots.txt, can you please check my robots text and resolve the problem?
User-agent: *
Disallow: /wp-admin/
Disallow: /wp-content/cache/
Disallow: /wp-content/languages/
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/
Disallow: /wp-content/upgrade/
Disallow: /wp-includes/
Disallow: /comments/
Disallow: /tag/
Disallow: /feed/
Disallow: /trackback/
Disallow: /thank-you/
Look forward to your help!
Thank you
Eric
Hi,
Please try adding following code to Functions.php file in Appearance > Editor
add_filter('avf_set_follow','avia_set_nofollow');
function avia_set_nofollow(){
if(is_page(1195)){
$meta = '<meta name="robots" content="noodp"/>';
}
return $meta;
}
Best regards,
Yigit
Thank you, I already add the code in the php file, hope it works!
Kind regards
Eric