Daniele Scasciafratte on "[Plugin: Glossary] br-tags (linebreaks)) 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/

well that br are required to see the tooltip text in a fancy view.
i can see a website with this problem?

I also found the extra
really annoying. I dealt with it by hiding them using CSS: .glossary-tooltip br {display: none;}

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
(no tooltips enabled)

http://deeluuxe.com/downloads/glossary_02.png
(tooltips enabled, classic style)

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!

@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/

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

I've already created few tickets on github about that requests (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?

deeluuxe
Member
Posted 21 hours ago #

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
(more than 91.000 purchases so far)

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
Member
Posted 25 minutes ago #

I believe that the unwanted <br> tags are generated by all of the ns in your public function tooltip_html().

You are right, wpautop and the n can have this problems.
The 1.1.0 will don't have the n in the code :-)

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 203 تاريخ : چهارشنبه 5 خرداد 1395 ساعت: 0:59