Explanatory Dictionary
[resolved] No white space between definitions (10 posts)

  1. missleo84
    Posted 2 years ago #

    Is there a way I can add a white space between each definition? There is no spacing between each term and definition so my glossary looks like one big paragraph.


  2. CliveSoulHeal
    Posted 2 years ago #

    I had the same problem edit the plugin css code in:

    I changed the following lines and now have my dictionary listed 'terms' in red bold underlined with a gap between one listed term definition and the next while also having a faint separating line below each definition too. It really makes a difference in presenting the dictionary / glossary page.

    .explanatory-dictionary-entry-word {
    font-weight: bold; color:#FC050D; border-bottom: 2px solid;

    .explanatory-dictionary-entry {
    margin-top:25px; margin-bottom:10px; border-bottom: 2px solid #E2DCDC;

    If you have long definitions and you want to include paragraphs then using
    < b r / > <b r / > in the definition creates a new line (without the spaces).

    you can also use < b >bold< / b > html tags for *bold*
    and probably < i >italics < / i > (again remove space in codes)

  3. sunil_guati
    Posted 2 years ago #

    Is this going to be fixed in the plugin soon ?

    The presentation part of the plugin needs some work.
    Also , it would be Very useful if the new line characters in the definition can be retained.

    Right now, all new line chars are lost : (

  4. EXED internet
    Plugin Author

    Posted 2 years ago #

    The plugin will be updated in the summer, as for these problems, I will see what I can do to make it work.

  5. ah_greenbelt
    Posted 1 year ago #

    Has there been a resolution to the spacing issue in the new update?

    You can see an example of 4.1.5 running here http://greenbelt.staging.wpengine.com/research/land-use-planning-dictionary/

    The top term does not have a synonym listed (no space between terms).

    The second term does have a synonym (no space between terms, but large space between synonym and definition).

    Is there a way to create standard space between terms?

  6. Slobiz Channel
    Posted 1 year ago #

    Hello ah_greenbelt,
    I encountered the same issue. To get rid of this problem I made sure that in my definition post there's no other HTML tags like '< /BR>' or '<P>' at the end of the definition so there'e no tag between the last word in the definition and the synonym.
    I hope it will work for you too.

  7. rjvandoesburg
    Plugin Contributor

    Posted 1 year ago #

    Whether the solution of Slobiz helped you or not, I will still have a look at the code for possible improvements.

  8. ah_greenbelt
    Posted 1 year ago #

    Thanks SloBiz.
    The extra line breaks were a work around to add padding after each definition in the old version. But now with the addition of synonyms it just pushes the synonym down.

    Thank you rjvandoesburg for looking into it. We won't be able to update the plugin until it is corrected. Otherwise, it becomes one long paragraph.

  9. PhilipBarrington
    Posted 1 year ago #

    Hi, Another possible way to address this is to follow the directions in the custom template. I have added the two <br/> tags to the end of the entry and uploaded the file. works a treat.

    <?php foreach ( $posts as $entry ) : ?>
    	<div class="explanatory-dictionary-entry">
    		<span class="explanatory-dictionary-entry-word"><?php echo $entry->post_title; ?></span>&nbsp;-&nbsp;
    		<span class="explanatory-dictionary-entry-explanation"><?php echo $entry->post_content; ?></span><br/><br/>
    		<?php if( !empty( $entry->synonyms ) ) :?>
    			<br /><small>- Synonyms: <span class="explanatory-dictionary-entry-synonyms"><?php echo $entry->synonyms; ?></span></small>
    		<?php endif;?>
    <?php endforeach;?>
  10. PhilipBarrington
    Posted 1 year ago #

    Whilst the upside of the solution I posted is convenient, it does then mean that there is another job that needs to be done when you update themes. It would be better if it could be house in the plugin data somehow.



    To generate the mini images I used another plugin simple image sizes. I also changed the php to float the div left and then added another div with a clear float and an nbsp;to generate the space, even when there is a short definition.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Explanatory Dictionary
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic