Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Google preview differs from actual Google display #44

Open
mewolari opened this issue May 12, 2015 · 2 comments
Open

Google preview differs from actual Google display #44

mewolari opened this issue May 12, 2015 · 2 comments
Milestone

Comments

@mewolari
Copy link

Pagetitle will be used as SEO title if no longtitle present.

Actual site template can however differ from template used in SEOPro.

Would be great if the SEOPro rules could be adjusted.

Now SEOPro preview can really differ from actual data as displayed in search engines, depending on the used sitetemplate.

@joeke
Copy link
Contributor

joeke commented Dec 20, 2015

Hi @mewolari
Might have a solution for this; it basically comes down to having a system setting for your title structure with the ability to override in a template property. Then you can use a custom placeholder in your template to show the title. See issue #25 for more info. #25 (comment)

@danFWD
Copy link

danFWD commented Apr 15, 2017

Hello, here is the actual solution:
In the file /assets/components/seopro/js/mgr/seopro.js @line 194, replace the following code:

Ext.get('seopro-google-description').dom.innerHTML = description;

with

    var g_description = String(description);
    if( g_description.length > 155 ) {
        //trim the string to the maximum length
        g_description = g_description.substr(0, 155);
        //re-trim if we are in the middle of a word
        g_description = g_description.substr(0, Math.min(g_description.length, g_description.lastIndexOf(" ")));
        g_description = g_description.concat('...');
    }
    Ext.get('seopro-google-description').dom.innerHTML = g_description;

@gpsietzema gpsietzema added this to the SEO Pro 1.2.0 milestone Jun 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants