-
-
Notifications
You must be signed in to change notification settings - Fork 4
Compatible theme hooks
Jory Hogeveen edited this page Sep 30, 2019
·
21 revisions
These are hooks you can use as alternatives for website_before
and website_after
to integrate Off-Canvas Sidebars with your theme.
Please let me know if your theme has similar hooks built in by default so I can add them to this list.
You can change the default hooks in the plugin main settings page under "Frontend Settings".
Please verify if your theme supports these hooks!
-
wp_body_open
- look forwp_body_open()
in your theme header.php (Since WordPress 5.2) -
wp_footer
- look forwp_footer()
in your theme footer.php
(older versions, pre WP 5.2)
-
generate_before_header
(generate_after_header
might also work) -
generate_after_footer
(generate_before_footer
might also work)
No changes needed, Genesis is supported by default
genesis_before
genesis_after
When you use the theme
-
fl_page_open
(previously:fl_body_open
) -
fl_page_close
(previously:fl_body_close
)
ocean_before_outer_wrap
ocean_after_outer_wrap
Since 0.5.3
storefront_before_site
-
storefront_after_site
wp_footer
(https://github.com/woocommerce/storefront/pull/938)
vantage_before_page_wrapper
vantage_after_page_wrapper