No announcement yet.

Help find template file

  • Filter
  • Time
  • Show
Clear All
new posts

  • Help find template file


    I'm using cool blue template in VB 5.5. I am trying to add this code which should go before the closing body tag in the footer of the correct template file. My question is where's the template file located? Here's the code below:

        var refTagger = {
            settings: {
                bibleVersion: "ESV"            
        (function(d, t) {
            var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
            g.src = "//";
            s.parentNode.insertBefore(g, s);
        }(document, "script"));

  • #2
    Editing templates is not recommended as it will be a maintenance nightmare every time you upgrade.

    The proper way to do what you want is via template hook and inserting it at footer_before_body_end hook location. If you don't know how to create a template hook, go to one of my vB5 mods in my signature below and follow the instructions there. They are for different hooks but the instructions are similar. You just have to replace the hook title and template name and of course the template content which is the script you posted.

    Let me know if you need help.

    GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!


    Related Topics