Hi, i am not sure what do you mean by “horizontal widget”?
Hi, Greg, sorry my bad English …
I need a widget on my website where the latest ads will be displayed next to each other, horizontally. ( recent ads horizontaly)
Hi, hmm by default we do not have such feature, the best you could do is use the shortcode below in the widget
[adverts_list columns="4" search_bar="disabled" show_pagination="0" posts_per_page="4"]
This will show 4 items next to each other. The 4 is a maximum number of columns you can have.
Additionally, in order to use the shortcode in a widget, you will need to enable shortcodes in the widgets, you can do that using a plugin like https://pl.wordpress.org/plugins/shortcode-widget/
Yes, it works, thank you, Greg.
How do I disable viewing dates and prices in this short code?
Add in wp-admin / Appeearance / Customize / Additional CSS panel
.advert-item-col-4 .advert-published {
display: none;
}
or to make sure the data is hidden only in a widget
.widget .advert-item-col-2 .advert-published {
display: none;
}
but if it works depends mainly on your theme HTML.
Hi, Greg, thank you.
I have only one problem.
See here: http://www.polesny.sk/screen.png
Can you send a link to this page? I should be then able to send you back a CSS code which will adjust the item height.
the page is in the test mode (Maintenance Mode) 🙁
Hmm ok, in the wp-admin / Appearance / Customize / Additional CSS panel try adding the code below it should allow you to change the image height
.advert-item-col-4 .advert-img {
height: 90px;
}
or to make sure the data is hidden only in a widget
.widget .advert-item-col-4 .advert-img {
height: 90px;
}
I am not sure if the 90px is a correct value for you site, so if the code will work you will need to fine tune it.
Amazing, it’s ok, thank you very much for your willingness to help me. Thank you again.