Advertisement:

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

umerprince

  • Newbie
  • *
  • Posts: 6
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: 219
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

  • Hero Member
  • *****
  • Posts: 706
  • wmods.tk
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

  • Guest
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: 6
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.

markransome

  • Newbie
  • *
  • Posts: 1
Re: How to Add SEOptimized Titles in OSclass items?
« Reply #5 on: December 28, 2018, 02:37:42 am »
Hi,

I am new to Osclass but I have installed it on a test domain for now to try it out. Now, I am posting here (First post!) because I was searching the forum about SEO and it does seem that Osclass has got quite poor SEO built -in, but in the marketplace there are some paid plugins for SEO, so do they work, if so which one do you think is best?

To be honest, at the moment I am a little confused! Oh, and as for that comment in here "SEO is a myth, get over it and promote your site. Google doesn't like Classified sites anyway, because of short/little Content.", I'm not bothered about Google or ranking, I just like things to be right for my own satisfaction!

Aficionado

  • Guest
Re: How to Add SEOptimized Titles in OSclass items?
« Reply #6 on: December 28, 2018, 03:51:25 pm »
Oh, and as for that comment in here "SEO is a myth, get over it and promote your site. Google doesn't like Classified sites anyway, because of short/little Content.", I'm not bothered about Google or ranking, I just like things to be right for my own satisfaction!

Well, websites are build for People and not Google. This is what i tried to point out. It seems that new people start with SEO with an empty site and with zero traffic. Also they spend their time trying to make some 3rd party plugins to work, instead of promoting their sites.

BASIC insite SEO is something you should bother AFTER your site is getting some traffic. Spending all your energy and money with SEO at start stage is of no use at all.

Google doesn't like classifieds sites because they are thin (poor) on Content. Google will not be your source of free traffic.

I'm only trying to save people's time, some get it, some not.