*

danads

  • ***
  • 43 posts
latest-search on main.php
« on: September 06, 2022, 09:43:15 PM »
On epsilon theme it is this line on main.php

Quote
<?php eps_get_latest_searches(20) ?>
        <?php $i = 0; ?>
        <?php if(osc_count_latest_searches() > 0) { ?>
          <div class="latest-search">
            <?php while(osc_has_latest_searches()) { ?>
              <a href="<?php echo osc_search_url(array('page' => 'search', 'sPattern' => osc_esc_html(osc_latest_search_text()))); ?>" data-text="<?php echo osc_esc_html(osc_latest_search_text()); ?>"><?php echo osc_highlight(osc_latest_search_text(), 18); ?></a>
              <?php $i++; if($i > 20) { break; } ?>
            <?php } ?>
          </div>
        <?php } ?

Is working correct but is show me a lot of words and some are not nice , not at all and for SEO and google can be very bad.

How I can avoid all this word to not be vizible to be blocked.

Thanks.

*

Remus

  • ***
  • 45 posts
Re: latest-search on main.php
« Reply #1 on: September 07, 2022, 01:05:52 AM »
On epsilon theme it is this line on main.php

Quote
<?php eps_get_latest_searches(20) ?>
        <?php $i = 0; ?>
        <?php if(osc_count_latest_searches() > 0) { ?>
          <div class="latest-search">
            <?php while(osc_has_latest_searches()) { ?>
              <a href="<?php echo osc_search_url(array('page' => 'search', 'sPattern' => osc_esc_html(osc_latest_search_text()))); ?>" data-text="<?php echo osc_esc_html(osc_latest_search_text()); ?>"><?php echo osc_highlight(osc_latest_search_text(), 18); ?></a>
              <?php $i++; if($i > 20) { break; } ?>
            <?php } ?>
          </div>
        <?php } ?

Is working correct but is show me a lot of words and some are not nice , not at all and for SEO and google can be very bad.

How I can avoid all this word to not be vizible to be blocked.

Thanks.

You can erase that lines from main.php...

Also you can erase from search.php

*

danads

  • ***
  • 43 posts
Re: latest-search on main.php
« Reply #2 on: September 08, 2022, 07:15:22 PM »
Sorry you dont understood.
I what I to avoid anly some words to appears not to remove the cod.
Regards.

*

MB Themes

Re: latest-search on main.php
« Reply #3 on: September 08, 2022, 10:06:51 PM »
Define stop words in language settings. Should be used by theme as filter.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots