[WordPress] Footer php - il background riempie tutta la pagina - help

  • Creatore Discussione Creatore Discussione sax86
  • Data di inizio Data di inizio

sax86

Nuovo Utente
4 Set 2017
4
0
1
38
ciao a tutti.
ho acquistato un tema WORDPRESS. Il background del footer riempie l' intera pagina...vorrei che si fermasse all' altezza del footer.

Questo il codice del file footer.php:

<?php
$theme_option = get_option('theme_option');
if(isset($theme_option['bg_footer']['url']) && $theme_option['bg_footer']['url'] != ''){
$bg_footer = $theme_option['bg_footer']['url'];
}
if(isset($theme_option['footer-color']) && $theme_option['footer-color'] != ''){
$footer_color = $theme_option['footer-color'];
}
if(isset($theme_option['facebook_link']) && $theme_option['facebook_link'] != ''){
$facebook = $theme_option['facebook_link'];
}
if(isset($theme_option['twitter_link']) && $theme_option['twitter_link'] != ''){
$twitter = $theme_option['twitter_link'];
}
if(isset($theme_option['googleplus_link']) && $theme_option['googleplus_link'] != ''){
$googleplus = $theme_option['googleplus_link'];
}
if(isset($theme_option['instagram_link']) && $theme_option['instagram_link'] != ''){
$instagram = $theme_option['instagram_link'];
}
if(isset($theme_option['copyright']) && $theme_option['copyright'] != ''){
$copy_right = $theme_option['copyright'];
}
if(isset($theme_option['language_select']) && $theme_option['language_select'] != ''){
$language_select = $theme_option['language_select'];
}
?>


<footer <?php if(isset($theme_option['footer-color']) && $theme_option['footer-color'] != ''){ ?>style="background:<?php echo esc_attr($footer_color);?> url(<?php if(isset($theme_option['bg_footer']) && $theme_option['bg_footer'] != ''){ echo esc_url($bg_footer); }?>);"<?php } ?>>
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-3">
<?php
if ( is_active_sidebar('sidebar_one') ) {
dynamic_sidebar( 'sidebar_one' );
}
?>
</div>
<div class="col-md-2 col-sm-3">
<?php
if ( is_active_sidebar('sidebar_two') ) {
dynamic_sidebar( 'sidebar_two' );
}
?>
</div>
<div class="col-md-4 col-sm-6">
<?php
if ( is_active_sidebar('sidebar_three') ) {
dynamic_sidebar( 'sidebar_three' );
}
?>
</div>
<div class="col-md-3 col-sm-12">
<?php
if ( is_active_sidebar('sidebar_four') ) {
dynamic_sidebar( 'sidebar_four' );
}
?>
</div>
</div>
<!-- End row -->
<hr>
<div class="row">
<div class="col-sm-8">
<?php if(isset($language_select) && $language_select != ''){ ?>
<div class="styled-select">

<select class="form-control" name="lang" id="lang">
<?php
if (is_array($language_select) || is_object($language_select)){
foreach ($language_select as $lang){?>
<option value="<?php echo esc_attr($lang );?>"><?php echo esc_attr($lang );?></option>
<?php }
}
?>
</select>

</div>
<?php } ?>
<?php if(isset($theme_option['copyright']) && $theme_option['copyright'] != ''){ echo htmlspecialchars_decode($copy_right); }?>
</div>
<div class="col-sm-4" id="social_footer">
<ul>
<li><a href="<?php if(isset($facebook) && !empty($facebook)){ echo esc_url($facebook );}else{?>#0<?php }?>"><i class="icon-facebook"></i></a></li>
<li><a href="<?php if(isset($twitter) && !empty($twitter)){ echo esc_url($twitter );}else{?>#0<?php }?>"><i class="icon-twitter"></i></a></li>
<li><a href="<?php if(isset($googleplus) && !empty($googleplus)){ echo esc_url($googleplus );}else{?>#0<?php }?>"><i class="icon-google"></i></a></li>
<li><a href="<?php if(isset($instagram) && !empty($instagram)){ echo esc_url($instagram );}else{?>#0<?php }?>"><i class="icon-instagram"></i></a></li>
</ul>
</div>
</div>
<!-- End row -->
</div>
<!-- End container -->
</footer>
<!-- End footer -->


<div id="toTop"></div>
<!-- Back to top button -->


<!-- Search Menu -->
<div class="search-overlay-menu">
<span class="search-overlay-close"><i class="icon_close"></i></span>
<form role="search" id="searchform" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input value="<?php echo get_search_query() ?>" name="s" type="search" placeholder="<?php echo esc_html__('Search...','bestours'); ?>" />
<button type="submit"><i class="icon-search-6"></i>
</button>
</form>
</div>
<!-- End Search Menu -->
<!-- COMMON SCRIPTS -->
<?php wp_footer();?>
</body>
</html>


Grazie a tutti
 

Discussioni simili