Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Dediux

    (@dediux)

    I think is better to integrate this information into the OptionTree documentation (in WordPress). I followed the “How-to-guide” on the “Theme Mode” section, but there was nothing about deactivating the plug-in.

    Thank you for the response!

    Thread Starter Dediux

    (@dediux)

    I resolved the Issue, simply deleting the Plug-in, leaving it into my theme’s folder!

    Thanks for the great work you done!

    We are experiencing the same problem, tried all that’s in this thread, but nothing has changed…

    Thread Starter Dediux

    (@dediux)

    Also all websites external to our server are facing the same issue.

    It seems to be a jquery update conflict!
    Are you experiencing the same?

    Thread Starter Dediux

    (@dediux)

    I use the value auto with the array and it work! Only the string ‘normal-thumb’ in the place of that array doesn’t work. Thank you very much for the help and for the free time you have donated to me.

    Regards

    Thread Starter Dediux

    (@dediux)

    In my function.php file I have these line of code:

    // Enable thumbnails
    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size(180, auto, true); // Normal post thumbnails
    
    // Create custom sizes
    // This is then pulled through to your theme useing the_post_thumbnail('custombig');
    if ( function_exists( 'add_image_size' ) ) {
    	add_image_size('single-post-thumbnail', 500, auto, true); //narrow column
    }
    
    //Custom admin sizes
    add_image_size('tiny-thumb', 180, auto, true);
    add_image_size('normal-thumb', 500, auto, true);
    
    function custom_wmu_image_sizes($sizes) {
           unset( $sizes['thumbnail']);
           unset( $sizes['medium']);
           unset( $sizes['large']);
    
           $myimgsizes = array(
                  "tiny-thumb" => __( "Miniatura" ),
                  "normal-thumb" => __( "Normale" ),
           );
           $newimgsizes = array_merge($sizes, $myimgsizes);
           return $newimgsizes;
    }
    add_filter('image_size_names_choose', 'custom_wmu_image_sizes');

    And in my index.php I have these:

    <?php the_post_thumbnail( array(180,auto) ); ?>

    To recall the function!

    I think the problem was in the first two rules of my function file telling that the thumbnail size has to have 180, auto, true… It’s possible?

    And how can I get a output code without the specification of height and width for my img elements? Because now the elements contain already a resized img.

    Thread Starter Dediux

    (@dediux)

    It work now!
    But what’s the difference?

    Thread Starter Dediux

    (@dediux)

    Exactly the same!

Viewing 8 replies - 1 through 8 (of 8 total)