WordPress.org

Ready to get started?Download WordPress

Forums

trying to alter/insert text into the footer in Sandbox theme (3 posts)

  1. kimberly_g
    Member
    Posted 2 years ago #

    Hello all - I'm new to websites, WordPress, CSS, basically all of this.

    I'm using the Sandbox theme on my site: obsoletist.net. I've created a child theme and made small modifications.

    One thing I can't figure out. In my footer, instead of what's there now, I'd like to have two things.
    Left-justified, I'd like to have "Powered by WordPress & Sandbox."
    Right-justified, I'd like to have this: "(ɔ) obsoletist."

    The justifying I think I get; what I can't figure out is how to add text. Can I even do that in my child style.css file, or do i need to edit footer.php in the theme itself?

    Any help or points in the right direction are very much appreciated. :)

  2. kimberly_g
    Member
    Posted 2 years ago #

    Well, update to say I got this almost solved. I edited the footer.php file to this:

    <div id="footer">
        Powered by <span id="generator-link"><a href="http://wordpress.org/" title="<?php _e( 'WordPress', 'Sandbox.' ) ?> " rel="generator"><?php _e( ' WordPress', 'Sandbox.' ) ?></a></span> &
    
        <span id="theme-link"><a href="http://www.plaintxt.org/themes/sandbox/" title="<?php _e( 'Sandbox', 'Sandbox.' ) ?>" & rel="designer"><?php _e( 'Sandbox.', 'Sandbox.' ) ?></a></span>
        <div id="footer">
          (ɔ) obsoletist.
      </div><!-- #footer -->
    
    </div><!-- #wrapper .hfeed -->
    
    <?php wp_footer() ?>
    
    </body>
    </html>

    That got what I wanted on two lines, both right-justified. I'm still trying to figure out how to left-justify one part & right-justify the other all on one line. Just in case anyone's interested. ;)

  3. bkjproductions
    Member
    Posted 2 years ago #

    I don't think it's a good idea to have two ID's named "footer"--- that is bound to cause trouble at some point.

    Maybe call the second one "footer_right"
    <div id="footer_right">my text to float right here</div>

    and then in your stylesheet.css add something like this:
    #footer_right {float: right;}

Topic Closed

This topic has been closed to new replies.

About this Topic