WordPress.org

Support

Support » Themes and Templates » [Resolved] I edited functions.php and now wordpress does not work?

[Resolved] I edited functions.php and now wordpress does not work?

  • Today I was trying to edit the “Next Page >>” and “previous page <<” text which leads you to previous blogs, I was told in a tutorial to add it to this code to the functions page: –

    <?php wp_link_pages(array(‘next_or_number’=>’next’, ‘previouspagelink’ => ‘ « ‘, ‘nextpagelink’=>’ »’)); ?>

    Regrettably I did, and this error appeared: –
    Parse error: syntax error, unexpected ‘<‘, expecting ‘)’ in /home/bleaahc1/public_html/wp-content/themes/wordpresslay/functions.php on line 12

    I have absolutely no clue of what to do!
    Please help me! 🙁

    Greg 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • I take it your are not able to access your blog now?

    You have to remove that line from functions.php
    If you can’t get into your blog then you need to do it by ftp, or with a file manager if your host offers it.

    Are you trying to add next/previous to pages, to your main post page?

    hello (:
    how do i remove it through ftp?
    i mean, what file am i looking for and where about is it?

    And no, I already have them I just wanted to edit the text from “next page >>” to something else

    do you have ftp software? I use filezilla…..is free

    You need delete than line, or just upload fresh a copy of functions.php from the theme

    it goes in yourdomain.com/wordpress directory/wp-content/themes/your theme/functions.php

    if you are just trying to edit what the next/previous says, you don’t have to add anything anywhere

    the code is in your index.php or page.php or single.php, it’ll look something like this:

    <?php next_posts_link('&laquo; Previous Page') ?>
     <?php previous_posts_link('Next Page &raquo;') ?>

    you just edit the part in between the parenthesis

    Hey I figured it out, I deleted all the themes so the error wouldn’t be there and then logged in and uploaded a new theme and activated it, then I just edited it to how it was before! 😀

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] I edited functions.php and now wordpress does not work?’ is closed to new replies.
Skip to toolbar