Hooks That Exist In WPThemestudio
Theme’s hook is a place(hook) to attach your functions in the theme.
Hook is something like a code placement zone where you can attach as many codes to it without actually adding the code to the file where the hook exist.
You can find all hooks that exist in the WPThemestudio by checking the file inside the dll/registry folder.
By the way, here’s a summary of the hooks.
Sidebar
- <?php wpts_sidebarzone1(); ?> is before the dynamic sidebar inside the sidebar div layer.
- <?php wpts_sidebarzone2(); ?> is after the dynamic sidebar inside the sidebar div layer.
Header
- <?php wp_head(); ?> is the original wordpress hook. To attach a code inside the <head> section, use this hook.
- <?php wpts_top(); ?> is after <body> and outside the grand main container. This hook does not affected by any styling except for body styling.
- <?php wpts_headerzone1(); ?> is inside the main container, have the same level with header div layer. Before header div layer.
- <?php wpts_headerzone2(); ?> is inside the header div layer.
- <?php wpts_headerzone3(); ?> is inside the main container, before the body-container div layerr and have the same level with header and body-container div layer.
Footer
- <?php wpts_footerzone1(); ?> is after the body-container div layer, before the footer div layer. Have the same level with body-container and footer div layer.
- <?php wpts_footerzone2(); ?> is inside the footer div layer.
- <?php wp_footer(); ?> is the original wordpress hook. Exactly before <body> after the main-container div layer. Have the same level with wpts_top.
Comments
<?php wpts_commentszone1(); ?> is after the name, email, and url input area, before the message text input area. This is for you to hook any message you want to show to your commentators.
Body
- <?php wpts_bodyzone1(); ?> is inside the body-container div layer before the content div layer. Have the same level with content div layer.
- <?php wpts_bodyzone2(); ?>
- wpts_bodyzone3
- wpts_bodyzone4
- wpts_bodyzone5
- wpts_bodyzone6
- wpts_bodyzone7
- wpts_error404bodyzone
Any question, just ask here…