ThemeShaper Forums » Thematic

[closed]

Where in Thematic is site info links

(5 posts)
  • Started 2 years ago by Karl-Arne
  • Latest reply from helgatheviking
  • This topic is not resolved
  1. Helle.
    I have been going through at book from sitepoint about WordPress.
    I have laern much from the book but lack information of how to update the link below footer were site-info is given.

    It is written at bottom of the pages:
    Driving by WordPress. Build on Thematic Theme Framework.
    (In norwegian. I translate it to explain the link text in English)

    I will write here.
    Driving by WordPress. Build on Thematic Theme Framework by The Web Coder.
    The work "WordPress" shall be a link. Thematic Theme Framework is anonter link and "The Web Coder" is a link to my homepages.

    Where can I do this?

    Thanks for your time

    Posted 2 years ago #
  2. You'll need to add this to your functions.php in your child theme

    //add me to post footer
    function get_me($atts) {
    	return '<a href="http://yourwebsite.com">your name</a>';
    }
    add_shortcode('me', 'get_me');

    Than to display, go to theme options under appearance and add [me] - you'll see other shortcode examples below the box to.

    Posted 2 years ago #
  3. yes it is a theme option you can change under appearance > theme options

    you could also override the thematic_siteinfo() function with your own custom childtheme_override_siteinfo()

    function childtheme_override_siteinfo)(){
      echo "site powered by bacon";
    
    }
    Posted 2 years ago #
  4. vivojack
    Member

    I think I have found an error with the childtheme_override_siteinfo() functionality. Specifically in footer-extension.php you have

    if (function_exists('childtheme_override_siteinfo'))  {
    		function thematic_siteinfo() {
    			childtheme_override_siteinfo();
    		}
    	} else {
    	    function thematic_siteinfo() {
            	global $options, $blog_id;
    			foreach ($options as $value) {
            		if (get_option( $value['id'] ) === FALSE) {
                		$$value['id'] = $value['std'];
            		} else {
            			if (THEMATIC_MB) {
                			$$value['id'] = get_blog_option( $blog_id, $value['id'] );
    					} else {
                			$$value['id'] = get_option( $value['id'] );
      					}
            		}
    			}
            	/* footer text set in theme options */
            	echo do_shortcode(__(stripslashes(thematic_footertext($thm_footertext)), 'thematic'));
            }
        	add_action('thematic_footer', 'thematic_siteinfo', 30);
        }
    

    but because add_action('thematic_footer', 'thematic_siteinfo', 30); is inside the option that the user has not defined an override function, it needs to be added to the childtheme_override_siteinfo function. So Helgathevikings example above becomes:

    
    function childtheme_override_siteinfo)(){
      echo "site powered by bacon";
     add_action('thematic_footer', 'thematic_siteinfo', 30);
    }
    

    or else it does nothing. This is also true of childtheme_override_siteinfoopen() and childtheme_override_siteinfoclose() but I am assuming this is not what you intended.

    Thanks!

    Posted 2 years ago #
  5. please be sure you are using this version of thematic:
    http://developing.thematic4you.com/thematic-development-release/

    a lot of those errors were fixed

    Posted 2 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.