Displaying issue using result shortcode

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Displaying issue using result shortcode

This topic contains 2 replies, has 2 voices, and was last updated by anna1918 anna1918 6 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #16489
    anna1918
    anna1918
    Participant

    Hi there, I’ve got some displaying issues at the search result Area. The height of each result Item is very stretched and doesn’t look how it’s displayed inside the plugin’s preview tab. Is there any way to solve that quickly?
    Thanks in advance.

    #16491
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    There are likely 2 causes here.

    One is, because the vertical result item height was set to 10%. It means that it will adopt to the parent document height. I have changed that back to ‘auto’, as per the default value: https://i.imgur.com/dn2mhDm.png
    However I was not able to test it, as I can’t clear the site cache on the front-end. It still shows the previously cached asset content.

    Another, more serious issue is, that the results container is wrapped within a

    <pre>

    HTML element. That can completely mess up the styling, so I the shortcode should not be wrapped by that: https://i.imgur.com/B6V8PzG.png
    If you use a visual editor of some sort, try a different block there, maybe a HTML instead of a Text block. Text blocks tend to use the ‘pre’ tag for preformatting.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #16510
    anna1918
    anna1918
    Participant

    Alright thanks a lot. Now it works perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.