ThemeShaper Forums » Thematic


Child Theme and Library/extensions

(6 posts)
  • Started 11 years ago by givemecoffee
  • Latest reply from ScottNix
  • This topic is not resolved
  1. givemecoffee

    I understand that for many customizations in Thematic we need to edit files inside the 'Library/extensions' folder. However, when using a child theme, what is the best way to make these edits and avoid issues when downloading Thematic updates? Because when I downloaded the latest release of Thematic, it overwrote my 'Library' folder and everything inside it.

    Posted 11 years ago #
  2. Best to make your modifications in your functions.php file and leave the core files of Thematic alone.

    Posted 11 years ago #
  3. givemecoffee

    Thank you for your response. But I tired that. As an example, I needed to remove the default footer text 'Powered by, etc' from my footer, but I need the div ID #siteinfo. The only way I've seen to remove that default footer text with a function is to remove that entire #siteinfo area. So I had to edit the 'footer-extensions' file inside the Library/extensions folder. Is there a better way?

    Posted 11 years ago #
  4. The info contained in the #siteinfo div is all editable in the Admin section of WordPress. You can modify the text, or even add html to it by navigating to "Appearance > Theme Options > Text in Footer"

    The example is a little confusing, even if nothing is placed in there, you still have the siteinfo div. Also there are plenty of overrides to do everything inside the functions.php.

    As a last resort, you can move the files you need to modify from the /library/extensions/ folder into your child theme and the theme will use those instead. I can't really see a scenario where you would have to do this. The reason not to do this is you will have to then manage that file and it won't auto update (provided there is new code added or an error that needs to be fixed, which is the whole benefit to child themes).

    You may want to explain a little more of what you are specifically needing.

    Posted 11 years ago #
  5. givemecoffee

    I needed to create my own footer which essential was copyright information on the left and an image on the right. And in order to do this, I need to remove the 'Powered by Wordpress...etc' info. I used the following function to do that:

    function remove_thematic_siteinfo() {
    remove_action('thematic_footer', 'thematic_siteinfoopen', 20);
    remove_action('thematic_footer', 'thematic_siteinfo', 30);
    remove_action('thematic_footer', 'thematic_siteinfoclose', 40);

    After I did that, my footer information moved up about 30 pixels and I couldn't get it back into place. I tried using all types of css, but it didn't work.

    Posted 11 years ago #
  6. So with the function above, you completely remove the #siteinfo div open, the content and the close.

    If you were to do away with that function you pasted and instead use this in the functions php you can override only the content, you could keep the site info div and just replace the content with

    function childtheme_override_siteinfo() { ?>
            <p>your code here</p>
    <?php }
    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.