Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #663

    Hi,

    1) I would like to completeley remove the jquery photo delay effect and preloading spinning wheel.

    I tried to remove the code as mentioned in a previous post:

    (http://www.kriesi.at/support/topic/cache-usage#post-1065)

    jQuery(‘#main’).kriesi_image_preloader({delay:100, callback:removeloader}); // activates preloader for non-slideshow images.

    It didn’t remove the effect. How can I safely remove this jquery photo delay effect?

    2) How can I remove this debug line from the source code: <meta name=”Framework” content=”Kpress” /><meta name=”Theme Version” ….content=”1.0″ />

    best regards,

    #32369

    Hey,

    1.) If you’ve removed the code and the images still “pre-load” please clear your cache and try again. CSS / JS files are usually cached by the browser to make subsequent page loads quicker so this may be a local version of the file you’re seeing.

    2.) Please be aware that if you have any future problems we may ask you to put the code back temporarily so we can debug. You can remove the Debug code by removing this code from /framework/helper_functions/lots_of_small_helpers.php:

    if (!is_feed())
    {
    $metatags .= "nn";
    $metatags .= '<!-- Debugging help, do not remove -->'."n";
    $metatags .= '<meta name="Framework" content="Kpress" />'."n";
    $metatags .= '<meta name="Theme Version" content="'.THEMEVERSION.'" />'."n";
    $metatags .= '<meta name="Framework Version" content="'.FRAMEWORK_VERSION.'" />'."n";
    $metatags .= '<meta name="CMS Version" content="'.get_bloginfo('version').'" />'."nn";
    }

    Cheers,

    James

    #32370

    Hi James, thanks for your prompt reply!

    1) It’s working fine, thks for your advise ! You’re right, it was the browser cache :-)

    2) I have this older code: Which part do I have to delete in order to delete the Debug code? pls advise soonest, thks.

    ##################################################################

    # removes meta tag “generated by wordpress” for security purpose

    # and add Version number of the theme and theme framework to a meta

    # tag for easier debugging by the author, in case of help requests

    ##################################################################

    function khelper_generator()

    {

    $metatags .= “nn”;

    $metatags .= ‘<!– Debugging help, do not remove –>’.”n”;

    $metatags .= ‘<meta name=”Framework” content=”Kpress” />’.”n”;

    $metatags .= ‘<meta name=”Theme Version” content=”‘.THEMEVERSION.’” />’.”n”;

    $metatags .= ‘<meta name=”Framework Version” content=”‘.FRAMEWORK_VERSION.’” />’.”n”;

    $metatags .= ‘<meta name=”CMS Version” content=”‘.get_bloginfo(‘version’).’” />’.”nn”;

    return $metatags;

    }

    add_filter(‘the_generator’,'khelper_generator’);

    #32371

    No problem, change this:

    function khelper_generator()
    {
    $metatags .= "nn";
    $metatags .= '<!-- Debugging help, do not remove -->'."n";
    $metatags .= '<meta name="Framework" content="Kpress" />'."n";
    $metatags .= '<meta name="Theme Version" content="'.THEMEVERSION.'" />'."n";
    $metatags .= '<meta name="Framework Version" content="'.FRAMEWORK_VERSION.'" />'."n";
    $metatags .= '<meta name="CMS Version" content="'.get_bloginfo('version').'" />'."nn";
    return $metatags;
    }
    add_filter('the_generator','khelper_generator');

    to this:

    function khelper_generator()
    {
    $metatags = "";

    return $metatags;
    }
    add_filter('the_generator','khelper_generator');

    #32372

    Do i have to remove the point? (see ??)

    function khelper_generator()

    {

    $metatags ??= “”;

    pls advise, thks

    #32373

    The point ( . ) is used by PHP to indicate that the content is in addition to existing content.

    eg

    $output = "1,2,3,";
    $output .= "4,5,6";

    return $output;

    would return 1,2,3,4,5,6 whereas:

    $output = "1,2,3,";
    $output = "4,5,6"; /* note no period!! */

    return $output;

    would only return 4,5,6.

    So, no you don’t need it but it doesn’t matter if you leave it there so long as you don’t define $metatags elsewhere :)

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘how to remove photo delay effect and spinning wheel?’ is closed to new replies.