This download folder contains code which adds a text field on your single post/page/cpt edit screen for internal or external links.
Genesis includes several functions to make it easier to add custom meta boxes in Genesis child themes.
genesis_sanitize_html
– Custom function located in genesis > lib > functions > formatting.php which uses a WordPress function to ensure the user inputed data is in proper form and remove any invalid characters.
genesis_save_custom_fields
– Custom function located in genesis > lib > functions > options.php which uses WordPress functions to save the custom field key & value to the database if a value is added or changed.
Demo Video
Shows an external URL added to a custom meta box named Custom URL used to link a button on a single post.
Tested using the Genesis Sample child theme by StudioPress however will work in any Genesis child theme.
Installation Steps
There’s 2 steps :
Leave a Reply