• Resolved jessicadixie

    (@jessicadixie)


    Hi there,

    First, thanks for the great plugins, they’ve improved my site a lot!

    I was wondering how to append a custom param to the end of the URL. Unfortunately, Relevanssi’s highlighting feature doesn’t work for me, so I’ve used a different plugin that appends ?hilite={query} to the end of the URLs.

    I’ve edited search-results-query.php to be the following:

    <p><a href="<?php the_permalink();?>?hilite=<?php $relevanssi_query ?>">

    But no changes were reflected on the front end, so I’m not sure what I’m doing wrong. Plus, this change would have to be made every time I update, so I’m not sure if there is a better way to do this.

    Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    The templates are there to be modified but to keep them safe from updates, copy the template under your theme directory in the directory relevanssi-live-ajax-search. Live Ajax Search will look from there.

    The default template Live Ajax Search uses is not search-results-query.php but search-results.php. That’s the likely explanation here.

    Thread Starter jessicadixie

    (@jessicadixie)

    Thank you very much for your help, Mikko!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add parameter to URL’ is closed to new replies.