Hello,
I was working with flexform yesterday customizing some css when the website started loading only header.php. I found that the issue was with SF codes and I commented this:
// BREADCRUMBS
if(!$remove_breadcrumbs) {
echo sf_breadcrumbs();
Almost everything works now except pages related to single.php such as single blogpost. I found that the problem is this part of the code:
if ($post_format == "standard") {
if ($media_type == "video") {
$figure_output .= sf_video_post($post->ID, $media_width, $video_height, $use_thumb_content)."\n";
} else if ($media_type == "slider") {
$figure_output .= sf_gallery_post($post->ID, $use_thumb_content)."\n";
} else if ($media_type == "layer-slider") {
$figure_output .= '<div class="layerslider">'."\n";
$figure_output .= do_shortcode('[rev_slider '.$media_slider.']')."\n";
$figure_output .= '</div>'."\n";
} else if ($media_type == "custom") {
$figure_output .= $custom_media."\n";
} else {
$figure_output .= sf_image_post($post->ID, $media_width, $media_height, $use_thumb_content)."\n";
}
} else {
$figure_output .= sf_get_post_media($post->ID, $media_width, $media_height, $video_height, $use_thumb_content);
}
How can I fix it?