Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 25Feb 25 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
February 25Feb 25 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"App Information
February 25Feb 25 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 February 25Feb 25 by beats23
February 25Feb 25 Author Perfect thanks @beats23 This works great, I'd really had thought that there would have been an easier way to do this.
February 27Feb 27 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?
February 27Feb 27 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 February 27Feb 27 by asigno
February 27Feb 27 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.
February 27Feb 27 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 February 27Feb 27 by asigno
February 27Feb 27 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.
February 27Feb 27 Author Thanks, I thought they may have been a way like uninstalling/disabling an app.