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
trying to add action thematic_above_indexloop « ThemeShaper Forums

ThemeShaper Forums » Thematic

[closed]

trying to add action thematic_above_indexloop

(3 posts)
  • Started 4 years ago by awelch
  • Latest reply from relequestual
  • This topic is not resolved
  1. awelch
    Member

    hi, i'm trying to do the following - add something above the index loop, but it's not working. It works if I change thematic_above_indexloop to something like thematic_belowheader but that's not where I want it. Any idea whats going on?

    function childtheme_welcome_blurb() {

    if (is_home() || is_front_page()) {

    include (ABSPATH . '/wp-content/plugins/unpointzero-slider/Slider.php');

    }

    }

    // Now we add our new function to our Thematic Action Hook
    add_action('thematic_above_indexloop','childtheme_welcome_blurb',2);

    Posted 4 years ago #
  2. awelch
    Member

    function show_single_post() {

    if (is_home() || is_front_page()) {

    include (ABSPATH . '/wp-content/plugins/unpointzero-slider/Slider.php');
    ?>agsdgsdasdgsdgsdg <?php
    }

    }

    // Now we add our new function to our Thematic Action Hook
    add_action('thematic_abovecontainer', 'show_single_post',2);

    this works- but it puts the stuff in the wrong plac.e

    Posted 4 years ago #

  3. 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
    relequestual

    Member

    Hum, code looks good to me.

    What I would suggest, to start with delete the code and re write it, just to make sure there was no typos. I've had that before, and you just don't see them.

    Failing that, break each level of function down untill you can assign blame on a function. make sure the logic flow is as you expect. The way I normally do this is by adding the line

    echo "ding";exit;

    where I expecting the following code to be executed.

    I'm not sure if this really helps you or no. It's either a fairly simple problem, or something quite complex, is what I would have to guess.

    I'm new to this child theme game, so I might be way off, but hopefully something I've said can help.

    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