Advertisement:

Author Topic: SEO title for items and pages  (Read 1300 times)

pecke

  • Full Member
  • ***
  • Posts: 169
SEO title for items and pages
« on: March 27, 2016, 04:27:02 am »
To avoid long meta title for items and pages you can add following code in oc-includes/osclass/functions.php 

find this code
 
Code: [Select]
    if( !osc_is_home_page() ) {
        if($text!='') {
            $text .= ' - ' . osc_page_title();
        } else {
            $text = osc_page_title();
        }
    }

 and replace with
 
Code: [Select]
if( !osc_is_home_page() ) {
        if($text!='') {
            $text .= __(' - Your short site title');
        } else {
            $text = osc_page_title();
        }
    }

example:

homepage title         PC Buvljak Oglasi za prodaju polovnih kompjutera, laptopova i delova
item title                   HP Business Notebook nx7400 Beograd - PC Buvljak oglasi

live site for examples   http://www.pcbuvljak.com
« Last Edit: March 28, 2016, 10:27:24 pm by pecke »