Problem editing footer
-
Why is it that I cannot edit the text in the footer or add script (for something like Kontera or Infolinks) before the </body> tag without getting an error?
-
At a guess, I’d say it depends on the footer and how skilful you are with coding/markup.
Hello esmi,
I was just editing the text for starters and it wouldn’t accept that. I changed all the graphics in the theme so I was just trying to add copyright information. I got a fatal error when I did that.
Later I tried to add script before the </body> tag and got the fatal error again.
Do some themes prevent all editing of php pages?
Do some themes prevent all editing of php pages?
Not that I know of. Some less-than-helpful themes encode content in the footer. Removing the encoded content can create errors – which makes life extremely difficult for anyone like yourself who just wants to ad some footer content. Avoid these themes like the plague, if at all possible.
It sounds to me like you’re inadvertently removing a PHP opening (
<?php) or closing (?>) tag when you try to edit your footer. Exactly what error do you get?NomadMik,
Show us the code you are wanting to change and we will be able to help quicker. Like esmi says you may be accidentally removing php code wen making the adjustments.
Here is what my footer currently says:
<?php wp_footer();?>
</div>
<div id=”footer”><small>TAKTEEK01 Theme by Eric Crooks | Powered by WordPress</small></div>
</body>
</html>Here is what I wanted to change it to:
<?php wp_footer();?>
</div>
<div id=”footer”><small>TheDarkTower.info Copyright 2009 by Nastasia.com | Powered by WordPress</small></div>
</body>
</html>Here is the error message:
Warning: fopen(D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress/wp-content/themes/takteek01/footer.php) [function.fopen]: failed to open stream: Permission denied in D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress\wp-admin\theme-editor.php on line 55
Warning: Cannot modify header information – headers already sent by (output started at D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress\wp-admin\theme-editor.php:55) in D:\inetpub\vhosts\thedarktower.info\httpdocs\wp\wordpress\wp-admin\theme-editor.php on line 70
Even when I restore the code to the original, I get the error message.
Also… I was hoping to add Kontera or Infolinks which requires adding script before the </body> tag. However I get the same error message.
It seems like this footer just doesn’t want to be changed or added to in any way.
NomadMik,
This is the right track. Try moving the code above the
<?php wp_footer(); ?>to see how the page is affected. How are you saving these files, through FTP or through the WordPress Admin Panel?</div> <div id="footer"> <small>TheDarkTower.info Copyright 2009 by Nastasia.com</small> </div> <?php wp_footer();?> </body> </html>Wow!!! That worked! Thank you so much!!!
The topic ‘Problem editing footer’ is closed to new replies.