• Resolved pixelboutiqueuk

    (@pixelboutiqueuk)


    I have developed a WP theme and run through these steps to include ACF Pro: https://www.advancedcustomfields.com/resources/including-acf-within-a-plugin-or-theme/

    My theme with the ACF files included is 8.39MB and due to this wont upload to WP and throws the following error The uploaded file exceeds the upload_max_filesize directive in php.ini..

    I know I can increase the upload file size, but this is a theme I am looking at selling and don’t expect customers to know how to do this or want to faff around with this.

    How can I make my theme smaller in size and still include ACF?
    This seems like a cr*ppy circle ??

    I’ve asked on the ACF forums for support, but no response, so any help would be much appreciated.

    • This topic was modified 4 years, 10 months ago by Jan Dembowski.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The first thing would be to make sure the upload worked by increasing that memory directive and making sure the zipped file was zipped properly.

    Once you get past that hurdle then maybe you’ll want to pare back the features and consider publishing a child them with secondary enhancements or a companion plugin… or both.

    There’s probably some list of best practices to help you figure this out.

    Stay tuned in case someone else here has some ideas. I know there are quite a few themes that have several companion plugins to support their added features in the commercial theme world.

    I’ve seen a few in the repositories also.

    Have you tried uploading the theme with FTP or the hosting control panel file manager? That usually works for me when uploading files beyond the server limits.

    Thread Starter pixelboutiqueuk

    (@pixelboutiqueuk)

    The first thing would be to make sure the upload worked by increasing that memory directive and making sure the zipped file was zipped properly.

    Tested this and it does upload once I have increased the file upload size.

    So basically my theme is too large to include ACF and all of my theme features and functions? I’m guessing I can’t pare back the ACF file and it will mean paring back my theme instead?

    Hmm, will have to have a good look into this then, what a pain!

    Thanks for your help.

    Thread Starter pixelboutiqueuk

    (@pixelboutiqueuk)

    It seems to only throw the error ‘The uploaded file exceeds the upload_max_filesize directive in php.ini’ on my localhost.

    When I upload directly to a live WP site, it installs no trouble.

    Thread Starter pixelboutiqueuk

    (@pixelboutiqueuk)

    It seems to only throw the error ‘The uploaded file exceeds the upload_max_filesize directive in php.ini’ on my localhost.

    When I upload directly to a live WP site, it installs no trouble.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Theme too large to upload when including ACF’ is closed to new replies.