Jump to content

Featured Replies

Posted

I'm really struggling to work out how to add an additional footer link (e.g where the Privacy Policy, Contact Us, Cookies links are), is the only way to do this to edit the actual footer source code? Thanks

Solved by Jim M

Go to solution

I use a simple app to add the footer links. There could be other methods, but I find this method best for my needs.

Activate IPS Dev mode and create an app. Add a template hook to the footer. The information below can help you add links to the footer.

Where it says "Website Rules" in the code, change it and put whatever you want displayed in the footer.

Use this when using web-links for the same internal website: <li><a rel="nofollow" href="/terms">Website Rules</a></li>

Use this when using web-links for external website: <li><a rel="nofollow" href="https://The-Website_link.com">Website Rules</a></li>

Footer link for "Website Rules"

Screenshot 2025-02-25 at 4.52.07 am.jpg

App Information

Screenshot 2025-02-25 at 4.55.45 am.jpg

You can use this code if you want the footer link to open in a new page.

<li><a target="_blank" href="https://The-Website_link.com">Website Rules</a></li>

Edited by beats23

  • Author

Perfect thanks @beats23

This works great, I'd really had thought that there would have been an easier way to do this.

No worries 👍.

On 2/25/2025 at 6:08 AM, beats23 said:

Activate IPS Dev mode and create an app. Add a template hook to the footer. The information below can help you add links to the footer.

Apologies for a stupid question :) but how/where can I activate Dev Mode?

  • Author

I'm really not sure as to why you can't enable it from the mod screen, you need to edit your constants.php file.

Oddly, you can't even leave the enable debug line commented out in the file as it'll give errors.

Edited by asigno

  • Solution
20 minutes ago, asigno said:

I'm really not sure as to why you can't enable it from the mod screen, you need to edit your constants.php file.

Developer mode shouldn't be used on a production instance as it can open up security holes, make it slower, etc... It also is for, well, developers so shouldn't be used by a common administrator and I say this with the upmost respect, if you can't add a line to a PHP file, you have no business in developer mode ❤️

 

It's also worth mentioning that you can do this with a Theme Hook in Theme Designer Mode so you don't need Developer Mode or a custom app.

image.png

  • Author

Thanks @Jim M that's sure an easier way to do it, and can easily edit the links now without having to enable dev mode.

Now I've learnt about the security risks of dev mode, how do I uninstall it from a production site!

Edited by asigno

6 minutes ago, asigno said:

Thanks @Jim M that's sure an easier way to do it.

Now I've learnt about the security risks of dev mode, how do I uninstall it from a production site!

You'll want to delete the line from your constant.php and then the files which you uploaded as a part of developer mode. That would be the dev folder in the root installation and then the dev folder in each of the application folders in /applications.

  • Author

Thanks, I thought they may have been a way like uninstalling/disabling an app.

Recently Browsing 0

  • No registered users viewing this page.