Strict Standards: Redefining already defined constructor for class bbdb in /home/themes/public_html/forums/bb-includes/db-mysql.php on line 12

Strict Standards: Declaration of BB_Walker_Blank::start_lvl() should be compatible with BB_Walker::start_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_lvl() should be compatible with BB_Walker::end_lvl($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::start_el() should be compatible with BB_Walker::start_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127

Strict Standards: Declaration of BB_Walker_Blank::end_el() should be compatible with BB_Walker::end_el($output) in /home/themes/public_html/forums/bb-includes/classes.php on line 1127
Custom hook « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

Custom hook

(6 posts)
  • Started 5 years ago by Jamie Mitchell
  • Latest reply from Kyle
  • This topic is not resolved

Tags:

  1. Jamie Mitchell
    Member

    Hey all...

    is it possible to add another hook, just like the thematic_belowheader

    i need one for a custom front page, and there does not seem to be any hooks for pages (hint, hint Ian)

    so i need to create a new hook, which i will use just about the container div of my front-page, this will be used to add some new custom widgets i created.

    thanks in advance...

    j

    Posted 5 years ago #

  2. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    Chris

    Moderator

    Hi,

    there's no need for an extra hook .. is_front_page() is your friend.

    function my_action() {
        if (is_front_page()) {
            <!-- Whatever you want to include here -->
        }
    }
    add_action('anyThematicActionHook', 'my_action'};

    Chris

    Posted 5 years ago #
  3. Kyle
    Member

    As you can tell from my question, I'm new to Thematic and the whole concept of child themes.

    In your code, Chris, you have "anyThematicActionHook." Looking at the list of hooks, I don't understand how I include something in the "container" or "content" area, above any other page content, posts, etc.

    Thanks in advance. I'll understand this all just yet!

    Posted 4 years ago #

  4. Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512


    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 440

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 510

    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/themes/public_html/forums/bb-includes/kses.php on line 512
    tarpontech

    Member

    The action hook i use most of the time to stick things above the content is thematic_belowheader .

    Posted 4 years ago #
  5. Kyle
    Member

    Ya, I saw that one, but I don't want it to be above the sidebar.

    Posted 4 years ago #
  6. Kyle
    Member

    Well, I resorted to installing a plugin that allows me to include PHP in posts/pages. However, I'd really rather be able to hook my PHP component. Again, I'd like it to appear first in the "container" or "content" area so that it's flush with the sidebar.

    Thanks.

    Posted 4 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.


Strict Standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method GA_Filter::spool_analytics() should not be called statically in /home/themes/public_html/forums/bb-includes/wp-functions.php on line 586

Strict Standards: Non-static method GA_Filter::spool_this() should not be called statically in /home/themes/public_html/forums/my-plugins/googleanalytics.php on line 183