When using as a widget like this, Link Library is not loading its stylesheet. There is a setting under the plugin global options to load its styles and scripts on other pages to resolve this issue. The field is called “Additional pages to load styles and scripts”. It accepts a list of page IDs where it should load the styles and scripts. You would need to look up the numeric ID for the page that you are using as your front page and add it to this field, then save global options to see the proper styling. Let me know if this resolves the issue.
Thank you for the reply. I’ve entered the page IDs. It works for all of them except the front page (ID 2) and the calendar page (Kalender) . The calendar page is a custom link to the URL slug (permalink) for events in “the events calendar” plugin.
Digging into my code a bit deeper, there is a special “id” that can be used to load the styles on the front page, which is the string ‘front’, without the quotes.
As for the custom events link, I did a bit of searching and did not find an easy PHP API function to call to test if that page is being rendered. Perhaps you can ask their support if this exists? Like a is_events_calendar() function. If there is, then I could add code to support checking for this condition
I’ve now entered the following in“ Additional pages to load styles and scripts”:
front,89,91,93
Unfortunately, it’s not working. Is there anything else I need to adjust?
I’ll have to dig deeper into this issue but won’t have time until next week. I’ll let you know what I find.
In my tests, writing front in the list of page IDs does include the Link Library styles in the front page of my test site. Perhaps you are using a caching plugin for your site and the cache needs to be flushed for it to appear properly after making the change?
Another option would be to copy the styles of Link Library to your site’s stylesheet.
I’ve now copied the Link Library stylesheet into my website’s stylesheet. Everything works perfectly now. Thank you very much!
Glad to hear that solution did the trick. Please consider donating to support this plugin’s development