• Home
  • Getting Started
  • Home
  • Getting Started

Theme Hooks

Theme hooks allows you to hook into a theme functionality without modifying the core files. Read more about Actions and Filters API here – https://codex.wordpress.org/Plugin_API

How to use Hooks.

In your child theme simply open functions.php and add your scripts. Let’s say you want to add something before sidebar, we’ll use deo_sidebars_before hook. The code example would be:

PHP
1
2
3
4
add_action( 'deo_sidebars_before', 'sedona_add_sidebar_message' );
function sedona_add_sidebar_message() {
  echo esc_html__( 'Sidebar Message', 'sedona' );
}

List of available Hooks:

  • deo_head_before()
  • deo_head_after()
  • deo_header_before()
  • deo_header_after()
  • deo_body_before()
  • deo_body_after()
  • deo_primary_content_before()
  • deo_primary_content_after()
  • deo_entry_content_before()
  • deo_entry_content_after()
  • deo_sidebars_before()
  • deo_sidebars_after()
  • deo_footer_before()
  • deo_footer_after()

 

 

Was this helpful?

Yes  No
Related Articles
  • GDPR
  • Multi-Lingual Support
  • Image Resolution
  • Theme Translation
  • Site Performance

No luck finding what you need? Contact Us

Others
  • Theme Hooks
  • GDPR
  • Multi-Lingual Support
  • Image Resolution
  • Theme Translation
  • Site Performance
Categories
  • Blog
  • Customization
  • Elementor
  • Getting Started
  • Others
  • Pages

  Theme Translation

Site Performance  

  • © 2025 deothemes.com. All Rights Reserved.