Site logo

Archived topic

Remove footer widget instructions

13 replies · Started by Daniel on May 27, 2019

Viewing posts 1–14 of 14

I'd like to show a footer widget on Front page only, so I don't want to disable footer widgets. I would, however, like to remove the default footer widget instructions so they don't appear on pages that don't use footer widgets (single products/posts, archives, etc.). The text being utilized is in content/generatepress/inc/structure/footer.php. I tried using this same structure to copy this file to my child theme but was unsuccessful at getting it to respond. What is the structure needed for that file to respond in my child theme?

Thanks

Hi Leo,
I noticed you gave that answer on another support topic, so I tried it, but it does not allow removal of Footer widgets on individual pages, as far as I can tail. Is that right? I just want to remove the instructions that appear by default when a footer widget is not being used. I still need a footer widget to appear on the front page only. Does that make sense? See my website.

Thx, I will try that! However, could you also tell me how I would structure my folders if I still want to add this file to my child theme?

Sorry not exactly sure what you are trying to add?

The footer.php file that I mentioned in my original question inside generatepress/inc/structures/

I don't get what you are trying to achieve by doing that?

When footer widgets are removed, the default text won't show.

I'm curious how I would include that file in my child theme should I ever want to do that - no reason in particular.

You would copy the footer.php file and put it in your child theme folder.

Except that conflicts with the regular footer.php file, so I can't just put it into my child theme folder. There are (at least) two footer.php files in the generatepress parent theme. The one inside the inc/structures folders is what I want. I created that folder structure in my child theme and it didn't work.

Ok, Tom, thanks. I will download it. Now, I don't mean to be rude, but my question has still not been answered. Regardless of why I would want to do this, I would still like to know how I would overwrite the footer.php file from the parent theme that is in inc/structures/ by putting it in my child theme. Since there are more than one footer.php files in generatepress, it is important that I create the correct folder structure. I tried duplicating the parent theme structure, but that didn't seem to work. What is the correct structure for putting that file into my child theme?

Thanks

There isn't a way to overwrite that file in your child theme.

Most things are filterable, though. So it's likely possible to edit what you're needing without overwriting a file. What exactly do you need to do?

This archived topic is closed to new replies.