• lucapoe

    (@lucapoe)


    So I’m redesigning and redeveloping my client site using FSE theme. everything fine in the staging site until a custom plugin installed. The custom plugin basically generating a page (a contact page – and maybe more) and using get_header and get_footer function, which doesn’t work in the FSE theme because it doesn’t have header.php footer.php file.

    Is there any way to get around with this? I know I won’t be allowed to modify the plugin though. Or if I could communicate with the plugin developer what should I ask to him/her?

Viewing 2 replies - 1 through 2 (of 2 total)
  • threadi

    (@threadi)

    Yes, you would have to contact the plugin developer. It depends on what he has built into the header. They should provide you with this in the form of blocks or patterns.

    Thread Starter lucapoe

    (@lucapoe)

    For those who has the same problem, I finally get around to solve this problem by creating header.php & footer.php in my FSE theme and called the header block with block_header_area () and footer block with block_footer_area () from there. I’m using my own custom theme btw, almost a blank theme with just minimum styling in theme.json.

    The funny thing is, the styling that I applied within the block (with block editor) didn’t load at all in the page generated by the plugin. So I have to rewrite the style with custom CSS.

    I’m far from expert level, so I don’t know wether this will create problems in the future or not.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘FSE theme and get_header function’ is closed to new replies.