New Landing How can we help? Themeforest Theme Support Flexform Issue with single.php and sf functions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Flexform
  • #36717
    socialfst
    Member

    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?

    #37579
    Cosmin – SUPPORT
    Member
    Post count: 3851

    Hi,

    Not sure exactly what you changed in the theme files (you might have deleted a comma or semicolon too many), so my advice is, if you need to add some CSS customizations, don’t touch the theme files. Undo your changes and add the custom CSS in the General theme options.

    If you needed to add classes on your elements, the Page Builder has the Extra Class field.

    Regards,

    ————————————————————————————————————

    Cosmin – Support

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register