how to add footer links to all webpages

Permalink 2 users found helpful
how do you add footer links on all the pages on your site?

View Replies: View Best Answer
Stiny replied on at Permalink Reply
Stiny
You have two options:

One: you can hard-code this into the footer.php module under your theme.

Or the easier way, but only if you have a theme that allows this:

Two: If your theme has an editable footer section, you can go to "Pages and Themes" in the Dashboard, hit Inspect > Page Types on the theme you're using, then Defaults. Every change you make in there will translate over to the rest of the site.
globalnerds replied on at Permalink Best Answer Reply
globalnerds
The easiest way is to hard code it into your footer.php - this way it will automatically appear on all of your pages.

Here is an example of code:

<div id="footer">
                        <span class="powered-by"><a href="http://www.globalnerds.com" title="<?php echo t('Website by Global Nerds')?>"><?php echo t('Website By Global Nerds')?></a></span>
                        2009 - &copy; <?php echo date('Y')?> <a href="<?php echo DIR_REL?>/"><?php echo SITE?></a>.


If you want to add a background image to the links, go to your theme's css file and add the following:

#page #footer{  padding-top:14px; clear:both; padding-bottom:16px; padding-left: 20px; padding-right:20px;color:#fff; font-size:10px; background: url(images/footer.png) no-repeat top; }


Keep in mind you will have to substitute your website, etc in the header.php and the CSS code will vary depending on your current CSS file. But this should give you a good start.
rbarcus replied on at Permalink Reply
rbarcus
I agree, the easiest way to add links in the footer is to add them to the footer.php file in your template.
pickmeupmagazine replied on at Permalink Reply
Thanks everybody! Very helpful!