Home Forums Themes Support Claue Search Page Issue

Viewing 3 reply threads
  • Author
    Posts
    • #15591

      Hi,

      How do I change the header for search result page?

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #15594

      Hi,

      You can change header for search result page in Claue > Theme Option > WooCommerce > General Settings

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #15678
      This reply has been marked as private.
    • #15735

      Hi,

      Please open file init.php in claue > core > Libraries > vendors > woocommerce and replace code from line 516 to 525 with new code below

      if ( is_search() ) {
      			$output .= '<h1 class="mb__5 cw">' . sprintf(__( 'Search Results for: %s', 'claue' ), '<span>' . get_search_query() . '</span>' ) . '</h1>';
      		} elseif ( is_shop() ) {
      			$output .= '<h1 class="mb__5 cw">' . esc_html( cs_get_option( 'wc-page-title' ) ) . '</h1>';
      			$output .= '<p class="mg__0">' . do_shortcode( cs_get_option( 'wc-page-desc' ) ) . '</p>';
      		} else {
      			// Remove old position of category description
      			remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 );
      
      			$output .= '<h1 class="cw">' . single_cat_title( '', false ) . '</h1>';
      			$output .= do_shortcode( category_description() );
      		}

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 3 reply threads

You must be logged in to reply to this topic.