ThemeShaper Forums » Thematic

[closed]

how can i edit the extension files?

(3 posts)
  • Started 3 years ago by CatLady916
  • Latest reply from CatLady916
  • This topic is resolved
  1. CatLady916
    Member

    i'd like to add something extra inside div#blog-title - the only way i see this happening is to manually add it into the thematic_blogtitle function in the actual header-extensions.php file.

    i tried copying a version and editing that, hoping it would override like a normal template file...i even tried creating a \library\extensions folder inside my child theme folder and still nothing...

    is it possible, since i shouldn't directly edit the "thematic\library\extensions\header-extensions.php" file, to somehow edit (or add on to) it in a child theme?

    thanks!

    Posted 3 years ago #
  2. You should read about how to use action and filter hooks in a child theme. In this case, you would need the following:

    function remove_blogtitle() {
    	remove_action('thematic_header','thematic_blogtitle',3);
    }
    add_action('init', 'remove_blogtitle');
    
    function childtheme_blogtitle() { ?>
    	<div id="blog-title"><span><a href="<?php bloginfo('url') ?>/" title="<?php bloginfo('name') ?>" rel="home"><?php bloginfo('name') ?></a></span></div>
    <?php }
    add_action('thematic_header','childtheme_blogtitle',3);
    Posted 3 years ago #
  3. CatLady916
    Member

    oh! now that i see it like that, i totally get it! i was thinking that when you use remove_action, it will delete it, making it not useful at all...

    i'm still a newbie - thanks for answering my (now) dumb question!

    (=^_^=)

    Posted 3 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.