Hi readwriteandedit,
the link doesn’t work at the moment, probably because I am not logged in. So I can’t really see what the situation is at the moment.
Have you considered using CSS to style the elements?
Every ‘name’ (entry) has a class which makes it easy to style.
I think this will help you further:
<style>
.name_directory_name_box {
margin-bottom: 1em;
}
</style>
There are two advantages to this approach:
– You can also specify the margins as pixels so it can be exactly as you like
– If you want to modify the spacing (or remove it), you only have to edit this one stylerule and not every entry in the plugin π
Will this also be of help?
Hmm… I’m not sure why that particular approach would help this situation, that of adding line or paragraph breaks to the description output, though I like the idea of using CSS to style this so I can manage the styling through my child theme.
It was my fault that you couldn’t see the link for the Big List–the page is now public. Could you take another look, check out the differences between the text in the first listing (Crayola Crayons)–where I added paragraph breaks through html–and the other listings, where the text simply runs together? Just as you and I both created paragraph breaks here in our comments so the text doesn’t run together in a single paragraph, I want to do that with the text in my glossary descriptions. If I can do that through CSS, that would be great, but reading up on line and paragraph breaks in textareas, it seems to have something to do with strings and the nl2br() function, and I admit that I have no idea what to do with something like that. (If I can add code to my child functions.php, I’d be happy to do so. I just don’t know what the code would be.)
Thanks again for your help.
Ah, now I see what you are getting at! I thought you wanted a paragraph between every entry π
Yes, a functionality like this could be implemented with the nl2br() function.
If you’d like you can edit shortcode.php and try to search for html_entity_decode(stripslashes($entry['description'])).
I hope it will work if you change it to: nl2br(html_entity_decode(stripslashes($entry['description'])))
If it works I might add it to a configurable option in a feature release, but I can’t promise that at the moment. It would be a feature thats difficult to explain (but it is in line with the WordPress editor).
Anyway, I hope this will work for you
You are awesome–that was the perfect fix. Thank you very much. You saved me a lot of extra typing.
Nice to hear! I checked the website and it looks good π