Articles Scroller - No Item Found! - Question | JoomShaper

Articles Scroller - No Item Found!

J

johnny

SP Page Builder 1 month ago

I'm using the addon articles scroller > carousel.

This is working however when I have no items a yellow warning banner appears and displays 'No item found!'

Can this be hidden? It looks very strange and to visitors it implies there's something brokwn.

How can I hide this if I have no articles to show.

0
8 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 month ago #220766

Hello johnny,

Thank you for reaching out to our technical support forum.

Please use this CSS to Template Options -> Custom Code -> Custom CSS

.addon-root-articles-scroller .alert{
    display: none;
}

Best regards

0
J
johnny
Accepted Answer
1 month ago #220953

Thanks @Ofi Khan, it would be great if this feature was built into SPPB rather than having to add custom css to all of my site.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 month ago #220965

You are welcome 😊

It is a basic rule to show "No items" if there's no items. It is not an ussue. Why would you use Article Scroller if you do not have any article? However, you can hide the banner with the above CSS>

0
J
johnny
Accepted Answer
1 month ago #220966

Why would it say 'No Items' if they are articles.. not items?

Also, this now means I have to apply that custom css on ALL my sites. Wouldn't it be easier for your devs to add an option to 'Hide if emoty'?

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 month ago #220972

If empty, then there should be some messages. Otherwise, you will be confused if articles are loading or not. Yes, you may change the text items -> articles . You can use language override to do this.

We can add the option but there are not many requests for this. I do not think it would be useful. Because you will use the addon only when you have articles. This is the general case for maximum users. Your situation is special and I understand this.

0
J
johnny
Accepted Answer
1 month ago #220975

Thanks @Ofi Khan

I don't think my situation is special. For example, if I have several articles set to automatically unpublish on a certain date/time, then the message 'No item found!' will display on my home page.

To visitors, this feels, and looks like there's an issue.

Your CSS code is a workaround that needs to be applied to every site. Imagine I have 100 websites using SPPB, I need to do this 100 times. Plus, if you ever change the HTML of this addon, the CSS rule will change and I'll need to do it all agian.

If your developers simply add a 'hide if no articles found' option, this solves it for everyine.

I'd appreciate if this could be added as a feature request as I feel it would be very beneficial.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 1 month ago #220982

Okay, I understand the idea after your clear explanation. I will talk about it with the developer team. Thanks for your feedback.

0
J
johnny
Accepted Answer
1 month ago #220983

Thanks! :)

0