ThemeShaper Forums » Thematic

[closed]

trying to add action thematic_above_indexloop

(3 posts)
  • Started 3 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 3 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 3 years ago #
  3. 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 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.