bigspring / monolith

A starter theme for WordPress built with Twitter Bootstrap
MIT License
9 stars 1 forks source link

Fallback image function #251

Closed simonpmiles closed 9 years ago

simonpmiles commented 9 years ago

Whilst working on DSA the fallback image is used in a few places (block-grid-item, snippets etc) just as a little time saver could we create a function that would call this in?

I guess you could define the path to the fallback image somewhere in a config file and then whenever you want to call it in you'd do for example <?= fallback_img_magic(); ?>

Make it so.

jrgmartin commented 9 years ago

This will be easy enough to do. There should already be some cases of it being used in the theme as an example. What we really need is a function called "monolith_post_thumbnail" which will check for a featured image and if it doesn't exist, load the fallback.

simonpmiles commented 9 years ago

Make it so