ThemeShaper Forums » Thematic


remove_action/filter does not work!! Please help!!

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

    I want to remove the hook to add the blog title in the header and then add my own.

    I added the following in my functions.php file in the child theme folder:

    function remove_blogtitle() {
    add_action ('thematic_header', 'remove_blogtitle',3);
    function blogtitle_image() { ?>
        <div id="blog-title"><span><a>/" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?><img src="image.png" /></a></span></div>
    <?php }
    add_action('thematic_header', 'blogtitle_image');

    The new function I created works, but the original blogtitle action (found in header-extensons.php) is now displayed twice.

    So why does it not remove the hook, and why does it now display it twice?


    Posted 11 years ago #
  2. neonbible

    Sorted it. Only had to add the priority in the remove_action command. And then noticed the anchor html was printing the blog title again!

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.