ThemeShaper Forums » Thematic


Conditional in thematic_after ?

(7 posts)
  • Started 11 years ago by mmodic
  • Latest reply from mmodic
  • This topic is resolved
  1. mmodic

    Why conditional tag is_front_page() not working in thematic_after.... when I move code in wp_head it's working fine :(

    Posted 11 years ago #
  2. It works for me. Post the code you are using for this.


    Posted 11 years ago #
  3. mmodic

    function jquery_scripts() { ?>
    <?php if(is_front_page()){ ?>

    <script type="text/javascript">
    ... code goes here );

    <?php }

    Posted 11 years ago #
  4. mmodic

    and this gives me false on return ...

    Posted 11 years ago #
  5. Sorry still works for me. Here are some questions that may lead you in the right direction.

    Did you include this code outside of that function?


    and are you sure you've chosen the correct template tag for your situation?

    Have you altered the query on this page (custom loop?) and if so would need to wp_reset_query()

    Posted 11 years ago #
  6. mmodic

    no i didn't altered loop .. added wp_reset for test ... not working ...
    Yes i included add_action. If I change it to wp_head instead thematic_after it's working. And this is happening on clean thematic and wordpress install also .. hmm very strange ..

    Posted 11 years ago #
  7. mmodic

    now it's working ... I must be trippin .. sorry I'm not newbie with thematic and this was driving me crazy on 2 projects ... probably need to go o vacation . tnx a lot .

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.