Default Social Share Info

In a perfect world - we would set a unique custom social share information (title, text, and image) for each page on the site. However, that would take a decent amount of time each time a page is published to create this content. As a workaround, we have the following system in place to set default values that can be overridden with more handcrafted details.

How this works is - progressing through each level (1,2,3) - we will set the values for the Meta Tag Title, Meta Tag Text, and Meta Tag Image - to ensure always populated, but then as we progress through each level - we will overwrite if content exists.

By default, we will use site details. Then we will override those with the default social share info provided on the special tagged page. THEN - if page-level social share details have been set, we will overwrite the default social share settings with those (which overwrote the site defaults).

##1 - Site details (pulled from site settings)

Meta Tag Title:

  1. site.headline
  2. site.name (if no headline set)

Meta Tag Text:

  1. site.subheadline

Meta Tag Image:

  1. site.meta_image_url

#2 - Default Social Share info (set by user on special page)

This is optional (but already configured for the site). These details will override those set in #1. We have this basic page tagged default_social_share_info already set up here:

NOTE: The "Prompt for posting" checkbox must be checked on this page for these to take effect.

Meta Tag Title:

  1. page.headline

Meta Tag Text:

  1. page.excerpt
  2. page.basic.content

Meta Tag Image:

  1. page.meta_image_url
  2. page.attachment.url

#3 - Page specific meta details (set by user on individual page)

Meta Tag Title:

  1. page.headline

Meta Tag Text:

  1. page.excerpt

Meta Tag Image:

  1. page.meta_image_url