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
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
Can I confirm that the line of codes correspond to this snippet
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’);
}
fixed! thank you
please don’t hesitate to contact us if you have further questions.
Regards,
Dominic
Please login or Register to submit your answer