• Hello.
    I wanted to change the featured image size on a theme and added this code to functions.php down at the end of the page.

    <?php

    set_post_thumbnail_size( $width, $height, $crop );

    ?>

    Before that, I made a backup of the functions.php.
    After I added the code, the site is all blank, doesn’t works anymore.
    I uploaded the backed-up file “functions.php” through FTP in the theme functions folder but still blank site.
    I uploaded the original file “functions.php” from the archived unchanged theme, the site is still blank. The theme is Avada 3.7.4.

    Any help?
    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Turn on debug mode by editing the wp-config.php file and see what error is reported when you browse to the site.

    https://codex.www.ads-software.com/WP_DEBUG

    Thread Starter vasile99

    (@vasile99)

    Parse error: syntax error, unexpected ‘<‘ in …/functions.php on line 1620.

    My functions.php has only 1615 lines.

    There is probably blank spaces/lines at the bottom of the file.

    Thread Starter vasile99

    (@vasile99)

    Nevermind, there were 2 “functions.php” files and I edited them both. One of them supposed to be blank and I made it blank. It works now.
    Anyway, after I removed that code the site works again. Speaking of which, what went wrong? How can I resize the featured image because from media editor it shows me the smaller width & height but in the page the size is 100% I think.

    That is definitely a question for the Avada Support people.

    Requesting Support for a Commercial Product

    If you use a commercial theme or plugin and need support, please go to their official support channel. In order to be good stewards of the WordPress community, and encourage innovation and progress, we feel it’s important to direct people to those official locations.

    [product support URL, if easily found]

    Forum volunteers are also not given access to commercial products, so they would not know why your commercial theme or plugin is not working properly. This is one other reason why volunteers forward you to the commercial product’s vendors. The vendors are responsible for supporting their commercial product.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘functions.php’ is closed to new replies.