Footer links

Support Area Forums Forward Footer links

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question: http://
  • Author
    Posts
  • #37208
    Cosmin Chiru
    Participant

    Bill, is there any way to add a few footer links?

    For a project I’m working on right now it need to add three links in the footer, something like “Terms & conditions”, “Confidentiality” etc. These links are of course pages defined by the administrator.

    I noticed that even if I create a new menu, I don’t have the option to add it to the footer.

    Thank you.

    #37209
    Bill Robbins
    Moderator

    Excellent question there. The actual footer doesn’t have a spot for a navigation menu present. But the inputs for custom footer text in the customizer can accept HTML. You could create links in the inputs for the left footer or right footer if you’d like with some code like this:

    
    <a href="http://yourlink.com">Link Text</a> <a href="http://otherlink.com">More Link Text</a>
    

    Just replacing the URL’s with the ones you’d like to use and the text with what you’d like each link to say.

    You could also add a custom navigation widget to the footer widget area. That would be another way to add a menu with links in it to the footer. But if you only need just the links and not other content in the footer to balance out the menu visually, I would stick with the HTML in the footer text spots.

    If you have trouble, let me know.

    Take care,
    Bill

    #37210
    Cosmin Chiru
    Participant

    I thought about hardcoding the links in the footer, but its not the best choice.

    The client won’t know how to add or remove a link from there.

    I guess I’ll use the “Custom menu” widget in the footer and alter the CSS to display the links on one line.

    #37215
    Bill Robbins
    Moderator

    Good Morning Cosmin,

    There’s one other option you might consider. You could create a child theme and copy over the footer.php file to the child. Then edit this section:

    
    <div id="footer-left">
    				
    				<?php if ( get_theme_mod( 'footer_text', false ) ) : ?>
    				
    					<p><?php echo html_entity_decode( get_theme_mod( 'footer_text' ) ); ?></p>
    					
    				<?php else : ?>
    				
    					<p>&copy; <?php echo date('Y'); ?> <?php bloginfo( 'name' ); ?></p> 
    				
    				<?php endif ; ?> 
    			
    			</div><!-- #footer-left -->
    

    so it’s something like this:

    You’d also need to make a functions.php file for the child theme and have a function in it similar to this one:

    That will make a new menu location for the footer and load it up in the left hand side. That’s another option to consider.

    Let me know if I can help out,
    Bill

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