Aditya Lesmana
asked 11 years ago

I am using DW Focus with WP 3.5.2 and Jetpack plugins (the one authorized by wordpress.org). Every time I use that, DW Focus gives me this html artifact at top right corner –> http://imgur.com/YdthwLS

 

please advise

3 Answers
DominicStaff
answered 11 years ago

To remove …”/> . you can open the functions.php file / go to line 499
Replace the following code:

 
echo'<metaproperty="og:description"content="'.get_the_excerpt().'"/>';

with new code:

 
echo '<meta property="og:description" content="'.esc_html( get_the_excerpt() ).'"/>';

Hope this helps !
Regards,
Dominic

Aditya Lesmana
replied 11 years ago

Can I confirm that the line of codes correspond to this snippet

Aditya Lesmana
replied 11 years ago

if( ! function_exists(‘dw_focus_post_views’) ) {
/**
* Views count for a single post
*/
function dw_focus_post_views() {
if( is_single() ){
global $post;
$view = get_post_meta($post->ID, ‘_views’, true);
$view = $view ? $view+1 : 1;
update_post_meta($post->ID, ‘_views’, $view);

echo ‘‘;
echo ‘‘;
if( has_post_thumbnail() ) {
$thumb_id = get_post_thumbnail_id();
$thumb = wp_get_attachment_thumb_url( $thumb_id );
echo ‘‘;
}
echo ‘‘;
}
}
add_action(‘wp_head’, ‘dw_focus_post_views’);
}

Aditya Lesmana
answered 11 years ago

fixed! thank you

DominicStaff
answered 11 years ago

please don’t hesitate to contact us if you have further questions.

Regards,
Dominic

Powered by DW Question & Answer Pro