[Support request] Remove footer widget instructions

Home Forums Support [Support request] Remove footer widget instructions

Home Forums Support Remove footer widget instructions

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #912329
    Daniel

    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

    #912332
    Leo
    Staff
    Customer Support

    Hi there,

    This can be done easily with Layout Element:
    https://docs.generatepress.com/article/layout-element-overview/#footer

    Let me know if this helps 🙂

    #912339
    Daniel

    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.

    #912358
    Leo
    Staff
    Customer Support

    That is actually exactly what Layout Element is for.

    So select 0 in the customizer:
    https://docs.generatepress.com/article/footer-widgets/#global-setting

    Create a layout element and select 1 footer widget:
    https://docs.generatepress.com/article/layout-element-overview/#footer

    Then select Front Page under Location for display rules:
    https://docs.generatepress.com/article/layout-element-overview/#display-rules

    #912391
    Daniel

    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?

    #912401
    Leo
    Staff
    Customer Support

    Sorry not exactly sure what you are trying to add?

    #912407
    Daniel

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

    #912412
    Leo
    Staff
    Customer Support

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

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

    #912472
    Daniel

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

    #912481
    Leo
    Staff
    Customer Support

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

    #912523
    Daniel

    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.

    #912599
    Tom
    Lead Developer
    Lead Developer

    We’ve actually removed the instructions from the footer widgets by default in 2.3: https://generatepress.com/generatepress-2-3/

    #912683
    Daniel

    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

    #913449
    Tom
    Lead Developer
    Lead Developer

    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?

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