• How to stop the default featured image from showing and featured image should show up only if the user has uploaded it.

Viewing 1 replies (of 1 total)
  • Cedam.

    I wrestled with this for some time and came up with a solution. The theme author is aware of the problem, and at least knows how I solved it. Hopefully he’ll release an update that provides some sort of on/off switch

    As you will know, the default featured image will not show up on your single ‘original’ post, unless you specify one. However, the default image shows up on all auto generated smaller summary posts in various 2 column and 3 column magazine views, including the Awaken Pro theme’s ‘related posts’, whether you asked for an image or not.

    If this is your problem . . .

    Fixing the problem is a little tiresome until the developer provides an update that gives a better fix. What you can do search through all files of the plugin for ‘thumbnail-default’. This will also find instances of ‘mini-thumbnail-default’ which you may need to address, too. There are about 16 places in 10 files in the Awaken Pro theme, fewer instances and files in the Awaken theme. In each case, the thumb-nail.jpg is given as a file reference for an <img tag. Insert a class statement, such as class=”thumb-default”,
    immediately after the <img tag (the result should look like <img class=”thumb-default” [then whatever comes next].

    You can then go to Themes/Customize/Site Styling/Custom CSS

    and add the following CSS statement (make sure you include the period at the head)

    .thumb-default {
    display:none;
    }

    This will turn off all default images.

    display:block; will turn them all on. There is no individual selection method. If you turn them all off, however, you will be alerted to missing image files that you might have been expecting to be there by a broken image link symbol, and the filename of the missing link.

    If you have uploaded an image, and it has been selected and is visible on your single post, but not on your smaller autogenerated magazine view posts (and you are getting a broken image link symbol, then you should try the ‘regenerate thumbnails’ plugin, which rebuilds all the necessary smaller views of your original post.

    Hope this helps

    Alan

Viewing 1 replies (of 1 total)

The topic ‘How to remove the default featured image’ is closed to new replies.