-
AuthorPosts
-
March 18, 2015 at 5:19 pm #413787
When I start a Hotspot with a <h4>Title</h4> I receive additional space above the title becaus of a superfllous “</p>” before the “<h4>” – This closing paragraph additionally does not match any opening one…
Regards,
GeorgMarch 19, 2015 at 6:09 pm #414701Hey GeorgLudwig!
Try adding this to your custom CSS.
.inner_tooltip > h4 { margin-top: 0 !important; }
If that’s not working then make sure Enfold is updated to 3.1 and send us a link so we can take a look.
Best regards,
Elliott- This reply was modified 9 years, 8 months ago by Elliott.
March 19, 2015 at 6:13 pm #414706This reply has been marked as private.March 20, 2015 at 5:54 pm #415436Hi!
The CSS appears to be working. The problem is that the headings have a top margin applied to them and when you use them in the hotspot tooltips the margin looks weird.
Regards,
ElliottMarch 20, 2015 at 6:14 pm #415444Just open the Debugger and uncomment my Custom-CSS which is:
.inner_tooltip {
margin: -20px 5px 5px 5px;
}The heading moves down by those 20px. If You check the HTML-Code in the debugger for this Tooltip and remove the unnessecayr “<p></p>” right before the heading, then everything looks fine – so it’s definetely NOT the margin of the heading. Now let’s check the raw source code.You will find the following code for the Hotspot:
<div class='av-image-hotspot_inner' style=' '>4</div><div class='av-image-hotspot-pulse' ></div></div><div class='av-image-hotspot' data-avia-tooltip-position='bottom' data-avia-tooltip-alignment='right' data-avia-tooltip-class='av-tt-xlarge-width av-tt-pos-below av-tt-align-right av-mobile-fallback-active av-permanent-tooltip-single main_color av-tt-hotspot' data-avia-tooltip='</p><h4>Markante <strong>Einsätze</strong></h4><p>
Let’s translate the data-avia-tooltip’s beginning to real HTML:
</p><h4>Markante Einsätze</h4>
So, there is a closing paragraph on top of the heading – no idea, where You place the opening one. It’s of course the block we removed right before in the HTML-Debugger.
Do You now see the problem ? I suggest it has to do with the
ShortcodeHelper::avia_apply_autop($content)
which is used in the image_hotspots.php (511).
Regards,
GeorgMarch 22, 2015 at 7:08 am #415884Hey!
Replacing avia_apply_autop with avia_remove_autop will remove the paragraph tag but you won’t be able to use shortcodes inside the tooltip.
Best regards,
IsmaelMarch 22, 2015 at 11:59 am #415939Hi ISmael,
this is yet another workaround – I have a working one using CSS – I guess the main goal should be to correct the error, not to create workaround – right?
Georg
March 24, 2015 at 12:42 am #416815Hi!
Yes, we have reported the issue to Kriesi. There should be a fix included on the next update. Use the temporary fix for now.
Best regards,
IsmaelMarch 24, 2015 at 10:16 am #416966Hi Ismael,
thanks for that. Workaround does the trick actually. Elliotts workaround doesn’t limit on Image with Hotspots, so that the Tooltips everywhere are affected. So for those having the same problem:
.av-image-hotspot .inner_tooltip {
margin-top: -15px;
}Georg
March 24, 2015 at 11:49 am #417004Hey!
I actually cant reproduce the issue, adding a h4 works fine for me: no extra paragraph gets added. Are there any extra spaces in your description before the h4? If thats not the case mind posting me your login credentials in a private reply so I can check what exactly you have entered?
Cheers!
KriesiMarch 24, 2015 at 11:55 am #417008This reply has been marked as private.March 24, 2015 at 12:30 pm #417027Hey!
Thanks, I am still not sure why this is added to your installation and not to mine but I was able to build an additional check for empty tags into the script that should fix the issue. Will be released with an update later today ;)
Regards,
KriesiMarch 24, 2015 at 12:38 pm #417031This reply has been marked as private. -
AuthorPosts
- The topic ‘Additional in Hotspot text when using Image with Hotspot’ is closed to new replies.