Skip to content

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".

Since WordPress 5.2

Please verify if your theme supports these hooks!

  • wp_body_open - look for wp_body_open() in your theme header.php (Since WordPress 5.2)
  • wp_footer - look for wp_footer() in your theme footer.php

GeneratePress

(older versions, pre WP 5.2)

  • generate_before_header (generate_after_header might also work)
  • generate_after_footer (generate_before_footer might also work)

Genesis framework

No changes needed, Genesis is supported by default

  • genesis_before
  • genesis_after

Beaver Builder

When you use the theme

  • fl_page_open (previously: fl_body_open)
  • fl_page_close (previously: fl_body_close)

OceanWP

  • ocean_before_outer_wrap
  • ocean_after_outer_wrap

Storefront (WooCommerce)

Since 0.5.3

Vantage (SiteOrigin)

  • vantage_before_page_wrapper
  • vantage_after_page_wrapper