How to Get Pages in a Footer on a Thesis Theme
The Thesis theme is a framework for WordPress blogs, enabling great flexibility in design by placing many design options in a user-friendly control panel. Thesis also uses a system of "hooks" that allow for even more design flexibility.
Often a website may include links in its footer, the bottom area of a Web page, to pages such as a privacy policy or contact information. A few simple steps can place these links into the footer of a website using Thesis.
Instructions
-
-
1
Open the custom_functions.php file in a text editor. The custom_functions.php file is located on the server where your WordPress blog resides in the wp-content/themes/Thesis/custom folder.
-
2
At the bottom of the custom_functions.php file, add the following text:
function add_custom_footer() {
?>
<p class="my-footer">Link to home: <a href="URL">Link Text</a></p>
<?php
}
add_action('thesis_hook_footer', 'add_custom_footer');
-
-
3
Replace "URL" in the code above with the link to the page you want in the footer (remember to keep the quotation marks), and replace "Link Text" with the text you want to be seen on the footer.
-
4
To create multiple page links, copy the line:
<p class="my-footer">Link to home: <a href="URL">Link Text</a></p>
Paste it immediately below the previous line and above the line that says "<?php."
-
5
Save the custom_functions.php file and upload it to the same location on your web server. You now can load the site in your Web browser to view your changes.
-
6
Use HTML in custom_functions.php (if you're familiar with HTML and CSS) to change the way the links appear and style the text by adding a style for the "my-footer" class in the custom.css file.
-
1
Tips & Warnings
Thesis' custom_functions.php file enables you to make changes to the format of your site without editing the page templates themselves.
References
- Photo Credit Comstock/Comstock/Getty Images