Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6873

    Hi all,

    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:

    => …/Brightbox/framework/php/class-framework-widgets.php

    => I’ve changed:

    echo title=’”.get_the_title().”‘ href=’”.get_permalink().;

    echo “<span class=’news-thumb’>”;

    echo $image;

    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!

    Vanwero

    #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!

    Greets,

    Vanwero

    #55749

    Hey,

    if you just replace

    echo $image;

    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.

    #55750

    Hey Dude,

    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!

    Greets,

    Vanwero

    #55751

    Good to see Dude could help you :)

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Brightbox Latest News Widget: show other images in thumbnails (then post-image)’ is closed to new replies.