About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
WoW! Thank you very much Sridhar!
That works so perfectly!
QN #1:
I had to change
$image = '';
TO
$image = '';
Is that the right way to do it maybe?
QN #2:
How can I change the alt “Default Featured Image” above to the post title for SEO perspective? Or what do you think about that?
1. Your code is cut off. Paste it at http://www.pastebin.com and give the links.
2. I have linked to the wrong file earlier. I updated the post now with the correct one. Use that instead. The alt title will automatically be the Post’s title.
Thank you!
You have solve QN #1 in the new code.
#2. The alt still doesn’t work so I made these changes. http://pastebin.com/fhv9nNUj
Is it the right way of doing it? If so do I have to make other changes so that there won’t be any interference? I will take the latest code you gonna make from here.
Thank you
Another option is to use a great plugin called “Genesis Featured Images” found here: http://wordpress.org/plugins/genesis-featured-images/
There is no manual configuration needed.
I use it here: http://947hotcountry.com/
I have it set so if there is no featured image, the post displays the radio station’s logo.
I’m not saying this is better or worse than the one you are discussing, I just thought I’d offer up a great alternative that I find to work perfectly and easily.
Thanks,
Jason
[…] April 22, 2014 by Sridhar Katakam 4 Comments […]
Hi Sridhar,
Cant get the Default Image to display if there is an image in the post, eventhough the ‘Featured Image’ is not set at the post level, it shows the first image in the post rather than the default image.