November 9, 2011 at 11:20 pm #6873
I’m using the “Brightbox Latest News”-widget in my sidebar. So far, so good…
But: In the tumbnail-area this widget is showing the image used in the posts. (And if no image is used in the post, the tumbnail is blanc)
What I would like to do is the following:
Refer to another image to show in this tumbnail-area.
=> Now I’v hard coded it, but this is not the way I like to work.
I found the php-file where I need to change this:
=> I’ve changed:
echo title='”.get_the_title().”‘ href='”.get_permalink().;
echo “<span class=’news-thumb’>”;
And replaced “the echo $image;” By:
echo “Hardcode path of image”;
This works fine but a few questions about this:
A) how can I refer to an image without have to hardcode it? (for example when I use the “Default Post Thumbnail” – Plugin? Can I get this selected picture here with a function?)
B) I am using the ‘category-icons’ – plugin. Is it possible to put here a function to get the icon linked to this post’s category? (This would be my ultimate solution!!!!!;-))
C) My steps above (hardcoded) are working, but the image is not shown IN the tumbnail border, but right from it. Any ideas how i can put it in the border?
Thanks in advance already for your answers!
VanweroNovember 10, 2011 at 6:53 am #55748
Maybe… I have to ask another question (because the solution above is a kind of “work-around”:
When I work with the Brightbox Theme and with the “Category-icons”-plugin, this plugin is working well and gets the selected icon for the posts…
But the “Brightbox Latest News”-widget isn’t picking the icons up when no image attached to the post…
And I really want to use this latest news plugin because it’s look is the most complete for me…
Thanks for your reply already!
VanweroNovember 10, 2011 at 7:50 am #55749
if you just replace
with your custom icon code I see no reason why this doesn’t work – there’s no if statement, etc. which can hide the image. The only reason I can think of is that the icon code doesn’t work correct or that css code hides the icon. Maybe modify the widget code an post a link here so that we can investigate the output.November 10, 2011 at 1:19 pm #55750
thanks for your answer…
I found the perfect solution that is working for me. Maybe also interesting for other readers:
1) I’ve installed a newer plugin “Category Icons Lite”
2) Put the code explained on this page (http://www.category-icons.com) in the “class-framework-widgets.php”
=> and replaced the echo $image with that line of code
Working perfect until now!
VanweroNovember 13, 2011 at 3:59 am #55751
The topic ‘Brightbox Latest News Widget: show other images in thumbnails (then post-image)’ is closed to new replies.