Forums

[resolved] inserting symbol © and year before name (6 posts)

  1. chatto
    Member
    Posted 3 weeks ago #

    Hi,

    I want to insert the symbol © and the year 2012 before my name at the down left footer of my website: http://budhaditya.org/

    How can I do that?

    I use Brunelleschi theme.

    B.C.

  2. FazBuzzWP
    Member
    Posted 3 weeks ago #

    just add this before your name in the footer
    <?php echo "&copy; "; echo(date("Y")); ?>

    it should work

  3. chatto
    Member
    Posted 3 weeks ago #

    Hi,

    That didn't work:(

    Here is the code:

    </div><!-- #container -->
    <footer id="footer" role="contentinfo" class="row">
    <div id="footerbar" class="twelvecol last">
    <?php get_sidebar( 'footer' ); ?>
    </div><!-- #footerbar -->
    <div id="colophon" class="twelvecol last">
    <div id="site-info" class="sixcol">
    " title="<?php echo esc_attr( get_bloginfo ('name', 'display' ) ); ?>" rel="home">
    <?php bloginfo ( 'name' ); ?>

    </div><!-- #site-info -->
    <div id="site-generator" class="sixcol last">
    <?php do_action( 'brunelleschi_credits' ); ?>
    " title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'brunelleschi' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'brunelleschi' ), 'WordPress' ); ?>
    </div><!-- #site-generator -->
    </div><!-- #colophon -->
    </footer><!-- #footer -->
    </div><!-- #wrapper -->
    <?php wp_footer(); ?>
    </body>
    </html>

    Where should I insert?

  4. Chip Bennett
    Member
    Posted 3 weeks ago #

    Please post code in backticks, and limit code to around 10 lines.

    Because your code isn't escaped (by being placed between backticks), some of it is getting parsed, and is thus preventing us from seeing part of the actual code.

    That said, I would add the copyright right after this:

    <div id="site-info" class="sixcol">

    ...like so:

    <div id="site-info" class="sixcol">
    <?php echo "&copy; "; echo(date("Y")); ?>
  5. FazBuzzWP
    Member
    Posted 3 weeks ago #

    that should do and please use the code button or wrap your code with "`" mark in the text editor ...and if your code is longer use a text hosting site like pastebin.com

    cheers

  6. chatto
    Member
    Posted 3 weeks ago #

    It works!

    Thanks a lot!!

Reply

You must log in to post.

About this Topic