[Support request] default featured image

Home Forums Support [Support request] default featured image

Home Forums Support default featured image

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #576773
    sg

    Hi , I saw that similar thread and tested the code but its not working.

    i would like to add a default featured image in case no image found., how do i achieve this pls. thanks

    my image is in this dir: ../media/def-img/def-img.jpg

    GeneratePress 2.1.1
    GP Premium 1.6.2
    #576983
    David
    Staff
    Customer Support

    Hi SG,

    yes i see that post never got concluded. There are a couple of options listed here, one which requires a child them post_thumbnail function:

    https://premium.wpmudev.org/blog/default-featured-image/

    I know your aversion to plugins but this is something i have used which also provides category featured images and fall back images:

    https://wordpress.org/plugins/category-featured-images-extended/

    #577982
    sg

    oh, thats strange it doesnt work either,

    how do i append the tax name into this css ?

    <footer class="entry-meta">
       <div class="cat-links <strong>tax-name-here</strong> ">
         <span class="screen-reader-text">Categories </span>
          <ul class="post-categories">
           <li>
            <a rel="category tag" href="https://www.site.com/blog/home-living/">Home & Living</a>
           </li>
         </ul>
       </div>
    </footer>
    #580593
    David
    Staff
    Customer Support

    Hi SG, sorry this got overlooked, is this still an issue?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.