how to add text in footer wordpress

how to add text in footer wordpress

You can add your text before footer area. Using our code you can easily achieve this. In this article I will show you how to add text in footer wordpress. In this article I will show you how to add the text before footer area in wordpress.

how to add text in footer wordpress

how to add text in footer wordpress
how to add text in footer wordpress

First Open your functions.php file from your wordpress theme and use following code in the functions.php


function custom_footer() {
 $content = '</pre>
<div id="custom_footer">this is your custom function or text</div>
<pre>';
 echo $content;
}
add_action('wp_footer', 'custom_footer');

Then open your footer.php file from wordpress theme folder and put following code in footer where you want to show your custom text or function.


<?php wp_footer(); ?>

Published by

Purab

I am Purab from India, Software development is my profession and teaching is my passion. Programmers blog dedicated to the JAVA, Python, PHP, DevOps and Opensource Frameworks. Purab's Github Repo Youtube Chanel Video Tutorials Connect to on LinkedIn

Leave a Reply

Your email address will not be published.