• Resolved designreaction

    (@designreaction)


    The plugin has been working great and still works, but all of a sudden I’m getting rogue characters in the search suggestions before and after the title. You can find the live site here:

    www[dot]bwtrimawr[dot]co[dot]uk/funeral-announcements/

    Nothing’s really changed on the site bar new posts added, so not sure what it could be. Anybody else experience this and has a solution?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Scott (@scottsweb)

    (@scottsweb)

    Hi
    I have had a look at your site and I cannot see anything obviously wrong. The results from the AJAX endpoint (e.g: wp-admin/admin-ajax.php?action=iss_suggest&q=jo) are sane JSON results so it has to be an issue in the rendering in some way.

    The plugin works by outputting mustache templates in your HTML, looking at the source I see:

    <script type="x-tmpl-mustache" id="wpiss-post-template">/*<![CDATA[*/<li class="iss-result">
    			{{#image}}
    				<img src="{{image}}" width="50" height="50" />
    			{{/image}}
    			{{{title}}}
    			<span class="iss-sub">{{postdate}}</span>
    			<span class="iss-sub">{{posttype}}</span>
    		</li>/*]]>*/</script> <script type="x-tmpl-mustache" id="wpiss-taxonomy-template">/*<![CDATA[*/<li class="iss-result">
    			{{{title}}}
    			<span class="iss-sub">{{taxonomy}} ({{count}})</span>
    		</li>/*]]>*/</script>

    It looks like another plugin or part of your theme (perhaps a HTML compression plugin?) is adding unnecessary <![CDATA[* code comments to your script markup. You will need to work out where these additional code comments are coming from and disable it.

    Thread Starter designreaction

    (@designreaction)

    Thanks Scott, I am running W3 Total Cache so looked into the minify settings a little more.

    It is now corrected and it was to simply enable ‘Inline JS minification’ under the ‘HTML minify settings’

    Thanks for the guidance and response ??

    Plugin Author Scott (@scottsweb)

    (@scottsweb)

    Perfect! glad to have helped.

    Thread Starter designreaction

    (@designreaction)

    Too be honest, I as to eager jumping on to the forums, should’ve disabled all plugins first to check ??

    Much appreciated Scott!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘rogue characters in result suggestions’ is closed to new replies.