Centralise Footer Text

Support Area Forums Moonrise Centralise Footer Text

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
URL to the page in question: http://http://dev.thalassaseafood.co.uk.gridhosted.co.uk/
  • Author
    Posts
  • #30765
    RecipeSocial
    Participant

    Hi Bill,

    Is it possible to centralise the footer text?

    Ideally I’d like to centralise the following copy:

    © Thalassa Seafood Restaurant 2015

    Website managed by Recipe Social

    I’d also like to make Recipe Social a hyperlink, is this possible?

    Thanks,
    Christian.

    #30771
    Bill Robbins
    Moderator

    Good Morning Christian,

    You can center the text this way:

    1. Go to your theme options page and choose the Advanced tab.
    2. Scroll down to the Custom CSS box and add this:
      
      footer#site {
      	display: block;
      }
      
      .footer-left,
      .footer-right {
      	float: none;
      	width: 100%;
      	display: block;
      	text-align: center;
      }
      
      footer#site #social li {
      	float: none;
      	margin-top: 17px;
      }
      
    3. Update your settings.

    To make the text a hyperlink, you’ll need to edit the theme just a bit.

    1. Go to the Appearance section in your WordPress dashboard and choose Edit.
    2. From the list of files on your right, choose footer.php
    3. Locate this section:
      
      <p class="custom-footer">
      	<?php echo of_get_option('footer_text'); ?>
      	<br /><?php echo of_get_option('footer_text_row_2'); ?>
      	<br /><?php echo of_get_option('footer_text_row_3'); ?>
      </p>
      
    4. It looks like the text for your site is in the row 3 spot. To add a link there, change that section to be like this:
      
      <p class="custom-footer">
      	<?php echo of_get_option('footer_text'); ?>
      	<br /><?php echo of_get_option('footer_text_row_2'); ?>
      	<br /><a href="http://yoursite.com" target="_blank"><?php echo of_get_option('footer_text_row_3'); ?></a>
      </p>
      

      where http://yoursite.com is the URL to your site.

    5. Save your changes.

    Hope that helps out,
    Bill

    #30837
    RecipeSocial
    Participant

    Hi Bill,

    Thanks for the above instructions and code, much appreciated. I’ve implemented and all works fine.

    Cheers,
    Christian.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Centralise Footer Text’ is closed to new replies.