Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter webpole

    (@webpole)

    ( 5 latest ads )

    Plugin Author Greg Winiarski

    (@gwin)

    Hi, i am not sure what do you mean by “horizontal widget”?

    Thread Starter webpole

    (@webpole)

    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)

    Plugin Author Greg Winiarski

    (@gwin)

    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/

    Thread Starter webpole

    (@webpole)

    Yes, it works, thank you, Greg.
    How do I disable viewing dates and prices in this short code?

    Plugin Author Greg Winiarski

    (@gwin)

    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.

    Thread Starter webpole

    (@webpole)

    Hi, Greg, thank you.
    I have only one problem.
    See here: http://www.polesny.sk/screen.png

    Plugin Author Greg Winiarski

    (@gwin)

    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.

    Thread Starter webpole

    (@webpole)

    the page is in the test mode (Maintenance Mode) 🙁

    Plugin Author Greg Winiarski

    (@gwin)

    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.

    Thread Starter webpole

    (@webpole)

    Amazing, it’s ok, thank you very much for your willingness to help me. Thank you again.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Horizontal widget for new ads’ is closed to new replies.