where to add function in functions.php file

  • Author
    Posts
  • #12640
    Sarah

    I am putting together a website for a friend using the lovely Parabola. She wants to have some pages password protected, however does not want to use the default text “This page is password protected…” Found the function php to change it here: http://codex.wordpress.org/Using_Password_Protection
    It says to put it in the functions.php file, but in that file it saysclearly to not edit it. When I place the code there I get a fatal error, unexpected T-string. I also tried the themes.functions.php file. Didn’t work either. Any thoughts? Has anyone else done this? Thank you!!

    #12643
    Jim

    Hi Sarah

    Not a solution to the question you were asking, but this plug in seems to do exactly what you need.
    http://wordpress.org/plugins/custom-password-protected-text/

    Once activated I just simply updated the text under Settings in the Dashboard and was done.

    I hope it helps..

    Jim…

    #12657
    Sarah

    Hi Jim,
    Thank you so so much!!! Worked like a charm! Problem solved.
    Sarah

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘where to add function in functions.php file’ is closed to new replies.