How to customize a [tagDiv] block widget

Posted in: Newspaper
Post count: 8

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?

Post count: 6535

Hi

This can be achieved using some custom css but first we need a link were we can inspect this. Please setup a block to display the desired post then send us site’s url so we can have a closer look and get back to you with the proper css code.

Thanks!

Post count: 8

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!

Post count: 23312

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.

Post count: 8

Almost solved, but still 2 problems:
1. I do not want the post title
2. The thumb image should be 300px x 250px

In other words, same css as
.td-a-rec.td-a-rec-id-sidebar

This way it will be exactly what I want to achieve.
Thank you

Post count: 23312

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!

Post count: 8

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!

Post count: 23312

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!

Post count: 8

Hi Catalin,

Using Block 1 and adjusting the css code accordingly, I solved every problem.
Thanks

Viewing 9 posts - 1 through 9 (of 9 total)
The forum ‘Newspaper’ is closed to new topics and replies.