Footer Returns After Update to 5.4.1
Permalink
Before updating I had successfully deleted the contents of the footer by deleting the contents of the file footer.php located here:
/concrete/themes/default/elements/footer.php
After updating, I brought up the editor to find that the footer had returned to the page.
Upon checking the footer.php file I found that it was still empty of footer data.
What might be causing this?
Where else is the data being drawn from?
Thank you.
/concrete/themes/default/elements/footer.php
After updating, I brought up the editor to find that the footer had returned to the page.
Upon checking the footer.php file I found that it was still empty of footer data.
What might be causing this?
Where else is the data being drawn from?
Thank you.
Yes, what you've said makes sense, but that's not what happened here.
As I said, the update did not rewrite any footer changes I made.
This made me wonder where it was getting footer data from.
For footer data, the update seems to have abandoned the use of siteroot/concrete/themes/default/elements and is now storing the footer.php file in two different locations:
1) siteroot/files/tmp/1286316675 /concrete5.4.1/concrete/themes/default/elements
2) siteroot/updates/concrete5.4.1/comcrete/themes/default/elements
As you suggested, I'll leave alone both those core instances of footer.php, and set up a mirrored directory structure outside /concrete.
Will each new update assign certain files (e.g. footer.php) to new locations?
The overriding question in my mind is -
Why isn't the footer made to be be in-line editable right out-of-the-box like everything else on the page?
Thanks
As I said, the update did not rewrite any footer changes I made.
This made me wonder where it was getting footer data from.
For footer data, the update seems to have abandoned the use of siteroot/concrete/themes/default/elements and is now storing the footer.php file in two different locations:
1) siteroot/files/tmp/1286316675 /concrete5.4.1/concrete/themes/default/elements
2) siteroot/updates/concrete5.4.1/comcrete/themes/default/elements
As you suggested, I'll leave alone both those core instances of footer.php, and set up a mirrored directory structure outside /concrete.
Will each new update assign certain files (e.g. footer.php) to new locations?
The overriding question in my mind is -
Why isn't the footer made to be be in-line editable right out-of-the-box like everything else on the page?
Thanks
Apparently, when you update the core files will now be pulled from the /updates folder.
Still, it is best practice to not touch the core files and override them via your site root as I mentioned.
The ability to edit areas in a theme are dependent upon that theme itself. It sounds like the theme you are using (default) just doesn't have an editable area in it's footer.
I would suggest browsing through the docs on creating custom themes. It's really not as scary as it sounds and can be really easy to modify an existing theme to suit your needs.
Still, it is best practice to not touch the core files and override them via your site root as I mentioned.
The ability to edit areas in a theme are dependent upon that theme itself. It sounds like the theme you are using (default) just doesn't have an editable area in it's footer.
I would suggest browsing through the docs on creating custom themes. It's really not as scary as it sounds and can be really easy to modify an existing theme to suit your needs.
also that second file is a temporary file,
Thank you for your help Lucas.
I don't really understand the Why's of making these modifications, so, for now, I will have to be satisfied with How's, keep lots of notes and do things by rote.
Hopefully I'll come to understand in time.
I don't really understand the Why's of making these modifications, so, for now, I will have to be satisfied with How's, keep lots of notes and do things by rote.
Hopefully I'll come to understand in time.
I have the same problem. I have attempted to do everything in this thread ... nothing works. Any other solution? Or, what am I doing wrong?
==========================
Update: I was only copying the footer.php file into appropriate folder string. I discovered that all the files have to be transferred over under themes.
==========================
Update No. 2: OK ... problem ... one of my sites works by putting the default theme files in the root theme folder. However, my other site, only works the way I want when in edit mode ... but if I'm not in edit mode, it doesn't work. Now, what could be the problem?
==========================
Update: I was only copying the footer.php file into appropriate folder string. I discovered that all the files have to be transferred over under themes.
==========================
Update No. 2: OK ... problem ... one of my sites works by putting the default theme files in the root theme folder. However, my other site, only works the way I want when in edit mode ... but if I'm not in edit mode, it doesn't work. Now, what could be the problem?
However, luckily enough, Concrete5 allows you to 'overwrite' the core files without modifying them. The proper way to modify something is to make a copy of the file and put it outside of the core concrete folder (also known as your root) within the same folder structure.
So, you would make a copy of your footer.php file and put it in /themes/default/elements/footer.php
Notice how this is above the /concrete folder, in your root directory. You will not have the folders 'default/elements/' in this directory, most likely it will be empty so you will have to create them.
Concrete5 will check the root folders for any overwrites first. That way going forward any updates will not copy over what you have modified.
Make sense?