WordPress.org

Ready to get started?Download WordPress

Forums

Spun
[resolved] How to align the footer (11 posts)

  1. deb76
    Member
    Posted 10 months ago #

    Please, I need help about the footer.
    I would like to center it horizontally on the page.

    Someone could help me?

    Thanks

    Déb

  2. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

  3. deb76
    Member
    Posted 10 months ago #

    Thank you for answer Andrew.

    I insert this code in CSS:

    #colophon a {
     color: #825f4f;
     padding-top: 30px;
     text-align: center;
     horizontal-align: middle;
    }

    And I tried also :

    #colophon a {
     color: #825f4f;
     padding-top: 30px;
     text-align: center;
      text-align: center;
    }

    But it doesn't work. I think I don't modify the good styles.
    Can you tell where I'd have to insert code?

    Thank you

  4. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    Install this Custom CSS Manager plugin to hold your CSS modificaitons. In its section of the dashboard, enter this:

    #colophon {
     text-align: center;
    }
  5. deb76
    Member
    Posted 10 months ago #

    I use Custom CSS Plugin.
    I had inserted your code but it doesn't work.

    See my footer code:

    ?>
    
    	</div><!-- #main .site-main -->
    
    	<footer id="colophon" class="site-footer" role="contentinfo">
    		<div class="site-info">
    			<?php do_action( 'spun_credits' ); ?>
    
    			<a href="http://wordpress.org/" title="<?php esc_attr_e( 'A Semantic Personal Publishing Platform', 'spun' ); ?>" rel="generator"><?php printf( __( 'Powered by %s', 'spun' ), 'WordPress' ); ?></a>
    			<span class="sep"> | </span>
    			<?php printf('Thème %1$s ', 'spun' ); ?>
    			<span class="sep"> | </span>
    			<?php printf('Copyright 2013 - Tous droits réservés'); ?>
    
    		</div><!-- .site-info -->
    	</footer><!-- #colophon .site-footer -->
    </div><!-- #page .hfeed .site -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>

    I think the problem comes from the footer.php

  6. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    Please understand that we cannot see your issue unless you provide a link to it.

  7. deb76
    Member
    Posted 10 months ago #

    Really sorry

    http://www.lecrindechocolat.com/

    It works because I change code in Spun theme's stylesheet and not in Spun child theme.
    But I'd to find a solution in child theme...

  8. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    Can you put this:

    #colophon {
     text-align: center;
    }

    Into your Child Theme style.css so we can debug why it isn't working?

  9. deb76
    Member
    Posted 10 months ago #

    It's done ! :-)

  10. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 10 months ago #

    I assume you just didn't clear your browser's cache because it's working for me.

  11. deb76
    Member
    Posted 10 months ago #

    You're certainly right Andrew.
    Now it works!!

    Thank you so much!!!!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.