Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very nice plugin #1

Open
HartLarsson opened this issue Dec 8, 2016 · 3 comments
Open

Very nice plugin #1

HartLarsson opened this issue Dec 8, 2016 · 3 comments

Comments

@HartLarsson
Copy link

I still testing you plugin and i found that works good.
There are some things you can update:

  1. update 156 chars to 160 for meta description to match the new limits
  2. Google if the Title is less of 160chars/600pixels and the domain lenght + title lenght <= 160 will add the domain at the end.

i will explain better

title: SAMPLE TITLE
Domain: www.pippo.com

Goggle title: SAMPLE TITILE - Pippo

pratically it calculates " - " + DomainName length and sum to the Title Length to see if all together stay under 160chars/600Pixels

You can add a new parameter to pass to your plugin called domain: "pippo" to create and simulate the new SERP.

Thank you for your nice work

Hart

@mabuenox
Copy link
Owner

Hi Hart, sorry it's taken me so long to write.

I'm busy at the moment, but I will try to implement the features you propose on the next weeks. Also, pull requests will be welcome if anyone want to help.

Thanks for your feedback.

@HartLarsson
Copy link
Author

just a lttle contribution, I've used instead truncate() this function that is better and accomplish exactly the Google behaviour:

    function shorten(str, maxLen, separator = ' ', overflowSuffix = ' ...') {
      if (str.length <= maxLen) return str;
      return str.substr(0, str.lastIndexOf(separator, maxLen)) + overflowSuffix;
    }  

@TechHelperTamil
Copy link

Hi Dude! How to install this SERP preview to my website?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants