functions.php
- This topic has 6 replies, 4 voices, and was last updated 9 years, 11 months ago by .
Viewing 7 posts - 1 through 7 (of 7 total)
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
Hi,
I thought I’d download the CBOX child theme, which worked normally. However, when I could not edit the header at all, I went to appearance -> editor and to the functions.php. I think I must have deleted something accidentally as now when I try to access my page only this message shows up:
<b>Fatal error</b>: Call to undefined function infinity_get_header() in <b>/nfs/bronfs/uwfs/hw00/d62/ehntwrk/wordpress/wp-content/themes/cbox-child/functions.php</b> on line <b>12</b>
What can I do to fix this?
Thank you!
Hi @vkick
Do you have FTP access to your site? If you think you might have corrupted your functions.php file, maybe you can replace it with a new version? Or (more drastically) maybe you want to re-install the CBOX theme? I am pinging @r-a-y and @haystack for their insight – it might be a different issue.
Hi Scott, thanks for the quick reply!
I just figured out that I have FTP access to my site (via filezilla) and I think I located the functions.php file within the cbox-child theme folder. How would I go about to replace it? Could I copy the functions.php from the parent theme? If so, how?
And to re-install the CBOX theme, would I just delete the theme child and the parent folder from the wordpress theme folders? And would I than gain access to my wordpress site again and re-install the CBOX theme from there?
Again, many thanks for your help!
Verena
AH! I just replaced the functions.php file and it worked!
However, my initial issue remains. In the child theme, I cannot replace the header image. This grey screen (as seen in the screen shot) appears and I cannot click on files or upload any. Why does this happen?
Again, thanks!
@vkick Thank you for the report. I can confirm that this happens consistently when using CBOX Theme 1.0.9.
@r-a-y @bowe your thoughts on this would be appreciated… Somehow, in the latest version, the overlay div is written into the markup *after* the dialog div, whereas in 1.0.8, it is written into the markup *before* the dialog, thus producing the effect as seen in the screenshot. This can be solved with a CSS hack, by setting .ui-dialog { z-index: 1000; }
and .ui-widget-overlay { z-index: 999; }
but this does not address the root cause.
Additionally, there also seem to be a number of other, related issues with the uploader:
SCRIPT_DEBUG
is false
, the checkbox to “disable logo” has no width_muDialog.dialog('destroy').remove();
I’m not sure how deep this issue goes, i.e. is it worth papering over or should a more thorough audit of the causes be undertaken?
I have opened a PR for consideration at:
https://github.com/cuny-academic-commons/cbox-theme/pull/224
I’ve added my thoughts here:
https://commonsinabox.org/groups/help-support/forum/topic/theme-options-issues/page/3/#post-5350