We are excited to introduce you to our brand new website! - www.thememasters.club
February 14, 2016

How to add link to the footer

As default you can’t add html codes via theme settings for security reasons.

If you are familiar with Php you can look at the following article;

Validating Sanitizing and Escaping User Data

So If you want to add a link to the footer field, first of all you should disable this function for that field;

1) Go to Appearance-Editor

2) Open “footer.php” file

3) Find the following line of code;

<?php echo stripslashes(esc_attr($footertext)); ?>

4) Change it with the following code (Be very careful and don’t change any other thing…);

<?php echo stripslashes($footertext); ?>

5) Click “Update file” button

6) There are 3 footer file in Divergent. You should edit all of them (footer.php, footer-homepage.php, footer-large.php)


7) Go to Appearance->Theme Settings->General

8) Add your link to the “Footer Text” field like on the following example (Use single quotation marks not double);

<a href='http://www.themeforest.net' target='_blank'>Themeforest</a>