• Resolved rosmith

    (@rosmith)


    I was trying to fix a problem I am having and came across an article on the web which seemed to address the problem. The article’s instructions were:

    It was resolved by adding the following code to the very end of the functions.php:

    ‘< php add_filter(‘the_excerpt’, ‘do_shortcode’); >’
    (Question marks removed from code for this post)

    Before trying this, I located the functions.php file in the wp-includes directory. I then copied and pasted the file, renaming the new file functions_org. I then opened functions.php in Wordpad and added the suggested code to the end of the file.

    That produced a fatal error when I went to the web site.

    So, I deleted the functions.php file, renamed functions_org.php to functions.php and then uploaded the newly renamed file to the server.

    New when I go to the website, nothing at all is returned. just a white screen.

    I need to get this resolved quickly. Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rosmith

    (@rosmith)

    Can anyone please help me with this?

    Moderator James Huff

    (@macmanx)

    I’m willing to bet that the problem was with using WordPad. WordPrad is a word processor, which inserts special characters and invisible junk into files for formatting purposes. Use a plain text editor instead, like NotePad.

    http://codex.ww.wp.xz.cn/Glossary#Text_editor

    Thread Starter rosmith

    (@rosmith)

    Greetings,

    Thanks for the idea. I suspect you are correct, but how do I now get the special characters out of the file?

    Moderator James Huff

    (@macmanx)

    Try opening the file in a plain text editor. If you can see the characters, remove them. If not, download WordPress again and make your edits to a fresh copy of /wp-includes/functions.php using a plain text editor.

    Thread Starter rosmith

    (@rosmith)

    Thank you! Downloading and installing a new file did the trick.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Website disappeared!’ is closed to new replies.