Support » Plugin: WordPress File Upload » CSS for WordPress file Upload in Divi

  • Hello,
    I am using the latest version of Divi.
    the temporary shortcode generated by the plugin: [wordpress_file_upload uploadpath = “uploads / uploadPhoto” fitmode = “responsive” uploadpatterns = “*. jpg *, *. jpeg *” maxsize = “7” placements = “title / selectbutton + filename / userdata / uploadbutton / progressbar “].
    To modify the result on the page it is necessary to add CSS.
    My question: where to implement it? Inside the shortcode, if not where?
    Yours, Gérard

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nickboss


    Hi, the Pro version of the plugins allows to put the css inside the shortcode. However for the Free one, you need to put it in Custom CSS area of the theme.



    Thread Starter gefriche


    Is it possible to impose a minimum size for the upload file (5Mb for exemple) ?

    I am unable to expand the size of the first 5 areas intended to receive user input. Could you help me ? (

    Merci, Gérard

    Plugin Author nickboss


    Hi, here is sample code that will not allow to upload if the file is less than 5MB:

    if (!function_exists('wfu_before_upload_handler')) {
        function wfu_before_upload_handler($changable_data, $additional_data) {
            $minSize = 5242880;
            $errorMessage = "Upload is not allowed. Every file must be 1MB or larger.";
            $error = false;
            foreach ( $additional_data["files"] as $file ) {
                if ( $file["filesize"] < $minSize ) {
                    $error = true;
            if ( $error ) $changable_data["error_message"] = $errorMessage;
            return $changable_data;
        add_filter('wfu_before_upload', 'wfu_before_upload_handler', 10, 2);

    You need to put it in functions.php file of your theme.



Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CSS for WordPress file Upload in Divi’ is closed to new replies.