• Heikki

    (@heikkiwaan)


    Hi.

    This plugin isn’t working with Elementor PRO and Hello Theme.

    I have a test site set up for testing the plugin. Didn’t get it working. Would be nice to have it working ??

    I have the relevanssi and the ajax plugin installed.

    The page I need help with: [log in to see the link]

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

    (@msaari)

    Unfortunately, I can’t help with this. Elementor Pro is premium product and I have no access to it, so I can’t even start figuring out what’s wrong.

    I do know Relevanssi works with basic Elementor, but it depends on the way the search results page is built. Some ways work, other ways don’t, so perhaps it’s something like that here as well? Some Elementor post archive tools are incompatible with Relevanssi, and there’s nothing I can do about that.

    I see Hello is a free theme; I can take a look at that tomorrow to see if there’s something inherently wrong with that, but I only have basic Elementor, not Pro.

    stevenk55

    (@stevenk55)

    Hi, I have the same problem. Here is the code for the search.php to see if you see anything that would trip up Relevanssi. Thanks,

    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly.
    }
    ?>
    <main id="content" class="site-main">
    	<?php if ( apply_filters( 'hello_elementor_page_title', true ) ) : ?>
    		<header class="page-header">
    			<h1 class="entry-title">
    				<?php echo esc_html__( 'Search results for: ', 'hello-elementor' ); ?>
    				<span><?php echo get_search_query(); ?></span>
    			</h1>
    		</header>
    	<?php endif; ?>
    	<div class="page-content">
    		<?php if ( have_posts() ) : ?>
    			<?php
    			while ( have_posts() ) :
    				the_post();
    				$post_link = get_permalink();
    				?>
    				<article class="post">
    					<?php
    					printf( '<h2 class="%s"><a href="%s">%s</a></h2>', 'entry-title', esc_url( $post_link ), wp_kses_post( get_the_title() ) );
    					if ( has_post_thumbnail() ) {
    						printf( '<a href="%s">%s</a>', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) );
    					}
    					the_excerpt();
    					?>
    				</article>
    				<?php
    			endwhile;
    			?>
    		<?php else : ?>
    			<p><?php echo esc_html__( 'It seems we can\'t find what you\'re looking for.', 'hello-elementor' ); ?></p>
    		<?php endif; ?>
    	</div>
    
    	<?php wp_link_pages(); ?>
    
    	<?php
    	global $wp_query;
    	if ( $wp_query->max_num_pages > 1 ) :
    		?>
    		<nav class="pagination">
    			<?php /* Translators: HTML arrow */ ?>
    			<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'hello-elementor' ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
    			<?php /* Translators: HTML arrow */ ?>
    			<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'hello-elementor' ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
    		</nav>
    	<?php endif; ?>
    </main>
    


    Plugin Author Mikko Saari

    (@msaari)

    I installed Hello Elementor theme to my Elementor test site, and it works fine.

    How exactly is the search not working?

    stevenk55

    (@stevenk55)

    Thanks for getting back to me. I see this message for all searches when Relevanssi is active and regular search when it is not active :

    <p><?php echo esc_html__( 'It seems we can\'t find what you\'re looking for.', 'hello-elementor' ); ?></p>
    		
    Plugin Author Mikko Saari

    (@msaari)

    Does the Relevanssi admin search work? Do you get correct results there? Have you built the index, and is all the correct content indexed for the posts?

    stevenk55

    (@stevenk55)

    Not working for admin search either. I am rebuilding index now to see if that can help. Will report back. Thanks!

    Plugin Author Mikko Saari

    (@msaari)

    Did you check the Relevanssi admin search at Dashboard > Admin search?

    stevenk55

    (@stevenk55)

    Yes. It is checked. Rebuilding index didn’t help. Doesn’t work in admin panel or logged out in private browser. Checked console in developer mode and nothing special there. I am stumped.

    Plugin Author Mikko Saari

    (@msaari)

    If the Relevanssi admin search at Dashboard > Admin search does not work, either your indexing settings are off or your search has some unwanted filters. Note that I’m not talking about generic WP admin search; I’m talking specifically about the Relevanssi dashboard admin search.

    Check the cateogry restriction settings on the Relevanssi search to see if nothing is wrong there. If that doesn’t help, try disabling other plugins to rule out third-party conflicts.

    stevenk55

    (@stevenk55)

    Ok. Thanks. Will try that.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Does not work with Elementor + Hello theme’ is closed to new replies.