We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14779
    • 256 Posts
    I tried adding a ’favicon’ with this line in the template in the <head> section:

    <link rel="icon" type="image/png" href="/tmlpicon.png" />

    It works, but it seemed to wreck havoc with my template.
    see here: throughmylensphotography.com

    It seemed to block all content from being displayed, and made the two green horizontal bars from the header disappear. It also looks like the CSS is gone from the footer. I haven’t altered the template any other way, or messed with CSS.
    The page looks fine when viewed from within the manager.
      PM me to find out how you can get a FREE ipad 2!
    • Start by fixing the errors listed on the validator and then we can probably figure out if it has any impact actually... I suspect it’s another problems somewhere though:

      http://validator.w3.org/check?uri=http%3A%2F%2Fthroughmylensphotography.com%2F
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 14779
        • 256 Posts
        I replaced the template and it seemed to take care of a few problems.
        Unfortunatley, another issue has arisen.

        When you go to http://throughmylensphotography.com/ You see the home page.
        However, when you go to http://throughmylensphotography.com/index.html you do not see the home page, just a blank page.

        Friendly aliases are on, the suffix is .html, and the alias for the home page is index.
          PM me to find out how you can get a FREE ipad 2!
        • don’t do that. index is a very special name. Call it home. Call it main. Call it anything but index.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 14779
            • 256 Posts
            changed it to home, and it works!
            Thanks!
              PM me to find out how you can get a FREE ipad 2!
              • 4273
              • 356 Posts
              in Modx where to put favicon in the root dir or in the template dir
                SMF Bookmark Mod - check it out
                http://mods.simplemachines.org/index.php?mod=350
              • in Modx where to put favicon in the root dir or in the template dir
                I’m not sure if it matters, as long as the link tag references it correctly. wink
                  Garry Nutting
                  Senior Developer
                  MODX, LLC

                  Email: [email protected]
                  Twitter: @garryn
                  Web: modx.com
                  • 14779
                  • 256 Posts
                  Just use a line of code like this in your template under <head>

                  <link rel="icon" type="image/png" href="PATH_TO_IMAGE.png" />


                  for this example I used a PNG graphics file, but you can use JPEG, Bitmap, or an icon file. Just change the ’type=’ part to match the filetype.
                  For an icon file use: type="image/x-icon"
                    PM me to find out how you can get a FREE ipad 2!