Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello everyone,

    I am doing various tests I managed to solve the problem of the tab, toogle, etc slider, replacing the main.js files of my theme. It states that the authors of my theme have released an update on the day of release version 4.5 of wordpress, so if for you is the same thing happened this might solve the problem.

    P.S: In my case I had to replace the file in the parent theme and not in the child theme.

    I hope this helps

    Alessandro

    Thread Starter primecoders

    (@primecoders)

    not working

    A previous version of file jquery.js in wp-includes/js/jquery/ solve the problem.

    Thread Starter primecoders

    (@primecoders)

    i change jquery.js in wp-includes/js/jquery/ to file jquery.js from
    jQuery Core 2.2.3
    jQuery Core 2.2.2
    jQuery Core 2.2.1
    jQuery Core 2.2.0

    jQuery Core 1.12.3
    jQuery Core 1.12.2
    jQuery Core 1.12.0
    jQuery Core 1.11.3
    jQuery Core 1.11.2

    nothing works.
    In the root domain is always working well but in a child domain is not working all the galleries are not the correct size.

    Then i copy old folder jquerry from older wordpress. Gallery not working…
    ehh

    The su slider on my multisite had a problem like you, the height of the image loaded in the slider was not right as I had expected. After some analysis I found that su_image_resize() in inc/core/tools.php was not working correctly.

    What I did was:
    Change line290 from this

    $file_path = str_replace( $blog_details->path . ‘files/’, ‘/wp-content/blogs.dir/’ . $blog_id . ‘/files/’, $file_path );

    to this.

    $file_path = str_replace( $blog_details->path, ‘/****/’, $file_path );

    *insert your multisite directory in ****

    This su_image_resize() function does resizing of the image files set in a shortcode.
    The line290 is setting a file path to the image to load in a shortcode, but the file path set in the line290 is not correct as it is. Need to be changed if we use the multisite mode.

    So, in my case, by changing this path, the height of the image is set correctly as I set in the shortcode.

    Thread Starter primecoders

    (@primecoders)

    that works.

    $file_path = str_replace( $blog_details->path, ‘/’, $file_path );

    i just use / & that works on oll site .

    THX fot your help.

    yey congrats

    Thread Starter primecoders

    (@primecoders)

    Hey shiro0507
    how to find the line.
    You searched throughout the project?

    Read the html codes of multisite carefully, I found that the filename of each image was lacking [width]x[height] parameters on the tail of its filename. And that made me think that this problem was caused by somewhere that was controlling image sizes.

    Then I grepped the plugin folder with several keywords, and I found su_image_resize() function that was doing resizes. Then debugged the function line by line. But it took 5 hours totally, to find out that the cause was a file path. The code modification was only 5 mins. Heavy.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Shotrcode Utimate not god working with WP 4.5’ is closed to new replies.