Removing Image and Author Meta Tags

Posted in: Newspaper
Post count: 2

Hi Team,

I am trying to remove the image and author meta tags (<meta property=”og:image”> and <meta name=”author”>).

I have created a child theme and located the code for the above in includes/wp_booster/td_wp_booster_functions.php. I have copied it using the same structure to my child theme and commented out the section on the above. See below:

/* facebook sharing fix for videos, we add the custom meta data
if (has_post_thumbnail($post->ID)) {
$td_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
if (!empty($td_image[0])) {
echo '<meta property="og:image" content="' . $td_image[0] . '" />';
}
}

// show author meta tag on sigle pages
$td_post_author = get_the_author_meta('display_name', $post->post_author);
if ($td_post_author) {
echo '<meta name="author" content="'.$td_post_author.'">'."\n";
}*/

However the two meta tags still appear.

Thanks for helping me out on this.

Post count: 22421

Hello,

Unfortunately all of the wp_booster folder will not work from the child theme. You will have to make modifications to these files in the main theme.

Thank you!

Post count: 2

Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.