Gracias por la aclaracion. Te adjunto el codigo.
FOOTER
Código PHP:
Ver original<?php
/**
* The template for displaying the footer.
*
* @package flatsome
*/
global $flatsome_opt;
?>
</div><!-- #main-content -->
<footer class="footer-wrapper" role="contentinfo">
<?php if(isset($flatsome_opt['html_before_footer'])){ // BEFORE FOOTER HTML BLOCK
echo do_shortcode($flatsome_opt['html_before_footer']);
} ?>
<!-- FOOTER 1 -->
<?php if ( is_active_sidebar( 'sidebar-footer-1' ) ) : ?>
<div class="footer footer-1 <?php echo $flatsome_opt['footer_1_color']; ?>" style="background-color:<?php echo $flatsome_opt['footer_1_bg_color']; ?>">
<div class="row">
<?php dynamic_sidebar('sidebar-footer-1'); ?>
</div><!-- end row -->
</div><!-- end footer 1 -->
<?php endif; ?>
<!-- FOOTER 2 -->
<?php if ( is_active_sidebar( 'sidebar-footer-2' ) ) : ?>
<div class="footer footer-2 <?php echo $flatsome_opt['footer_2_color']; ?>" style="background-color:<?php echo $flatsome_opt['footer_2_bg_color']; ?>">
<div class="row">
<?php dynamic_sidebar('sidebar-footer-2'); ?>
</div><!-- end row -->
</div><!-- end footer 2 -->
<?php endif; ?>
<?php if(isset($flatsome_opt['html_after_footer'])){ // AFTER FOOTER HTML BLOCK
echo do_shortcode($flatsome_opt['html_after_footer']);
} ?>
<div class="absolute-footer <?php echo $flatsome_opt['footer_bottom_style']; ?>" style="background-color:<?php echo $flatsome_opt['footer_bottom_color']; ?>">
<div class="row">
<div class="large-12 columns">
<div class="left">
<?php if ( has_nav_menu( 'footer' ) ) : ?>
<?php
'theme_location' => 'footer',
'menu_class' => 'footer-nav',
'depth' => 1,
'fallback_cb' => false,
));
?>
<?php endif; ?>
<div class="copyright-footer">
<?php if(isset($flatsome_opt['footer_left_text'])) {echo do_shortcode
($flatsome_opt['footer_left_text']);} else{ echo 'Define left footer text / navigation in Theme Option Panel';} ?></div>
</div><!-- .left -->
<div class="right">
<?php if(isset($flatsome_opt['footer_right_text'])){ echo do_shortcode
($flatsome_opt['footer_right_text']);} else {echo 'Define right footer text in Theme Option Panel';} ?> </div>
</div><!-- .large-12 -->
</div><!-- .row-->
</div><!-- .absolute-footer -->
</footer><!-- .footer-wrapper -->
</div><!-- #wrapper -->
<!-- back to top -->
<a href="#top" id="top-link"><span class="icon-angle-up"></span></a>
<?php if(isset($flatsome_opt['html_scripts_footer'])){ // Insert footer scripts
echo $flatsome_opt['html_scripts_footer'];
} ?>
<?php wp_footer(); ?>
</body>
</html>
INDEX
Código PHP:
Ver original<?php
/**
* The main template file.
*
* @package flatsome
*/
get_header();
if(!isset($flatsome_opt['blog_layout'])){$flatsome_opt['blog_layout'] = '';} ?>
<?php // ADD BLOG HEADER IF SET
if($flatsome_opt['blog_header']){ echo do_shortcode($flatsome_opt['blog_header']);}
?>
<div class="page-wrapper <?php echo $flatsome_opt['blog_style']; ?> page-<?php if($flatsome_opt['blog_layout']){ echo $flatsome_opt['blog_layout'];} else {echo 'right-sidebar';} ?>">
<div class="row">
<?php if($flatsome_opt['blog_layout'] == 'left-sidebar') {
echo '<div id="content" class="large-9 right columns" role="main">';
} else if($flatsome_opt['blog_layout'] == 'right-sidebar'){
echo '<div id="content" class="large-9 left columns" role="main">';
} else if($flatsome_opt['blog_layout'] == 'no-sidebar' && $flatsome_opt['blog_style'] == 'blog-pinterest'){
echo '<div id="content" class="large-12 columns blog-pinterest-container" role="main">';
} else if($flatsome_opt['blog_layout'] == 'no-sidebar'){
echo '<div id="content" class="large-12 columns" role="main">';
} else {
echo '<div id="content" class="large-9 left columns" role="main">';
}
?>
<div class="page-inner">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
/* Include the Post-Format-specific template for the content.
* If you want to override this in a child theme then include a file
* called content-___.php (where ___ is the Post Format name) and that will be used instead.
*/
get_template_part( 'content', get_post_format() );
?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'no-results', 'index' ); ?>
<?php endif; ?>
<div class="large-12 columns navigation-container">
<?php flatsome_content_nav( 'nav-below' ); ?>
</div>
</div><!-- .page-inner -->
</div><!-- #content -->
<div class="large-3 columns left">
<?php if($flatsome_opt['blog_layout'] == 'left-sidebar' || $flatsome_opt['blog_layout'] == 'right-sidebar'){
get_sidebar();
}?>
</div><!-- end sidebar -->
</div><!-- end row -->
</div><!-- end page-wrapper -->
<?php if($flatsome_opt['blog_style'] == 'blog-pinterest'){ ?>
<script>
jQuery(document).ready(function ($) {
imagesLoaded( document.querySelector('.page-inner'), function( instance, container ) {
var $container = $(".page-inner");
// initialize
$container.packery({
itemSelector: ".columns",
gutter: 0,
});
$container.packery('layout');
});
});
</script>
<?php } ?>
<?php get_footer(); ?>
PAGE
Código PHP:
Ver original<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other 'pages' on your WordPress site will use a
* different template.
*
* @package flatsome
*/
get_header(); ?>
<?php if( has_excerpt() ) { ?>
<div class="page-header">
<?php the_excerpt(); ?>
</div>
<?php } ?>
<div class="page-wrapper">
<div class="row">
<div id="content" class="large-12 columns" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- .row -->
</div><!-- .page-wrapper -->
<?php get_footer(); ?>
SINGLE
Código PHP:
Ver original<?php
/**
* The Template for displaying all single posts.
*
* @package flatsome
*/
get_header();
global $flatsome_opt;
if(!isset($flatsome_opt['blog_post_layout'])){$flatsome_opt['blog_post_layout'] = $flatsome_opt['blog_layout'];}
?>
<?php // Add blog header if set
if($flatsome_opt['blog_header']){ echo do_shortcode($flatsome_opt['blog_header']);}
?>
<?php
// Create big featured image if set
if($flatsome_opt['blog_post_style'] == 'big-featured-image') { ?>
<div class="parallax-title">
<?php while ( have_posts() ) : the_post(); ?>
<header class="entry-header text-center">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="tx-div small"></div>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">
<?php flatsome_posted_on(); ?>
</div>
<?php if($flatsome_opt['blog_share']) echo '[share]'; ?>
<?php endif; ?>
</header>
<?php
$bg = '#333';
if( has_post_thumbnail() ) $bg = get_post_thumbnail_id();
$header_html = '[ux_banner animate="fadeInDown" bg_overlay="#000" parallax="3" parallax_text="2" height="360px" bg="'.$bg.'"]'.$header_html.'[/ux_banner]';
echo do_shortcode($header_html);
?>
<?php endwhile; // end of the loop. ?>
</div>
<?php } ?>
<div class="page-wrapper page-<?php echo $flatsome_opt['blog_post_layout']; ?>">
<div class="row">
<?php if($flatsome_opt['blog_post_layout'] == 'left-sidebar') {
echo '<div id="content" class="large-9 right columns" role="main">';
} else if($flatsome_opt['blog_post_layout'] == 'right-sidebar'){
echo '<div id="content" class="large-9 left columns" role="main">';
} else if($flatsome_opt['blog_post_layout'] == 'no-sidebar'){
echo '<div id="content" class="large-12 columns" role="main">';
} else {
echo '<div id="content" class="large-9 left columns" role="main">';
}
?>
<div class="page-inner">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'single' ); ?>
<?php // Add content after blog post
if($flatsome_opt['blog_after_post']){ echo do_shortcode($flatsome_opt['blog_after_post']);}
?>
<?php
// If comments are open or we have at least one comment, load up the comment template
if ( comments_open() || '0' != get_comments_number() )
comments_template();
?>
<?php endwhile; // end of the loop. ?>
</div><!-- .page-inner -->
</div><!-- #content -->
<div class="large-3 columns left">
<?php if($flatsome_opt['blog_post_layout'] == 'left-sidebar' || $flatsome_opt['blog_post_layout'] == 'right-sidebar'){
get_sidebar();
}?>
</div><!-- end sidebar -->
</div><!-- end row -->
</div><!-- end page-wrapper -->
<?php get_footer(); ?>
PD: No se si el problema viene de aqui, o tiene raiz en otro lado. Pero solo me pasa en la pagina principal (front page).
Gracias