Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    I could add a div with a class around that message so that you could hide it through CSS. Would that work?

    Thread Starter buyingamerican

    (@buyingamerican)

    Maybe? The question is… What would happen when there are truly 0 hits? ??

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I will check this soon. There are different conditions in the code when there are no links at all, or when there are no links in one category. I will run some tests soon and get back to you. Sorry for delay.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Sorry for the long time before getting back to you. I looked close at the code and the messages that are displayed for an empty category or for no links being displayed at all are actually different. So I assigned different span classes to them. For no links in a category, the class is nolinksfoundincat while if there are no links at all, the class is nolinksfoundallcats.

    Update to the latest version to get these new tags. Let me know if these changes allow you to hide the elements you wanted to hide.

    Thread Starter buyingamerican

    (@buyingamerican)

    I’m no WP expert, but I think I hacked my way to a solution using your new span classes. I added those two classes to the stylesheet and set them to display:none; . I think it worked. Now categories that don’t have “sock” in them are just hidden:

    https://buyingamericanblog.com/made-in-usa-list-search/?searchll=sock

    And, if there are no results at all in any category, the proper message now shows up:

    https://buyingamericanblog.com/made-in-usa-list-search/?searchll=woot

    How ’bout them apples?!?!

    Donation incoming & HAPPY NEW YEAR, Yannick!

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Glad to hear this did the trick and thank you for your support! Happy New Year!

    I have the same “No links found” problem. Here is my sandbox page:
    https://sandbox.tableaux.com/links-library/ …type the word “lumber” in the search field in the sidebar, you’ll see the results are there but it displays No links found

    @jackdewey – Was the fix you mentioned above ever added to an update? I have the latest version but do not see these settings?

    @buyingamerican – Can you expand on how you did this?

    Thanks guys!

    Hey TableauxAdmin …. how the heck did you get the ‘Brief Description’ field? I’ve been looking for this …. can you share?
    Regards
    JohnS

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    The brief description is displayed by going to the User Submission section of Library Configurations and setting the drop-down list next to the Link Description Label to Show or Required.

    View post on imgur.com

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Yes, I did put in the code change to add some new CSS classes around the No Links Found text that can be displayed when a single category is empty, or if all categories are empty.

    To hide the categories that are empty when some categories have results, you can add the following CSS rule in the Link Library stylesheet editor:

    .nolinksfoundincat {
        display: none;
    }
    Thread Starter buyingamerican

    (@buyingamerican)

    @tableauxadmin I updated to the latest version. Then, I went through my search page and library configuration and made sure everything looked kosher based on Yannick’s documentation. My search page only has this code:

    [link-library settings=1]

    Finally, as Yannick says, I added the code below to the Link Library stylesheet. ?? Good luck!

    /* ADDED THIS SECTION TO SUPPRESS CATEGORIES
    WITH NO SEARCH RESULTS */
    
    .nolinksfoundincat {
    	 display:none;
    }
    
    /* ADDED THIS SECTION TO SUPPRESS LINKS IF NO CATEGORIES 
    INCLUDE SEARCH RESULTS */
    
    .nolinksfoundallcats {
    	 display:none;
    }
    Thread Starter buyingamerican

    (@buyingamerican)

    Totally off-topic . . . @tableauxadmin let me know if I should add Tableaux to my Made in USA List under Home & Office (where most furniture/home decor things currently reside). Looks like your site would be a good match! ??

    https://buyingamericanblog.com/made-in-usa-list-links/home-office/

    OK adding the CSS you suggested worked.

    .nolinksfoundincat {
    display: none;
    }

    @buyingamerican Thanks for the offer to be listed on your buyamericanblog.

    We do not sell our custom decorative grilles product direct to homeowners, we sell to about 500 residential resellers throughout the U.S. who sell to their homeowner customers.

    You are welcome to link to our main residential site here: https://tableauxgrilles.com/ or direct to our dealer locator page here: https://tableauxgrilles.com/dealer-locator/

    Cheers!

    I always enjoy a good party like this thread! I am getting the repetitious No links foundNo links foundNo links found in my search results. It doesn’t specify cats or I tried putting the above code in the stylesheet but it didn’t help.

    First of all, which is “the stylesheet”?

    Secondly if that doesnt work, what next?

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘No Links Found?’ is closed to new replies.