garciacrew
Forum Replies Created
-
I just cloned a local site and am going through the site to check for errors. I noticed the butterbean console log on some pages. However, it is not doing it on the local site. Using same environment settings on both. Using OceanWP theme with basic OceanWP provided child theme.
For some reason, I get the header footer even on an Elementor Canvas page. I have installed this set-up on three different WP installs this week and the same results. I actually don’t want the header footer on a canvas. So I had to create a condition in the plugins call of the header footer to not show when is_home() or is_frontpage() is true.
/**
* Display header markup.
*
* @since 1.0.2
*/
function hfe_render_header() {/*
* Added condition to not show footer if the page is the home or frontpage
*/
if ( false == apply_filters( ‘enable_hfe_render_header’, ‘__return_true’ ) || is_home() || is_front_page() ) {
return;
}?>
<header id=”masthead” itemscope=”itemscope” itemtype=”https://schema.org/WPHeader”>
<p class=”main-title bhf-hidden” itemprop=”headline”>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” rel=”home”><?php bloginfo( ‘name’ ); ?></p>
<?php Header_Footer_Elementor::get_header_content(); ?>
</header><?php
}
/**
* Display footer markup.
*
* @since 1.0.2
*/
function hfe_render_footer() {
/*
* Added condition to not show footer if the page is the home or frontpage
*/
if ( false == apply_filters( ‘enable_hfe_render_footer’, ‘__return_true’ ) || is_home() || is_front_page() ) {
return;
}?>
<footer itemscope=”itemscope” itemtype=”https://schema.org/WPFooter”>
<?php Header_Footer_Elementor::get_footer_content(); ?>
</footer>
<?php}
- This reply was modified 7 years ago by garciacrew.
- This reply was modified 7 years ago by garciacrew.
- This reply was modified 7 years ago by garciacrew.