Forums

Locating Footer Information in Inove (3 posts)

  1. Littimer
    Member
    Posted 3 years ago #

    Hi, I know this is an extremely basic question, but I have been looking to alter a few aspects of the text displayed in the inove theme's footer (don't worry, not removing attributions), but cannot find where this information is being pulled from in the code. The actual footer page is simply recalling the information from elsewhere.

    I'm sure I missed it somewhere in the theme files, but I've been through each one twice now. Thanks for the help in advance.

  2. Michael Fields
    Theme Wrangler
    Posted 3 years ago #

    it's in footer.php

  3. Michael Fields
    Theme Wrangler
    Posted 3 years ago #

    Basically, if you want to change the Copyright part, you will nedd to delete all the dynamic php bits from <div id="copyright"> and replace it with whatever static text you want.

    <!-- footer START -->
    <div id="footer">
    	<a id="gotop" href="#" onclick="MGJS.goTop();return false;"><?php _e('Top', 'inove'); ?></a>
    	<a id="powered" href="http://wordpress.org/">WordPress</a>
    	<div id="copyright">
    		<?php
    			global $wpdb;
    			$post_datetimes = $wpdb->get_results("SELECT YEAR(post_date_gmt) AS year FROM $wpdb->posts WHERE post_date_gmt > 1970 ORDER BY post_date_gmt ASC");
    			$firstpost_year = $post_datetimes[0]->year;
    			$lastpost_year = $post_datetimes[count($post_datetimes)-1]->year;
    
    			$copyright = __('Copyright &copy; ', 'inove') . $firstpost_year;
    			if($firstpost_year != $lastpost_year) {
    				$copyright .= '-'. $lastpost_year;
    			}
    
    			echo $copyright;
    		?>
    		<?php bloginfo('name'); ?>
    	</div>
    	<div id="themeinfo">
    		<?php _e('Theme by <a href="http://www.neoease.com/">mg12</a>. Valid <a href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a> and <a href="http://jigsaw.w3.org/css-validator/">CSS 3</a>.', 'inove'); ?>
    	</div>
    </div>
    <!-- footer END -->

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags