Center Copyright in Footer

  • Unknown's avatar

    Hello, I am working on customizing my footer copyright and running into some issues with centering it. Here is my current CSS:

    .site-info::after {
    content: “© 2019 CCI Research Foundation. All Rights Reserved.”;
    color: #ffff;
    }

    How can I get this line of text to center?

    Also, for adding in a hyperlink can this be done in the content code?

    Site: https://cc-researchfoundation.org/
    Theme: Maisha

    Thank you!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi @akilpatrickccinstituteorg,

    PLEASE PUT BELOW CSS IN TO MY SITES > CUSTOMISE > ADDITIONAL CSS

    How can I get this line of text to center?
    .site-info::after {
    content: “© 2019 CCI Research Foundation. All Rights Reserved.”;
    color: #ffff;
    display:block;
    align-text:center;
    }

    Also, for adding in a hyperlink can this be done in the content code?

    A hyperlink is an HTML tag which you can add in the content code.

    I hope it helps

  • Hi there,

    Please modify your code as follows:

    .site-info::after {
        content: "© 2019 CCI Research Foundation. All Rights Reserved.";
        color: #ffff;
    	display: block;
    	text-align: center;
    }

    It’s not possible to add a hyperlink to content added via CSS. If you need the text to be linked, I’d suggest you instead look for a plugin that allows you to add custom info to the theme’s footer.

    For more help with this, please start a live chat at https://wordpress.com/help/contact – your plan gives you access to priority live chat and email support directly from staff.


    @khushbudesaiblog
    ,

    align-text is not a valid CSS property and that code you provided will not work. It also looks like you copied that from a previous answer. When you copy answers from existing threads, please link back to the original, but in general this also isn’t advised for CSS issues, as each theme’s CSS is unique and what works on one theme doesn’t necessarily work on another.

  • Unknown's avatar

    @kokkieh,

    Thank you for bringing it to my attention.
    However, I made a typo mistake for text-align. I have checked the code using Inspect tool.

  • The topic ‘Center Copyright in Footer’ is closed to new replies.