Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Increasing Open Graph Description Length
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 6, 2017 - 3:04 pm

I have not looked at the code @mr-papa suggested as yet but - while I feel changing core files is not a good idea you can at least test things and do temp live changes with safety.

As far as I know the code is in the file /sp-startup/forum/sp-forum-support-functions.php and the function is sp_get_metadescription() which starts at line 499. You will see the '120' at line 534.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 6, 2017 - 11:10 pm

What was the final code of mine you used???  did it have 120 or 300 (as I suggested you change) in there?

Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Jul 6, 2017 - 11:30 pm

I have not dug into it today. If the description and open graph description share the same characters I'll have to fiddle with the length and run I post through Google testing tool checking for overage errors.

On Jul 6, 2017 11:10 PM, "Simple:Press Support" wrote:

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 7, 2017 - 1:14 am

yes, the two share the same length number...  changing the location or using my code will change both as well..

if you want to change just the OG, you would have to go down around line 796 in that same file and not use the meta description...  so you could take the  meat of my code and replace line 796 with it to directly create a separate OG description...

Avatar
FidoSysop
Clearwater Florida
Member

VIP
sp_UserOfflineSmall Offline
Jul 7, 2017 - 7:16 pm

Hi Steve, not comfortable digging around in php, i increased the number of characters in sp default file. That's working for now. Thanks for your help as always. wink

The correct length is sketchy. Yoast is saying 160 characters, and does not mention the open graph description. However Search Engine Journal has more in depth info. 

Title tags have been increased to 70–71 characters, which is up from its previous 50–60 characters. That’s at least enough to fit in another word or two.

Meta descriptions have been increased by 100 characters per line, and extended from two to three lines. That’s a significant increase, and presents far more of an opportunity to tell searchers what the page is about.

Slegg reports that Google is still truncating the descriptions to two lines for many search results still, so you may still see them coming in at around 160 characters at times. When a three line snipped is displayed they come in at 278 characters per line.

I'm thinking having separate meta description and open graph description tags would be good idea. An easy core update for y'all. Possibly adding a variable to the SEO component allowing the admin to choose the lengths?

  • Doc ~ An old Fidonet SysOp. Just hanging out in cyberspace keeping up with tech.
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 7, 2017 - 8:57 pm

we can create a ticket for consideration in upcoming releases...  thanks for the info...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625