How to Edit Footer Code in Flexibility Themes

Video #6 of 31 FlexSqueeze and Flexibility2 Themes

I like to have my privacy policy, site map, and contact links in the bottom of my footer.

Here is a short video that shows you how to do that.

Go to appearance/editor/footer.php

Copy all of the html code to notepad FIRST. Do not use MSWord as that put stray code IF you have to paste it back.

Find the html:

<?php endif; ?><div style=”clear:both;”></div>
</div></div><?php } ?>
<div id=”footerdark” style=”background-image: none;”> <p>Copyright &copy; <script type=”text/javascript” language=”JavaScript”><!–
var today = new Date();
document.write(today.getFullYear());
//–></script> <a href=”<?php echo get_settings(‘home’); ?>/”><?php bloginfo(‘name’);?>

Hit enter on your keyboard…

Add the following code:

</a> | <a href=”<?php get_settings(‘home’);?>/contact”>Contact</a>
| <a href=”<?php get_settings(‘home’);?>/privacy-policy”>Privacy Policy</a> | <a href=”<?php get_settings(‘home’);?>/site-map”>Site Map</a>
</p>

Code AFTER the above will look something like

</div>
<!– footer close –>

In order for the above links to work you should have a page called Contact, Privacy Policy, and Site Map.

If this doesn’t work for you–let me know and I can help. Remember to always copy ALL of the footer.php code BEFORE making any changes in your footer.php code.

Watch Video 7 in the FlexSqueeze Series

4 Comments

  1. mel on October 19, 2010 at 12:07 pm

    Hi Holly, great videos. Thanks.

    My links in the footer show up like this;

    http://melsiebert.net/“/”/contact”
    http://melsiebert.net/“/”/privacy-policy”
    http://melsiebert.net/“/”/site-map”

    I tried to remove the quotes and dashes in the editor but I could never get all the links to work.

    Any ideas?

    Thanks
    Mel



  2. mel on October 28, 2010 at 8:03 pm

    It’s ok, I fixed my problem. I used the option in the flex theme and added the links.

    thanks

    mel



  3. hollypowell on November 2, 2010 at 5:33 pm

    Mel, I am sorry I didn’t get back to you right away. Glad to know all is well.



  4. Pamila Flummer on November 12, 2010 at 2:45 pm

    I’ve read some good stuff here. Definitely worth bookmarking for revisiting.



Leave a Comment