Skip to content

Shortcode "No Results Found" Alt Text

This short tutorial will show how to change the 'No results found' text within the Inventory Listing shortcode.

Step 1:

Start by logging in to the backend then edit the page with the shortcode.

Step 2:

Add this code snippet in the Scripts n Styles box under styles. You may need to scroll down to find the box (if you cannot find it see step 2a).

Add your text in the green highlighted area (see image).

jQuery(document).ready(function(){
jQuery('div.sc-not-found').each(function(){
jQuery(this).find('h2 strong').text('Add your text here, between the single parenthesis.');
jQuery(this).css({'display':'block'});
});
})

Click to enlarge

Step 2a:

If you cannot find the Scripts n Styles box you may need to activate it by clicking on the 'Screen Options' tab in the top right.

Click to enlarge

Click to enlarge

Step 3:

Click the blue 'Update' button.

*Example results

Before:

Click to enlarge

After:

Click to enlarge