ThemeShaper Forums » Thematic


how can i edit the extension files?

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

    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?


    Posted 10 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() {
    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 }
    Posted 10 years ago #
  3. CatLady916

    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 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.