- This topic has 13 replies, 4 voices, and was last updated 3 years, 1 month ago by Leo.
-
AuthorPosts
-
February 19, 2021 at 6:24 am #1664378MARK
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
February 19, 2021 at 6:35 am #1664389DavidStaffCustomer SupportHi there,
how are those footers being added ? It doesn’t look like the Themes footer is being used
February 21, 2021 at 7:00 am #1666598MARKCustom HTML in footer widget 1 2 and 3
February 21, 2021 at 8:14 am #1666679DavidStaffCustomer SupportYou 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/
February 27, 2021 at 7:30 am #1675082MARKHey David,
Yes I tried both of those see above so I am not sure why they are persisting?
February 27, 2021 at 10:42 am #1675255YingStaffCustomer SupportHi Mark,
Are you talking about the
div
elements calledfooter_form
?
https://www.screencast.com/t/337NbfawThey are not added in the default site footer, that’s why even the site footer itself has been removed, these 2
div
are still there.Could you confirm that they are add by using appearance > widgets > footer widgets 1,2,3?
Let me know 🙂
February 27, 2021 at 1:09 pm #1675423MARKYes 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
February 27, 2021 at 1:12 pm #1675424YingStaffCustomer SupportDidn’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.
March 2, 2021 at 2:55 pm #1679495MARKSure
March 2, 2021 at 3:08 pm #1679504LeoStaffCustomer SupportHi 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?
March 3, 2021 at 7:13 am #1680463MARKIt should work now.
I do not believe it is from custom css?
March 3, 2021 at 7:58 am #1680536DavidStaffCustomer SupportYou 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?March 3, 2021 at 2:19 pm #1681001MARKahh 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?
March 3, 2021 at 2:47 pm #1681030LeoStaffCustomer SupportRemoving 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.
-
AuthorPosts
- You must be logged in to reply to this topic.