*

bickja

  • ***
  • 48 posts
How to Setup for user define meta title
« on: May 22, 2017, 05:30:24 PM »
Hello Team,
please help me to setup user define meta tags in proper way.

i have set it up as shown in image 01

But wen user define meta tags are there , title is become so long and duplicate

See in image 02

if i remove "item title" and just use user define meta tag then if user define meta tag is missing then item title is almost empty.

how to set in the way that if user define meta tag present then it shown only user define otherwise item title like in previous version of this plugin.



*

MB Themes

Re: How to Setup for user define meta title
« Reply #1 on: May 22, 2017, 08:20:23 PM »
@bickja
If you use Item Meta Title, do not use Item Title.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

bickja

  • ***
  • 48 posts
Re: How to Setup for user define meta title
« Reply #2 on: May 23, 2017, 07:57:00 AM »
@bickja
If you use Item Meta Title, do not use Item Title.
Ok in that case if Meta is missing titles are empty  See in below image.


@Frosticek, as i remember in previous version if user define meta was there  it was showing , if not then original title was showing.
« Last Edit: May 23, 2017, 08:00:34 AM by bickja »

*

MB Themes

Re: How to Setup for user define meta title
« Reply #3 on: May 23, 2017, 10:54:26 AM »
@bickja
Go to file:
oc-content/plugins/all_in_one/functions.php

Find line:
Code: [Select]
$tag[] = trim( isset($item_meta['s_title']) ? $item_meta['s_title'] : '' );

Change to:
Code: [Select]
$tag[] = trim( isset($item_meta['s_title']) ? $item_meta['s_title'] : osc_item_title() );
Find line:
Code: [Select]
$tag[] = trim( isset($item_meta['s_description']) ? $item_meta['s_description'] : '' );
Change to:
Code: [Select]
$tag[] = trim( isset($item_meta['s_description']) ? $item_meta['s_description'] : trim( osc_highlight(osc_item_description(), 120) ) );
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots