*

mariogtz

  • ***
  • 59 posts
how could i implement this function. it helps a lot for SEO.
« on: August 17, 2022, 08:37:40 PM »
how could i implement this function. it helps a lot for SEO. this function is integrated in the osclass default template.

*

MB Themes

Re: how could i implement this function. it helps a lot for SEO.
« Reply #1 on: August 18, 2022, 12:12:20 PM »
You can find it in sigma theme as example.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mariogtz

  • ***
  • 59 posts
Re: how could i implement this function. it helps a lot for SEO.
« Reply #2 on: August 18, 2022, 08:00:21 PM »
could you suggest the code to add it to the epilson template. please.

*

mwindey

  • *****
  • 478 posts
Re: how could i implement this function. it helps a lot for SEO.
« Reply #3 on: August 19, 2022, 10:52:11 AM »
Code you need is here. Place it in search.php right before line: <?php osc_current_web_theme_path('footer.php') ; ?>:

Code: [Select]
<div id="related-searches">
  <h5><?php _e('Other searches that may interest you','epsilon'); ?></h5>
  <?php foreach($footerLinks as $f) { View::newInstance()->_exportVariableToView('footer_link'$f); ?>
      <?php //if($f['total'] < 3) continue; ?>
      <a href="<?php echo osc_footer_link_url(); ?>"><?php echo osc_footer_link_title(); ?></a>
    <?php ?>
</div>
« Last Edit: August 20, 2022, 01:27:35 PM by MB Themes »

*

mariogtz

  • ***
  • 59 posts
Re: how could i implement this function. it helps a lot for SEO.
« Reply #4 on: August 19, 2022, 07:42:09 PM »
Thanks for the help. But the code has error in the last 2 lines.

*

MB Themes

Re: how could i implement this function. it helps a lot for SEO.
« Reply #5 on: August 20, 2022, 01:28:11 PM »
Updated code for you  ;)

Code you need is here. Place it in search.php right before line: <?php osc_current_web_theme_path('footer.php') ; ?>:

Code: [Select]
<div id="related-searches">
  <h5><?php _e('Other searches that may interest you','epsilon'); ?></h5>
  <?php foreach($footerLinks as $f) { View::newInstance()->_exportVariableToView('footer_link'$f); ?>
      <?php //if($f['total'] < 3) continue; ?>
      <a href="<?php echo osc_footer_link_url(); ?>"><?php echo osc_footer_link_title(); ?></a>
    <?php ?>
</div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mariogtz

  • ***
  • 59 posts
Re: how could i implement this function. it helps a lot for SEO.
« Reply #6 on: August 29, 2022, 07:53:04 PM »
thanks for the correction but it does not work. the code does not work.

*

mwindey

  • *****
  • 478 posts
Re: how could i implement this function. it helps a lot for SEO.
« Reply #7 on: August 30, 2022, 10:38:32 AM »
@mariogtz

Did you set admin/settings/latest searches correct to save latest searches?
For me this code works in Epsilon.