ThemeShaper Forums » Thematic

Adding a function in header

(4 posts)
  • Started 2 years ago by LegendsCrazy
  • Latest reply from Chris
  • This topic is resolved
  1. I have a plug-in that requires you to add this call into the header just after the body tag:


    <?php if(function_exists(updateHeader)) updateHeader(); ?>

    How would I add that call to my child functions.php?

    Thanks in advance.

    Posted 2 years ago #
  2. Hi Dale,

    try this one:

    function childtheme_updateHeader() {
        if(function_exists(updateHeader)) updateHeader();
    }
    add_action('thematic_belowheader', 'childtheme_updateHeader');

    Chris

    Posted 2 years ago #
  3. Hi Chris,

    Worked like a charm! (I had to change it to aboveheader, though.) Nothing like an example to help you learn. Thanks Chris!

    Cheers!

    This was for the iredlof ajax login plugin: http://iredlof.com/2009/04/iredlof-ajax-login-wordpress-plugin/
    It's similar to Mr. J. Tadlock's Sliding Panel, but with more built in functionality, in case anyone was wondering which plugin.

    Posted 2 years ago #
  4. My fault :) .. should read thematic_before which is just after the opening body tag

    .. need to get some sleep.

    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.