ThemeShaper Forums » Thematic

Add a div in the footer

(5 posts)
  • Started 1 year ago by helgatheviking
  • Latest reply from Chris
  • This topic is resolved

Tags:

  1. This feels like a simple question, but it is evading me. How do I add a div in the footer.... on the same level of #siteinfo. what hook do i use? i saw there are:

    add_action('thematic_footer', 'thematic_subsidiaries', 10);
    add_action('thematic_footer', 'thematic_siteinfoopen', 20);
    add_action('thematic_footer', 'thematic_siteinfo', 30);
    add_action('thematic_footer', 'thematic_siteinfoclose', 40);

    so i tried:
    add_action('thematic_footer', 'thematic_siteinfoclose', 25);

    but no luck.

    Posted 1 year ago #
  2. You could just redo it entirely:

    // Remove default Thematic actions
    
    function remove_thematic_actions() {
    	remove_action('thematic_footer','thematic_siteinfo',30);
    }
    add_action('init','remove_thematic_actions');
    
    // Generate new footer code
    
    function childtheme_siteinfo(){ ?>
    
    	<p>My new stuff</p>
    
    <?php }
    
    add_action('thematic_footer', 'childtheme_siteinfo', 30);

    Everything will then go inside #siteinfo.

    Posted 1 year ago #
  3. Hi Devin,

    Thanks for the help. Your suggestion spurred me towards a different solution... which was actually staring me right in the face in your options functions. I wanted to be able to put in my own cred that couldn't be changed and yet still allow the rest of the footer text to be changed from the options.

    function childtheme_footer($thm_footertext) {
        global $my_shortname;
    	$footertext = '<span class="colophon">Theme by: [child-author]</span>' ;
    	$footertext .= get_option($my_shortname . '_footertext');
        	return $footertext;
        }
    
    add_filter('thematic_footertext', 'childtheme_footer');
    Posted 1 year ago #
  4. theBlogButler
    Member

    So where do you guys/gals know about the proper hooks to remove? I want to remove the entire thematic_footer() so I can drop it in after thematic_after() hook but I can't find the proper doucmentation that says how to remove it. I found your notes here that say:

    'thematic_footer','thematic_siteinfo',30

    But where do you find that in the first place? I can't find that info on the http://themeshaper.com/thematic/guide/ page.

    Thanks!

    Posted 1 year ago #
  5. Hi,

    try this post: http://themeshaper.com/forums/topic/moving-subsidiary-asides-above-thematic-footer

    It describes how to move the subsidiaries above the footer.

    Chris

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.