• Very new to WordPress. Site: kathysmythdesign.com
    I was using Portfolio Press theme with some success until I added this code to the options-functions.php to add more portfolio pieces to my gallery:

    function mytheme_posts_per_page() {
         return '16';  // Return however many items you choose
    }
    add_filter( 'portfoliopress_posts_per_page', 'mytheme_posts_per_page' );

    Got the error message: Parse error: syntax error, unexpected ‘)’ in /home/smyth154/public_html/wp-content/themes/portfolio-press/extensions/options-functions.php on line 210 and I could no longer log into Word Press.
    I then asked for help from my web host (HostGator). They got me back into Word Press, but changed the theme to Twenty Twelve. Now I cannot change to any other themes at all.
    I do not have a copy of the options-functions.php file and now don’t even see that when I downloaded a fresh copy of the Portfolio Press theme.

Viewing 5 replies - 1 through 5 (of 5 total)
  • If you’re not using a child theme I would add this to the bottom of functions.php in your theme (not options-functions.php)

    options-functions.php is located in the extensions folder in your theme.

    Thread Starter ksmyth1228

    (@ksmyth1228)

    OK. What should I add to functions.php?

    Don’t modify any theme files. Are you able to login and use WordPress at this point? If not, you need to use FTP to deactivate that theme.

    Thread Starter ksmyth1228

    (@ksmyth1228)

    No I can’t even log in. I didn’t change any files, just poking around at this point.

    until I added this code to the options-functions.php to add more portfolio pieces to my gallery:

    Isn’t that changing a file?

    Aside from that, if you cannot login now, you will need to use FTP to deactivate that theme. If you don’t have FTP access set up, ask your hosting company how to do that. Then find the theme folder on the server and change the name on it:

    wordpress
       wp-content
          themes
             portfolio-pressOLD
             twentytwelve

    Make sure (as in the above list) that twentytwelve is in that folder – in which case WP will default to it, and hopefully allow you to access your site again.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Parse error: syntax error. Can't change themes’ is closed to new replies.