WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Footer text problem (6 posts)

  1. simich162
    Member
    Posted 1 year ago #

    Hey,
    Simple question... I can't get rid of the semicolo after company name] in my footer text.

    this is the php now
    &copy Stepford Digital <?php the_time('Y') ?> <?php bloginfo('name'); ?>

    This is what it looked like before.
    &copy; <?php the_time('Y') ?> <?php bloginfo('name'); ?>

    Anyone know why the semicolon won't go away? So basically I added the company name and when I saw that the semicolon came with I removed that. But it's still there...

    Thanks for any assistance!

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the semicolon is likely from somewhere else;

    please post a live link to the problem.

    or at least post the full code of footer.php

  3. simich162
    Member
    Posted 1 year ago #

    the semicolon is likely from somewhere else;

    please post a live link to the problem.

    or at least post the full code of footer.php

    Ok. here it is. Thanks!

    <?php
    global $options;
    foreach ($options as $value) {
    if (get_option( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_option( $value['id'] ); }
    }
    ?>
    <div class="clear"></div>
    </div><!-- /container -->
    </div><!-- /wrap -->
    <div id="copyright">
    &copy Stepford Digital <?php the_time('Y') ?> <?php bloginfo('name'); ?>
    	<?php if ($xs_disable_social_links == "true") { ?>
    	<?php } else { ?>
    		<ul id="social">
    			<li><a href="http://www.twitter.com/<?php echo $xs_twitter ?>" title="Twitter"><img src="<?php bloginfo('template_url'); ?>/images/twitter.png" alt="Twitter" /></a></li>
    			<li><a href="<?php echo $xs_facebook ?>" title="Facebook Page"><img src="<?php bloginfo('template_url'); ?>/images/facebook.png" alt="Facebook" /></a></li>
    			<li><a href="<?php echo $xs_feed ?>" title="Feed"><img src="<?php bloginfo('template_url'); ?>/images/feed.png" alt="Feed" /></a></li>
    	</ul><!-- /social -->
    	<?php } ?>
    </div><!-- /copyright -->
    <?php wp_footer(); ?>
    </body>
    </html>
  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    can't find any stray semicolon in the code.

    &copy; needs to keep the semicolon;
    if you want to have the current year in the copyright, then use echo date('Y');

    try to fix your line and see if that changes anything:

    &copy; Stepford Digital <?php echo date('Y'); ?> <?php bloginfo('name'); ?>

    you might need to post a live link to your site to illustrate where the semicolon appears.

  5. simich162
    Member
    Posted 1 year ago #

    Lol! This -> "© needs to keep the semicolon" solved it. (It already displays the current year.) Thanks alchymyth, you're the best!

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    (It already displays the current year.)

    it displays the year of the possibly last post shown on the page - totally random; go back into the archive of posts of 2012, to check it;

    http://codex.wordpress.org/Function_Reference/the_time

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags