Skip to content

Instantly share code, notes, and snippets.

@secretstache
Created November 8, 2016 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save secretstache/bec43c941ef2b13dc871644602e00d5e to your computer and use it in GitHub Desktop.
Save secretstache/bec43c941ef2b13dc871644602e00d5e to your computer and use it in GitHub Desktop.
Hero Unit Snippets
[
{
"key": "group_562025a91d355",
"title": "Hero Unit",
"fields": [
{
"key": "field_5620264fa0141",
"label": "Background Media",
"name": "background_media",
"type": "radio",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"Image": "Image",
"Video": "Video",
"Gradient": "Gradient"
},
"other_choice": 0,
"save_other_choice": 0,
"default_value": "Image",
"layout": "horizontal",
"allow_null": 0,
"return_format": "value"
},
{
"key": "field_562027a065252",
"label": "Image",
"name": "background_image",
"type": "image",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_5620264fa0141",
"operator": "==",
"value": "Image"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"return_format": "array",
"preview_size": "thumbnail",
"library": "all",
"min_width": 1200,
"min_height": 400,
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
},
{
"key": "field_56240a7861758",
"label": "Video",
"name": "",
"type": "message",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_5620264fa0141",
"operator": "==",
"value": "Video"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"message": "\/\/ TODO",
"new_lines": "wpautop",
"esc_html": 0
},
{
"key": "field_56202a65d3321",
"label": "Headline",
"name": "use_page_title",
"type": "radio",
"instructions": "Use page title?",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"Yes": "Yes",
"No": "No"
},
"other_choice": 0,
"save_other_choice": 0,
"default_value": "Yes",
"layout": "horizontal",
"allow_null": 0,
"return_format": "value"
},
{
"key": "field_562025afa013c",
"label": "Custom Headline",
"name": "hero_custom_headline",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": [
[
{
"field": "field_56202a65d3321",
"operator": "==",
"value": "No"
}
]
],
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": "",
"readonly": 0,
"disabled": 0
},
{
"key": "field_562025bea013d",
"label": "Subheadline",
"name": "hero_subheadline",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": "",
"readonly": 0,
"disabled": 0
},
{
"key": "field_562025dfa013e",
"label": "Buttons",
"name": "hero_buttons",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"min": "",
"max": "",
"layout": "block",
"button_label": "Add Button",
"collapsed": "",
"sub_fields": [
{
"key": "field_56202607a013f",
"label": "Text",
"name": "button_text",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": "",
"readonly": 0,
"disabled": 0
},
{
"key": "field_56202630a0140",
"label": "URL",
"name": "url",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": "",
"readonly": 0,
"disabled": 0
},
{
"key": "field_56f5c1e92db9a",
"label": "Size",
"name": "button_size",
"type": "select",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"choices": {
"Large": "Large",
"Medium": "Medium",
"Small": "Small"
},
"default_value": [
"Large"
],
"allow_null": 0,
"multiple": 0,
"ui": 0,
"ajax": 0,
"placeholder": "",
"disabled": 0,
"readonly": 0,
"return_format": "value"
}
]
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "page"
},
{
"param": "page",
"operator": "!=",
"value": "771"
}
],
[
{
"param": "post_type",
"operator": "==",
"value": "post"
}
]
],
"menu_order": 10,
"position": "acf_after_title",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": 1,
"description": ""
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment