Support » Plugin: Relevanssi - A Better Search » MediaCenter Theme

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

    (@msaari)

    I have no way to tell, because that is a premium theme and I have no access to it. I took a look at the demo, and it looks like a fairly standard WooCommerce theme, so there are no obvious reasons why it wouldn’t work.

    That AJAX dropdown isn’t likely compatible with Relevanssi, though. If you can show me the search results template of theme, that would help.

    The search index is stored in the wp_relevanssi database table.

    Hi Mikko, Thanks for the quick reply.

    Below is the code from theme>mediacenter>searchform.php

    <?php global $s;
    /**
    * The template for the search widget
    */

    // The value of the field
    $inputValue = ($s) ? $s : ”;
    ?>
    <div class=”clearfix”>
    <form id=”search” class=”search-form” role=”search” method=”get” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
    <div class=”form-group”>
    <label for=”page-search” class=”sr-only”><?php echo __( ‘Type your search here’, ‘mediacenter’ ); ?></label>
    <input type=”search” name=”s” id=”s” class=”search-input form-control” placeholder=”<?php echo __( ‘Type to search’, ‘mediacenter’ ); ?>” autocomplete=”off” value=”<?php echo $s;?>”>
    </div>
    <button type=”submit” class=”page-search-button”>
    <span class=”fa fa-search”>
    <span class=”sr-only”><?php echo __( ‘Search’, ‘mediacenter’ ); ?></span>
    </span>
    </button><!– /.page-search-button–>
    </form><!– /.search-form –>
    </div>
    ______________________________________________________________________

    Also from theme>mediacenter>templates>header>mc-search-bar.php

    <?php
    /**
    * Search Bar
    *
    * @author Ibrahim Ibn Dawood
    * @package Templates/Sections
    */
    if ( ! defined( ‘ABSPATH’ ) ) {
    exit;
    }
    if( is_rtl() ) {
    $dir_value = ‘rtl’;
    } else {
    $dir_value = ‘ltr’;
    }

    if( is_woocommerce_activated() ) :
    $dropdown_categories = ”;
    $selected_cat = isset( $_GET[‘product_cat’] ) ? $_GET[‘product_cat’] : ‘0’;
    $group_addon_es_class = ”;

    if( apply_filters( ‘mc_enable_search_dropdown_categories’, true ) ) {
    $dropdown_categories = wp_dropdown_categories( apply_filters( ‘mc_search_dropdown_categories_args’, array(
    ‘show_option_all’ => __( ‘All Categories’, ‘mediacenter’ ),
    ‘taxonomy’ => ‘product_cat’,
    ‘hide_if_empty’ => true,
    ‘name’ => ‘product_cat’,
    ‘selected’ => $selected_cat,
    ‘value_field’ => ‘slug’,
    ‘echo’ => 0,
    ) ) );

    if( ! empty( $dropdown_categories ) ) {
    $group_addon_es_class = ‘has-categories-dropdown’;
    }
    }
    ?>
    <div class=”mc-search-bar”>
    <form role=”search” method=”get” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
    <div class=”input-group”>
    <label class=”sr-only screen-reader-text” for=”s”><?php echo __( ‘Search for:’, ‘mediacenter’ );?></label>
    <input type=”text” class=”search-field” dir=”<?php echo esc_attr( $dir_value ); ?>” value=”<?php echo esc_attr( get_search_query() ); ?>” name=”s” placeholder=”<?php echo esc_attr( __( ‘Search for products’, ‘mediacenter’ ) ); ?>” />
    <div class=”input-group-addon <?php echo esc_attr( $group_addon_es_class ); ?>”>
    <?php echo $dropdown_categories; ?>
    <button type=”submit”><i class=”fa fa-search”></i></button>
    <input type=”hidden” id=”search-param” name=”post_type” value=”product” />
    </div>
    </div>
    </form>
    </div>
    <?php else : ?>
    <div class=”mc-search-bar”>
    <form method=”get” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
    <div class=”input-group”>
    <label class=”sr-only screen-reader-text” for=”s”><?php echo __( ‘Search for:’, ‘mediacenter’ );?></label>
    <input type=”text” class=”search-field” dir=”<?php echo esc_attr( $dir_value ); ?>” value=”<?php echo esc_attr( get_search_query() ); ?>” name=”s” placeholder=”<?php echo esc_attr( __( ‘Search’, ‘mediacenter’ ) ); ?>” />
    <div class=”input-group-addon”>
    <button type=”submit”><i class=”fa fa-search”></i></button>
    </div>
    </div>
    </form>
    </div>
    <?php endif; ?>

    Plugin Author Mikko Saari

    (@msaari)

    These are search forms, but I’d need to see the search results template. It is likely in search.php.

    Hi, thank for the reply again. Searched the entire theme and did a cpanel search too, there is no search.php file in the theme.

    Plugin Author Mikko Saari

    (@msaari)

    Ah, that’s part of the reason then. I’d need to see the whole theme then, but it may be quite tricky to make the theme Relevanssi compatible.

    Hi There,

    Sorry to bump this again, since this did not work for me. I uninstalled the plugin, but I noticed that in the back-end (Since this plugin was activated), the product search is not loading anything and time-outs. However, as mentioned, this plugin is uninstalled.

    I just want to know, if there are any files stored in the server I should remove/delete as well? (maybe in phpmyadmin), etc.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘MediaCenter Theme’ is closed to new replies.