Hi,
On my Homepage Sidebar I would like to create a widget showing a single random article from one Category.
This can easily accomplished by customizing one of the [tagDiv] blocks and using the proper filters. But I want to display only the article image, no title, author, category, tags… nothing. Just the post image.
The result should be same as 300×250 sidebar ads.
Can you please suggest a way to get rid of everything except the post image?
Hi Andrei,
Site url: http://www.lortica.it
The relevant block is the first item in the right-sidebar (“Vignette”).
If you need administration credentials please notify me a private email to contact you.
Thanks in advance for your support!
Hello giampablo,
Please try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-block-span12 .td_module_2 .td-module-meta-info, .td-block-span12 .td_module_2 .td-post-category {
display:none;
}
The result you should see here -> http://screencast.com/t/GMrS7Fmw
I hope this helps and if it is not what you mean, please provide more details about what you want to achieve so I will be able to provide a more accurate response.
Thanks.
Hello giampablo,
Please notice that the size of image is not a simple task to change it because this is generated by the block which is used on your sidebar and if you want to change it you will break the layout of the theme and we do not recommend increasing/decreasing this, sorry!
To hide the title for this, try the code below.
.td-block-span12 .td_module_2 .td-module-title {
display:none;
}
Thanks for your understanding!
Hi Catalin,
thanks for your answer. At this point I will leave as it is, and display the title, too.
Just for curiosity and to better understand your theme.
What happens if I choose a different widget block? I’ve seen 25 blocks available. Are all the same? Can I pick another one and get a different image size ratio?
Or can I create a new widget, customizing it to my needs? In such a case, can you point me out a module that I can use as a starting point?
Thanks again!
Hello giampablo,
Please notice that every block can be used in the sidebar because these were adjusted to can be used for sidebars. Please try to consult our demo tutorial here -> http://demo.tagdiv.com/newspaper/block-1/ because there you will see how each block will be fit if this is used in sidebar areas. Please keep in mind that each block uses some thumbnails will cut the image to the proper dimension. The list with these details you can see in theme panel, like this -> http://screencast.com/t/FY4y5eVVd
For more information about Blocks, please check here -> https://forum.tagdiv.com/newsmag-category-tag-on-modulesblocks/ -> https://forum.tagdiv.com/newsmag-theme-thumbs/ -> https://forum.tagdiv.com/thumbnails-vs-featured-image-size/
Thanks for your understanding!