Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #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,
    Georg

    #414701

    Hey 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.
    #414706
    This reply has been marked as private.
    #415436

    Hi!

    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,
    Elliott

    #415444

    Just 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,
    Georg

    #415884

    Hey!

    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,
    Ismael

    #415939

    Hi 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

    #416815

    Hi!

    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,
    Ismael

    #416966

    Hi 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

    #417004

    Hey!

    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!
    Kriesi

    #417008
    This reply has been marked as private.
    #417027

    Hey!

    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,
    Kriesi

    #417031
    This reply has been marked as private.
Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Additional in Hotspot text when using Image with Hotspot’ is closed to new replies.