Marcos Curvello
asked 10 years ago

Hello guys I have just experienced something new here with my DW Focus theme. One of the images inside the slider carousel in the front page of the site is “off to the right” by a few pixels and when viewing the same post has a strange line through the title of the post .

 

http://boavistaja.com

http://boavistaja.com/esporte/copa-do-mundo-esporte/2014/06/chocolate-holandes-holanda-vence-espanha-por-5-1-42813/  

 

If you guys could give me an insight why this is happening I would appreciate very much, Thanks in advance  

1 Answers
Wilfred
answered 10 years ago

Hi Marcos,
This issue is because the “class” in your theme is the same “class” of the Bootstrap.  
To resolve this issue please follow my instruction here:
1. Open functions.php file in /wp-content/themes/dw-focus/functions.php
2. Add the following code to the bottom of the file

if ( ! function_exists( 'dw_focus_remove_tag_in_post_class' ) ) {
function dw_focus_remove_tag_in_post_class($classes) {
foreach ($classes as $key => $class) {
if( strpos($class, 'tag-') === 0 ) {
unset($classes[$key]);
}
}
return $classes;
}
add_filter('post_class','dw_focus_remove_tag_in_post_class');
}

Hope this helps!

Powered by DW Question & Answer Pro