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 © <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
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
It’s ok, I fixed my problem. I used the option in the flex theme and added the links.
thanks
mel
Mel, I am sorry I didn’t get back to you right away. Glad to know all is well.
I’ve read some good stuff here. Definitely worth bookmarking for revisiting.