WordPress.org

Ready to get started?Download WordPress

Forums

MesoColumn
[resolved] Default image for WordPress Post Thumbnails (3 posts)

  1. noaneo
    Member
    Posted 9 months ago #

    Hello,
    possible to have a default image for WordPress Post Thumbnails?
    Thumbnail?
    Thank You

  2. Richie KS
    Member
    Theme Author

    Posted 9 months ago #

    yes. open index.php and archive.php or any template and search this code
    <?php echo dez_get_featured_post_image("<div class='post-thumb in-archive'>".$thepostlink, "</a></div>", 300, 300, "alignleft", "medium",dez_get_singular_cat('false'), the_title_attribute('echo=0'), false); ?>

    change the last parameter to 'true' without quote and insert your default images in images/ name post-default.png. best size around 300x300

    and rename custom-sample.css to custom.css and add this
    #custom .has_no_thumb .post-right { margin: 0px 0px 0px 320px; }

  3. noaneo
    Member
    Posted 9 months ago #

    Hi,
    thank you very much,this is when you have no picture to illustrate the article, I think it should be original in all themes.
    Thank You Again

Reply

You must log in to post.

About this Theme

About this Topic