• Resolved jonathanss

    (@jonathanss)


    Hi been trying to center my site info text…

    in footer.php:

    <footer id="colophon" class="site-footer" role="contentinfo">
    <div class="site-info">
    
    <?php
    echo '<a href="https://crescentic-silences.000webhostapp.com/"> All Rights Reserved @ Chalets & Caviar</a>.';
    ?>
    
    </div><!-- .site-info -->
    </footer><!-- #colophon -->
    
    Also added in advanced CSS editor.
    
    .site-info.container{
    text-align:center;
    }

    Still the text line saying “All Rights Reserved @ Chalets & Caviar.” is on the left and not centered.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your CSS selector is incorrect.
    If you’re trying to target this element:

    
    <div class=”site-info”>
    

    You need to use “site-info” as the selector (it has to directly match with the HTML class):

    
    .site-info {
    

    Hello, @jonathanss

    You can use .site-info as…

    .site-info {
        text-align: center;
    }

    Thanks.

    Thread Starter jonathanss

    (@jonathanss)

    .site-info{
    text-align:center;
    }

    ———–

    So it was that simple ?? just removing the .container!

    Big thanks, first time poster here and wow! Impressive response time!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘center site info wordpress’ is closed to new replies.