Posted: February 23, 2021 at 3:32 am
|
Hi there I had some previous support on editing my custom single event template. I managed to successfully edit it, but I realised that in doing so, my website’s footer no longer displays when viewing events. My PHP skills are limited, so I may have deleted something erroneously and now don’t know how to fix it. Please can you assist. I assume there is a small snippet I can add to display the footer again? Thanks in advance |
Hi there, Can you post the contents of your I’m guessing your now missing |
|
|
This reply has been marked as private. |
There’s a fair bit ‘wrong’ in that template, are you sure that is the correct template file? There’s no call to |
|
|
Hi Tony Yeah I’m sure that’s the correct file. When saved, the changes do reflect. The only thing I changed on that file recently was the code you gave me from a previous support thread to re-order the main description and excerpt
Please let me know if you can assist me further in correcting the template. Kind Regards |
If that’s the only change you made then the footer can’t have been loading previously as that code change doesn’t touch the footer. A correction for my above comment, your template does indeed call I can give you some pointers on what I can see from your template, but even after fixing this, you may need some deeper investigation as you may end up with mismatched elements on the page (e.g additional opening/closing divs). Backup the current file just incase before moving forward. Your loading a header (which will open the HTML doc and likely the body), but then restarting the HTML document again on line 16 and additional output through to line 21 so start by removing those lines, they aren’t valid. Then from the end of the template remove:
In place of those 2, use Does the page load correctly now? |
|
|
That fixed it. Thanks kindly Tony! |
You’re most welcome. Another quick fix I recommend is, on Line 57 of the PasteBin you linked to, add |
|
The support post ‘Website footer disappeared after editing single event template’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.