*

Hugo

  • ****
  • 182 posts
General description instead of category description
« on: June 21, 2022, 04:08:19 PM »
Currently I have a categroy description that is displayed on the search page;

I did this by adding the following code to the file search.php
<div class="category-description"> <?php $cat = Category::newinstance()->findByPrimaryKey($search_cat_id); echo @$cat['s_description'];?> </div>

Is it also possible to display a general description that dissapears/changes when one selects a category?

The reason behind this is because i want to build up SEO value for the listing overview page where all listings are displayed and no category has been selected yet.

I hope that you understand what i mean.

Kind regards Hugo

*

bemtele

  • ***
  • 97 posts
Re: General description instead of category description
« Reply #1 on: June 21, 2022, 04:40:31 PM »
Currently I have a categroy description that is displayed on the search page;

I did this by adding the following code to the file search.php
<div class="category-description"> <?php $cat = Category::newinstance()->findByPrimaryKey($search_cat_id); echo @$cat['s_description'];?> </div>

Is it also possible to display a general description that dissapears/changes when one selects a category?

The reason behind this is because i want to build up SEO value for the listing overview page where all listings are displayed and no category has been selected yet.

I hope that you understand what i mean.

Kind regards Hugo

From my understanding from support here, the listing overview page (the all listing page, that is https://yourdomain.com/search) is marked as "noindex" so displaying the general description there won't have any SEO benefit. My thought though.

*

Hugo

  • ****
  • 182 posts
Re: General description instead of category description
« Reply #2 on: June 21, 2022, 04:45:07 PM »
why would one to choose not to index this page? Is this adjustable?

Kind regards Hugo

*

Hugo

  • ****
  • 182 posts
Re: General description instead of category description
« Reply #3 on: June 21, 2022, 05:48:25 PM »
If correct (have a look at the attached image) this means that it only gets noindex when there aren't any items < which isn't the case


*

bemtele

  • ***
  • 97 posts
Re: General description instead of category description
« Reply #4 on: June 21, 2022, 06:51:05 PM »
If correct (have a look at the attached image) this means that it only gets noindex when there aren't any items < which isn't the case

As you can see, I raised this concern here: https://forums.osclasspoint.com/osclass/google-say-submitted-url-marked-noindex/
but it seems the explanation is ok (not all Ok in a layman's view though). But what can I say, the developers have spoken


*

MB Themes

Re: General description instead of category description
« Reply #5 on: June 30, 2022, 09:53:12 AM »
/search is with noindex, as search urls without /search are indexable (i.e. /for-sale/accessories) ... so to avoid duplicated content ;)
I do not think adding same text in all pages is seo-beneficial, but you could also edit search.php and add there your own text.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots