commiemk
Forum Replies Created
-
At later point i realized that there is option to disable this. Go to Appearance -> Customize and in there find Edge Options. When you are in Edge Options find and uncheck “Display Instagram Full Width” this is the cause of your headache.
If that doesn’t work. Find this portion of code in footer.php
`if ( is_front_page() && is_home() ) {
if ((function_exists(‘display_instagram’)) && $edge_settings[‘edge_instagram_feed_display’] !=0){
echo do_shortcode(‘[instagram-feed]’);
}// Default homepage
} elseif ( is_front_page()){
if ((function_exists(‘display_instagram’)) && $edge_settings[‘edge_instagram_feed_display’] !=0){
echo do_shortcode(‘[instagram-feed]’);
}//Static homepage
} else {
//silence is golden
}And just comment it in case you need it in future
Well… couple of minutes after i posted this i found what is causing the problem.
A portion of the footer had an IF statement for the home page that caused the widget to appear there full size.
This is the portion:
if ( is_front_page() && is_home() ) { if ((function_exists('display_instagram')) && $edge_settings['edge_instagram_feed_display'] !=0){ echo do_shortcode('[instagram-feed]'); }// Default homepage } elseif ( is_front_page()){ if ((function_exists('display_instagram')) && $edge_settings['edge_instagram_feed_display'] !=0){ echo do_shortcode('[instagram-feed]'); }//Static homepage } else { //silence is golden }Thank you Craig, your quick answers are a rare sight these days. Keep up the awesome work!
No, the page does not do anything other than having a snippet for showing my portfolio. On another note i’ve found that the problem is coming up from the footer section. Even if i take the widget off the designated area it still keeps appearing in a big format. I believe that it has to do something with the footer.
Can you help me pinpoint this? This is the footer code
<?php /** * The template for displaying the footer. * * @package Theme Freesia * @subpackage Edge * @since Edge 1.0 */ $edge_settings = edge_get_theme_options(); if($edge_settings['edge_blog_layout'] == 'photography_layout' && !is_page() && !is_single()){ if(class_exists('WooCommerce') && is_shop()): ?> </div> <!-- end .container --> <?php else: ?> </div> <!-- end #main --> <?php endif; }else{?> </div> <!-- end .container --> <?php } ?> </div> <!-- end #content --> <!-- Footer Start ============================================= --> <footer id="colophon" class="site-footer clearfix"> <?php if ( is_front_page() && is_home() ) { if ((function_exists('display_instagram')) && $edge_settings['edge_instagram_feed_display'] !=0){ echo do_shortcode('[instagram-feed]'); }// Default homepage } elseif ( is_front_page()){ if ((function_exists('display_instagram')) && $edge_settings['edge_instagram_feed_display'] !=0){ echo do_shortcode('[instagram-feed]'); }//Static homepage } else { //silence is golden } $footer_column = $edge_settings['edge_footer_column_section']; if( is_active_sidebar( 'edge_footer_1' ) || is_active_sidebar( 'edge_footer_2' ) || is_active_sidebar( 'edge_footer_3' ) || is_active_sidebar( 'edge_footer_4' )) { ?> <div class="widget-wrap"> <div class="container"> <div class="widget-area clearfix"> <?php if($footer_column == '1' || $footer_column == '2' || $footer_column == '3' || $footer_column == '4'){ echo '<div class="column-'.$footer_column.'">'; if ( is_active_sidebar( 'edge_footer_1' ) ) : dynamic_sidebar( 'edge_footer_1' ); endif; echo '</div><!-- end .column'.$footer_column. ' -->'; } if($footer_column == '2' || $footer_column == '3' || $footer_column == '4'){ echo '<div class="column-'.$footer_column.'">'; if ( is_active_sidebar( 'edge_footer_2' ) ) : dynamic_sidebar( 'edge_footer_2' ); endif; echo '</div><!--end .column'.$footer_column.' -->'; } if($footer_column == '3' || $footer_column == '4'){ echo '<div class="column-'.$footer_column.'">'; if ( is_active_sidebar( 'edge_footer_3' ) ) : dynamic_sidebar( 'edge_footer_3' ); endif; echo '</div><!--end .column'.$footer_column.' -->'; } if($footer_column == '4'){ echo '<div class="column-'.$footer_column.'">'; if ( is_active_sidebar( 'edge_footer_4' ) ) : dynamic_sidebar( 'edge_footer_4' ); endif; echo '</div><!--end .column'.$footer_column. '-->'; } ?> </div> <!-- end .widget-area --> </div> <!-- end .container --> </div> <!-- end .widget-wrap --> <?php } ?> <div class="site-info" <?php if($edge_settings['edge-img-upload-footer-image'] !=''){?>style="background-image:url('<?php echo esc_url($edge_settings['edge-img-upload-footer-image']); ?>');" <?php } ?>> <div class="container"> <?php if($edge_settings['edge_buttom_social_icons'] == 0): do_action('social_links'); endif; do_action('edge_footer_menu'); do_action('edge_sitegenerator_footer'); ?> <div style="clear:both;"></div> </div> <!-- end .container --> </div> <!-- end .site-info --> <?php $disable_scroll = $edge_settings['edge_scroll']; if($disable_scroll == 0):?> <div class="go-to-top"><a title="<?php esc_html_e('Go to Top','edge');?>" href="#masthead"><i class="fa fa-angle-double-up"></i></a></div> <!-- end .go-to-top --> <?php endif; ?> </footer> <!-- end #colophon --> </div> <!-- end #page --> <?php wp_footer(); ?> </body> </html>