WordPress.org

Forums

[resolved] Add to thumbnails in loop (6 posts)

  1. Wanderer
    Member
    Posted 1 year ago #

    The images on the loop currently have these attributes...

    <img width="460" height="180" src="blah-blah.jpg" class="attachment-post-thumbnail wp-post-image" alt="whatever" />

    I want to add:
    onload="this.style.opacity=1;"

    Can someone point me to the place where the code lives please?

    You'll see on the site that the top image on page 1 and the Instagram images fade in rather than appear, I want to do the same with the thumbnails.

    http://debono.com.au

  2. salsaturation
    Member
    Posted 1 year ago #

    You would need to create a child theme to either do that as part of the image upload or add it to the theme template files

    As per forum rules http://codex.wordpress.org/Forum_Welcome#Commercial_Products you should contact the theme developer as this is a commercial theme

    Theme Name: King Size WordPress
    Theme URI: http://themeforest.net/user/Denoizzed

  3. Wanderer
    Member
    Posted 1 year ago #

    Thanks salsaturation but that does not really help, I already have a child theme, but I can't find where the code is generated so I can modify it.

  4. esmi
    Forum Moderator
    Posted 1 year ago #

    The wordpress.org support forums are meant for the core application, themes and plugins that are distributed on wordpress.org. We do not support themes downloaded from elsewhere.

  5. Wanderer
    Member
    Posted 1 year ago #

    OK, thanks, I didn't realise my question was theme-specific. I only provided a link to my site to make the question clearer.

    So where in the core application is the code for the thumbnails generated?

  6. Wanderer
    Member
    Posted 1 year ago #

    Thanks anyway guys and gals, my determination paid off and I wrote my own code to achieve what I wanted, for the featured images in the loop list to fade in rather than appear as they load.

    http://debono.com.au/

Topic Closed

This topic has been closed to new replies.

About this Topic