Archive replaces header & footer with custom Sage theme #25871
Replies: 3 comments
-
Hey, I have this same problem and I have a solution, but I don't know it is 100% good. functions.php
header.blade.php
footer.blade.php
archive.blade.php
|
Beta Was this translation helpful? Give feedback.
-
Thanks @MichaelRise. You're a legend. This fixed the issue 👍 I've been trying to solve this for nearly a year now on multiple forums, even had Elementor support login to try to solve it. I assumed $elementor_theme_manager->register_all_core_location() was the same as registering header, footer and archive separately but I was wrong. I appreciate the help! |
Beta Was this translation helpful? Give feedback.
-
Thx @MichaelRise! For future reference, you don't need to add
So you can actually keep the |
Beta Was this translation helpful? Give feedback.
-
Prerequisites
Description
I have a custom Sage theme and setup Elementor Theme Location using functions (following these instructions). Header, Footer and Single custom templates using the Elementor Theme Builder displays as intended.
The issue is that when we create an archive template in Elementor Theme Builder, it seems to ignore the whole index.blade.php file which replaces the header and footer (see URL provided).
The Index.blade.php file:
See the full code and file structure.
How the Archive page displays with incorrect header and footer
If you can help us with this, i'd really appreciate it! Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions