Categories

Featured templates

WordPress. How to add custom content to header/footer

Ryan DeWitt March 16, 2015
Rating: 2.7/5. From 3 votes.
Please wait...

This tutorial shows how to add custom content to header/footer in WordPress templates.

WordPress. How to add custom content to header/footer

Let’s add custom content below the footer copyright:

  1. Inspect footer using Firebug developer tool. We can see that data is being called from wrapper/wrapper-footer.php file. Check if this file is available inside wp-content\themes\themeXXXX\wrapper folder. You should copy it from wp-content\themes\CherryFremework\wrapper folder to your wp-content\themes\themeXXXX\wrapper folder in case such file is not available in your theme (XXXX is theme number). Please check video version of tutorial for more detailed information.

    Wordpress How to add custom content to headerfooter-1

  2. Open themeXXXX\wrapper\wrapper-footer.php in your editor. Change span of copyright text to span12 (in our case copyright text has span6). Add divs with desired span class. We are going to add several sections with different spans. Please note that we have added divs with custom classes inside span. In this case we will be able to assign specific styles for each section. Our custom text will be placed below copyright text. Save changes and upload the modified file:

    Wordpress How to add custom content to headerfooter-2

  3. Refresh your page. We have added custom content. Now we can assign specific styles for each section (as we have added divs with classes like foottext1, foottext2, foottext3). Add class name and assign specific styles. We will do that in firebug first. After that we will add styles to custom css section:

    Wordpress How to add custom content to headerfooter-3

  4. Add styles to Cherry options – Custom css section or directly to style.css file. Be sure to back up this code and store on cloud or storage in case you add styles to custom css section. Custom css code may not be saved after performing CherryFramework update. Perform the same changes for the rest sections. Be sure to specify appropriate class name. We have added styles for two sections in the footer. Save changes:

    Wordpress How to add custom content to headerfooter-4

  5. Refresh the page. We have added custom content to footer and added appropriate styles. Please note that you may need to add styles using media queries in order to assign specific styles for particular screen size:

    Wordpress How to add custom content to headerfooter-5

Let’s add custom content to the header.

  1. Inspect footer using Firebug developer tool. We can see that data is being called from wrapper/wrapper-header.php file. Check if this file is available inside wp-content\themes\themeXXXX\wrapper folder. You should copy it from wp-content\themes\CherryFremework\wrapper folder to your wp-content\themes\themeXXXX\wrapper folder in case such file is not available in your theme (XXXX is theme number). Please check video version of tutorial for more detailed information.

    Wordpress How to add custom content to headerfooter-6

  2. Open wp-content\themes\themeXXXX\wrapper\wrapper-header.php file in your editor. We should adjust spans for logo and menu as well as add div with appropriate span for our custom content. Modified file should look like on the screenshot below. Save changes and upload the modified file:

    Wordpress How to add custom content to headerfooter-7

  3. Refresh the page. We have added custom content to header. Be sure to add specific styles to appropriate class. Please note that you may need to add styles using media queries in order to assign specific styles for particular screen size:

    Wordpress How to add custom content to headerfooter-8

Feel free to check the detailed video tutorial below:

WordPress. How to add custom content to header/footer

Great Wordpress Themes
This entry was posted in WordPress Tutorials and tagged content, custom, footer, header, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket