Monday, October 14, 2013

How to edit footer in wordpress

We will show you how to edit the WordPress website footer. :)


 


1. Open wp-content/themes/theme Name/footer.php file with your HTML/PHP editor


2. The footer code could be something like this:


<a href="<?php bloginfo('url'); ?>/" title="<?php bloginfo('description'); ?>">
<?php bloginfo('name'); ?></a> © <?php echo date("Y") ?>
<a class="privacy" href="<?php echo home_url( '/' ) ?>?page_id=356">Privacy Policy</a>

It has some WordPress core tags included. Let’s see what each tag means:


<?php bloginfo('url'); ?>

This tag displays your WordPress website URL.




<?php bloginfo('description'); ?>



Displays the Tagline from the WordPress admin panel (Settings>General) It’s a website descripton




<?php bloginfo('name'); ?>



Displays the WordPress website title. Could be modified through the admin panel (Settings>General)


<?php echo date("Y") ?>

Displays the current year




<a class="privacy" href="<?php echo home_url( '/' ) ?>?page_id=356">Privacy Policy</a>



Displays the link to the Privacy Policy Page



How to edit footer in wordpress

No comments:

Post a Comment