Nope, no solution for that, as Relevanssi doesn’t really have any information about the location of words in the documents. Also, Relevanssi can’t just add link anchors in the posts when they are displayed.
Browser in-page search is the best solution in this case.
Ah, I looked at your site and that’s not what you mean…
You need to edit your search results template. It’s broken, as it’s missing post titles and links to the posts.
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
adds the title and
<a href="<?php the_permalink(); ?>">Read more...</a>
adds a link to the post, when added to your search results template.
Thanks for the help and the plugin.
Paste these right into the [child theme] search results template, search.php? I attempted that but no change.
Are there opening and closing tags that need to be included? Seems odd that one would put html tags into the php templates, but I know very little about programming.
Appreciate the help.
These should go the the search.php, yes, and outside PHP code sections. PHP templates often contain plain HTML code (and the HTML code I gave you contains PHP code).
If you share your search results template (put it in a pastebin), I can show you the correct place.
<?php
/**
* Displays the search results of the theme.
*
* @package Theme Horse
* @subpackage Attitude
* @since Attitude 1.0
*/
?>
<?php get_header(); ?>
<?php
/**
* attitude_before_main_container hook
*/
do_action( ‘attitude_before_main_container’ );
?>
<div id=”container”>
<?php
/**
* attitude_main_container hook
*
* HOOKED_FUNCTION_NAME PRIORITY
*
* attitude_content 10
*/
do_action( ‘attitude_main_container’ );
?>
</div><!– #container –>
<?php
/**
* attitude_after_main_container hook
*/
do_action( ‘attitude_after_main_container’ );
?>
<?php get_footer(); ?>
Hope that is what you meant by pastebin.
Ah, that gets complicated. Ask your theme developer, they’ll know. They’re the ones who made the broken theme in the first place…
Ha, ha. I appreciate the help anyway, thank you.
Hi, I’ve run into this problem, too, now that my site has gone live. It is using the latest version of the Iconic Theme. This functionality worked fine on the previewDNS site, but now that it is live, the […] link appears at the bottom of each search result but it isn’t linked.
What can I do to fix this?
This is a theme question, so you’re better off asking Iconic developers about this.