Skip to content

Instantly share code, notes, and snippets.

@jeremyfelt
Last active August 29, 2015 14:27
Show Gist options
  • Save jeremyfelt/5a1216b7d9193d6334c9 to your computer and use it in GitHub Desktop.
Save jeremyfelt/5a1216b7d9193d6334c9 to your computer and use it in GitHub Desktop.

Home Headlines

The basic shortcode to pull information from another post or page into an area of an issue is [home_headline id=1234] where "1234" is the ID of that page or post.

By default, the shortcode will attempt to pull saved information for headline, subtitle, call to action, URL, and background image. Each of these can be overridden with other attributes of the shortcode.

[home_headline id=12345 headline="My custom headline" subtitle="A custom subtitle" cta="Call to Action" background="https://magazine.wsu.edu/an-image.jpg" link="https://wsu.edu"]

Wrappers can be passed as well to wrap the entire home headline section in a container. This wrapper can be a, span, or div. If a, then the entire section will be wrapped in a link. Otherwise, only the call to action text will be wrapped in a link.

  • [home_headline id=12345 wrapper="div" wrapper_class="customwrap"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment