1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 adding thread preview tooltip to sidebar "new posts" widget

Discussion in 'Styling and Customization Questions' started by ungovernable, Feb 21, 2016.

  1. ungovernable

    ungovernable Active Member

    I really love XenForo post preview tooltip when browsing a forum and hovering over a topic title. I'm trying to add the same feature to the sidebar widget. I managed to do this adding the tooltip code to the sidebar's links:

    class="{xen:if $thread.hasPreview, PreviewTooltip}"
                        data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}"
    However, the tooltip is too big when the browsers's width is shrunk:

    Any idea how to fix this ?

    Attached Files:

  2. ungovernable

    ungovernable Active Member

    Fixed !
    Style proprety > Preview Tooltip
    Set max-width: 400px instead of width:400px

    But it would be better if there was a way to change the direction of the tooltip instead
  3. boeing747

    boeing747 Member


    Do you using widget framework?

    Can you tell me that where I have to add that code? which template exactly?

Share This Page