hyperlink in footer

Support Area Forums Forward hyperlink in footer

Viewing 4 posts - 1 through 4 (of 4 total)
URL to the page in question:
  • Author
    Posts
  • #30720
    Karen Sykes
    Participant

    Hi Bill, me again. I would like to place the text “Contact Us” on the right side of the footer, before the Forward favicon, with a hyperlink to my Contact Us page. I know we don’t like to change php without creating a child, but for such a small change I think it would be ok in the footer file. Would I just emulate the code for the div “footer-right” (pasted below) but use and no image source?

    thanks!

    <div id=”footer-right”>

    <?php if ( get_theme_mod( ‘footer_text_right’, false ) ) : ?>

    <p><?php echo get_theme_mod(‘footer_text_right’); ?></p>

    <?php else : ?>

    <p id=”organizedthemes-link”>/images/favicon.png” alt=”Organized Themes” /></p>

    <?php endif ; ?>

    </div><!– #footer-right –>

    </div><!– #footer-content –>

    #30721
    Karen Sykes
    Participant

    well, the forum didn’t like me using code. i was asking if i could just copy the footer right div and put my url where you have the organized themes url in the footer php file.

    #30724
    Bill Robbins
    Moderator

    Sorry for the trouble displaying the code there. You’re in the right spot though. You’ll want to replace this:

    
    <p id="organizedthemes-link"><a href="http://www.organizedthemes.com" target="_blank" title="Powered by the Forward theme from Organized Themes" rel="nofollow"><img src="<?php echo get_template_directory_uri(); ?>/images/favicon.png" alt="Organized Themes" /></a></p>
    

    with the text and link you’d like to display in your footer. I hope to have a future version of the theme were you can safely enter HTML into that field and output it correctly. At the moment thought it’s stripped out for security reasons.

    Let me know if you run into any trouble,
    Bill

    #30730
    Avatar photoSamV
    Participant

    As someone who has done this, I have to express the need for a child theme otherwise you’ll have to redo the above code each time there’s an update. Trust me, it’s less work in the long run.

    Do tell me if I overstep though.

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