Title: br-tags (linebreaks)) when using tooltips
Last modified: August 31, 2016

---

# br-tags (linebreaks)) when using tooltips

 *  Resolved [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/when-using-tooltips/)
 * When tooltips are enabled there are additional `<br>` tags added to the code.
   This causes linebreaks in the text and does not look as expected.
 * Is there any option or way to stopp the plugin from adding `<br>` tags?
 * **Example:**
 *     ```
       <span class="glossary-tooltip"><br>
       <span class="glossary-tooltip-item"><br>
       <a href="http://test.com/glossary/spring/">designer Konrad</a><br>
       </span><br>
       <span class="glossary-tooltip-content clearfix"><br>
       <span class="glossary-tooltip-text">Spring is on of the four seasons of the year. Lorem ipsum d... <a href="http://test.com/glossary/spring/">More</a></span><br>
       </span><br>
       </span>
       ```
   
 * [https://wordpress.org/plugins/glossary-by-codeat/](https://wordpress.org/plugins/glossary-by-codeat/)

Viewing 14 replies - 1 through 14 (of 14 total)

 *  Plugin Author [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399039)
 * well that br are required to see the tooltip text in a fancy view.
    i can see
   a website with this problem?
 *  [DPGrant](https://wordpress.org/support/users/dpgrant/)
 * (@dpgrant)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399142)
 * I also found the extra 
    really annoying. I dealt with it by hiding them using
   CSS: .glossary-tooltip br {display: none;}
 *  Thread Starter [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399158)
 * Unfortunately I can´t provide a link to the site because it´s on a private dev
   server.
 * But here are some screenshots:
    [http://deeluuxe.com/downloads/glossary_01.png](http://deeluuxe.com/downloads/glossary_01.png)(
   no tooltips enabled)
 * [http://deeluuxe.com/downloads/glossary_02.png](http://deeluuxe.com/downloads/glossary_02.png)
   (
   tooltips enabled, classic style)
 * [http://deeluuxe.com/downloads/glossary_03.png](http://deeluuxe.com/downloads/glossary_03.png)
   (
   mouse points on “designer Konrad”) Here you also see it´s not possible to click
   on the More-link in the tooltip because it closes when you try to get there)
 * Hope this helps a little!
 *  Thread Starter [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399160)
 * [@dpgrant](https://wordpress.org/support/users/dpgrant/): Thanks for sharing 
   the CSS – works fine!
 * Found a small issue:
    – Alphabetical order does not work (page 1 displays T to
   A, page 2 displays Z to U) [http://gruss-aus-berlin.com/glossary/](http://gruss-aus-berlin.com/glossary/)
 * Feature requests:
    – add page / post id(s) to bypass linking to the gallery on
   some pages – edit the slug for “glossary”-page – move the settings to be displayed
   as an item under ../wp-admin/options-general.php so the main menu stays a little
   more clean
 *  Plugin Author [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399166)
 * I’ve already created few tickets on github about that requests ([https://github.com/CodeAtCode/Glossary/issues](https://github.com/CodeAtCode/Glossary/issues))
   but i prefer that for support we not go in offtopic mode.
 * Thank you for the screen, in our theme used during the development we don’t find
   this problems, we continue to study that problem but in case the theme is downloadable?
 *  Thread Starter [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399170)
 * Ok, sorry for being offtopic – I´m not familiar using github…
 * The theme that´s used is Enfold: [http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990](http://themeforest.net/item/enfold-responsive-multipurpose-theme/4519990)
   (
   more than 91.000 purchases so far)
 *  Plugin Author [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399183)
 * So our plugin don’t insert the br maybe it is the theme or that point where it
   is executed something that add br.
    The 1.1.0 will contain this css fix on hold
   of other informations
 *  [DPGrant](https://wordpress.org/support/users/dpgrant/)
 * (@dpgrant)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399186)
 * I believe that the unwanted `<br>` tags are generated by all of the `\n`s in 
   your public function tooltip_html().
 *  Plugin Author [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399188)
 * You are right, wpautop and the \n can have this problems.
    The 1.1.0 will don’t
   have the \n in the code 🙂
 *  [DPGrant](https://wordpress.org/support/users/dpgrant/)
 * (@dpgrant)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399190)
 * Glad to help. I love this plugin.
 *  Thread Starter [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399198)
 * Tried version 1.1.0 but the plugin causes a fatal error:
 * Warning: require_once(../wp-content/plugins/glossary-by-codeat/includes/functions.
   php): failed to open stream: No such file or directory in /mnt/web021/e2/76/52546876/…/
   wp-content/plugins/glossary-by-codeat/glossary.php on line 34 Fatal error: require_once():
   Failed opening required ‘../wp-content/plugins/glossary-by-codeat/includes/functions.
   php’
 *  Plugin Author [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399200)
 * Dammit, I hate svn…
    I have uploaded that missing files, download again the plugin
   and sorry for the disturb!
 *  Thread Starter [dlx](https://wordpress.org/support/users/deeluuxe/)
 * (@deeluuxe)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399201)
 * Ok, fatal error is gone. 🙂
 * Some links are still broken:
    `<a href="http://gruss-aus-<a">berlin</a>`
 *  Plugin Author [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * (@mte90)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399202)
 * I think that we can abaon this thread and move on [https://wordpress.org/support/topic/keyworks-in-links-are-being-replaced-also-this-breaks-the-links](https://wordpress.org/support/topic/keyworks-in-links-are-being-replaced-also-this-breaks-the-links)
   for this problem.

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘br-tags (linebreaks)) when using tooltips’ is closed to new replies.

 * ![](https://ps.w.org/glossary-by-codeat/assets/icon-256x256.png?rev=1889092)
 * [Glossary](https://wordpress.org/plugins/glossary-by-codeat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/glossary-by-codeat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/glossary-by-codeat/)
 * [Active Topics](https://wordpress.org/support/plugin/glossary-by-codeat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/glossary-by-codeat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/glossary-by-codeat/reviews/)

 * 14 replies
 * 3 participants
 * Last reply from: [Daniele Scasciafratte](https://wordpress.org/support/users/mte90/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/when-using-tooltips/#post-7399202)
 * Status: resolved