Site logo

Archived topic

Hide Footer Widget

13 replies · Started by MARK on February 19, 2021

Viewing posts 1–14 of 14

Hey, I would like to hide my footer widgets (1,2 and 3) on this page migraineprofessional.com/bpb

I have tried disabling them in the page editor as well as with a layout element but they persist.

Any help is appreciated,

Mark

Hi there,

how are those footers being added ? It doesn't look like the Themes footer is being used

Custom HTML in footer widget 1 2 and 3

Hey David,

Yes I tried both of those see above so I am not sure why they are persisting?

Hi Mark,

Are you talking about the divelements calledfooter_form?
https://www.screencast.com/t/337Nbfaw

They are not added in the default site footer, that's why even the site footer itself has been removed, these 2 divare still there.

Could you confirm that they are add by using appearance > widgets > footer widgets 1,2,3?

Let me know :)

Yes confirming see pictures that appearance widgets footer widgets 1,2 and 3 are being used.

On page footer is disabled as well as appearance elements layout disable is enabled on footers on that page

Didn't see the pictures you, but it does feel weird.

Would you mind providing credentials in the private info field so that we can log in and have a deeper look.

Sure

Hi Mark,

We need the admin access.

As Ying and David both mentioned, the footer structure is not the default structure coming from GP.

Are you using a child theme? Have you added any custom functions?

It should work now.

I do not believe it is from custom css?

You have a Child Theme installed and this function in the child theme functions.php:

add_action('generate_before_footer','insert_form_after_content');
function insert_form_after_content(){
	echo '<div class="footer_form grid-container container grid-parent">';
	if( is_active_sidebar( 'footer-1' ) ):
		echo '<div class="footer_widget_1">';
			dynamic_sidebar( 'footer-1' );
		echo '</div>';
	endif;
	if( is_active_sidebar( 'footer-2' ) ):
		echo '<div class="footer_widget_2">';
			dynamic_sidebar( 'footer-2' );
		echo '</div>';
	endif;
	echo '</div>';
	echo '<div class="footer_form grid-container container grid-parent">';
	if( is_active_sidebar( 'footer-3' ) ):
		echo '<div class="footer_widget_3">';
			dynamic_sidebar( 'footer-3' );
		echo '</div>';
	endif;
	echo '</div>';
}

So the GP Elememts has not control over that.
Any reason for using a custom function over the GP Footer?

ahh okay. No, I have no reason in particular, this must've been from the developer. How would I remove this so I can use the footer widget or just remove it on the pages I do not need it?

Removing it is easy - simply remove the code would work.

However, you might want to get in contact with your developer and see if he/she did this for a reason.

This archived topic is closed to new replies.