[Support request] Hide Footer Widget

Home Forums Support [Support request] Hide Footer Widget

Home Forums Support Hide Footer Widget

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1664378
    MARK

    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

    #1664389
    David
    Staff
    Customer Support

    Hi there,

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

    #1666598
    MARK

    Custom HTML in footer widget 1 2 and 3

    #1666679
    David
    Staff
    Customer Support

    You can use the Layout Element to set the Footer Widgets to 0. Then set the Display Rules to the page you want it removed from:

    https://docs.generatepress.com/article/layout-element-overview/

    #1675082
    MARK

    Hey David,

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

    #1675255
    Ying
    Staff
    Customer Support

    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 🙂

    #1675423
    MARK

    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

    #1675424
    Ying
    Staff
    Customer Support

    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.

    #1679495
    MARK

    Sure

    #1679504
    Leo
    Staff
    Customer Support

    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?

    #1680463
    MARK

    It should work now.

    I do not believe it is from custom css?

    #1680536
    David
    Staff
    Customer Support

    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?

    #1681001
    MARK

    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?

    #1681030
    Leo
    Staff
    Customer Support

    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.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.