Website error

  • Unknown's avatar

    Hello,

    I had a problem with the posts showing correctly on my ‘Oria’ themed wordpress site and naively I tried to edit some code in the Functions section of editor. I pasted the following code clearly into the incorrect place…

    //Masonry init
    jQuery(function($) {

    var $container = $(‘.posts-layout’);
    $container.imagesLoaded( function() {
    $container.masonry({
    itemSelector: ‘.posts-layout .hentry’,
    columnWidth : ‘.item-sizer’,
    /*
    isAnimated: true,
    animationOptions: {
    duration: 500,
    easing: ‘linear’,
    }
    */
    });
    });

    });

    Because it was clearly wrong I tried to access the site to change it. However, I can’t even access my website at all now, not even the wp-admin section. I am shown an error code that reads…

    Parse error: syntax error, unexpected ‘$’, expecting ‘&’ or variable (T_VARIABLE) in /home1/peumbrel/public_html/wp-content/themes/oria/functions.php on line 158

    I am panicking and have no idea what to do!

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi,
    You’ll need to re-post your question at https://wordpress.org/support/ (the support forum for self-hosted WordPress sites). This forum can only provide support for sites hosted at WordPress.com.

    (You probably need to log in to your site via FTP and upload the theme’s original functions.php file or delete that theme folder so your site loads the default theme, but the people on the other site should be able to give you more explicit directions.)

  • The topic ‘Website error’ is closed to new replies.