Advertisement:

Author Topic: How to Add SEOptimized Titles in OSclass items?  (Read 308 times)

umerprince

  • Newbie
  • *
  • Posts: 5
How to Add SEOptimized Titles in OSclass items?
« on: November 26, 2018, 09:51:00 pm »
I am looking for a free plugin or tutorial on how to have seoptimized titles.

For example: Default titles are like Item name - for sale - city name and then website name

it looks like Something for sale City website name

I want to make it look like Something for sale in City

In simple words I want to add item title and then "for sale in City name" and don't add the homepage title in item titles.

Can you help me out?

muratbora

  • Full Member
  • ***
  • Posts: 197
Re: How to Add SEOptimized Titles in OSclass items?
« Reply #1 on: November 27, 2018, 06:09:08 pm »
No free plugin for this,
Osclass is an ads software lack for those type of plugins..Also no paid plugins for this functions...
I regret to started to work with Osclass, ı just wasted my time.

patrickFromCroatia

  • Sr. Member
  • ****
  • Posts: 474
Re: How to Add SEOptimized Titles in OSclass items?
« Reply #2 on: November 27, 2018, 09:35:00 pm »
Hello,

I don't know of a plugin, but this piece of code could work just fine. Add it in your functions.php.

Code: [Select]
function cs_item_meta_title($text) {
    if(!osc_is_ad_page()) {
        return $text;
    }

    $item_title = osc_item_title();
    $item_city = osc_item_city();

    $title = $item_title.' for sale in '.$item_city;
    return $title;
}
osc_add_filter('meta_title_filter', 'cs_item_meta_title');

Not tested, but should work. Be sure to put the code before the closing tag ?>, if you don't see it (?>), just paste the code.

Regards.

Aficionado

  • issues
  • Hero Member
  • *
  • Posts: 6240
  • Hardliner
Re: How to Add SEOptimized Titles in OSclass items?
« Reply #3 on: November 27, 2018, 10:15:08 pm »

I regret to started to work with Osclass, ı just wasted my time.

Nothing wrong with Osclass. SEO is a myth, get over it and promote your site. Google doesn't like Classified sites anyway, because of short/little Content.

Not sure what you expect from Osclass, but SEO isn't gonna make your site better or get you money.

You all seem to spend your time with such details instead of working to promote your sites.

« Last Edit: November 28, 2018, 05:49:20 am by Aficionado »

umerprince

  • Newbie
  • *
  • Posts: 5
Re: How to Add SEOptimized Titles in OSclass items?
« Reply #4 on: November 28, 2018, 08:38:24 am »
Horrayy!

It works.

thanks for the great help.


Hello,

I don't know of a plugin, but this piece of code could work just fine. Add it in your functions.php.

Code: [Select]
function cs_item_meta_title($text) {
    if(!osc_is_ad_page()) {
        return $text;
    }

    $item_title = osc_item_title();
    $item_city = osc_item_city();

    $title = $item_title.' for sale in '.$item_city;
    return $title;
}
osc_add_filter('meta_title_filter', 'cs_item_meta_title');

Not tested, but should work. Be sure to put the code before the closing tag ?>, if you don't see it (?>), just paste the code.

Regards.