Genesis Functions

Yeah, these are genesis functions in a list format which may or may not be useful. Im separating them by file to make them easier to find.

Breadcrumb

  • function genesis_breadcrumb
  • function genesis_do_breadcrumbs

Feed

  • function genesis_feed_links_filter
  • function genesis_feed_redirec

Formatting

  • function genesis_truncate_phrase
  • function get_the_content_limit
  • function genesis_a11y_more_link
  • function the_content_limit
  • function genesis_rel_nofollow
  • function genesis_strip_attr
  • function genesis_paged_post_url
  • function genesis_sanitize_html_classes
  • function genesis_formatting_allowedtags
  • function genesis_formatting_kses
  • function genesis_human_time_diff
  • function genesis_code
  • function genesis_strip_p_tags

General

  • function genesis_enable_author_box
  • function genesis_admin_redirect
  • function genesis_custom_field_redirect
  • function genesis_get_theme_support_arg
  • function genesis_detect_plugin
  • function genesis_is_menu_page
  • function genesis_is_customizer
  • function genesis_is_blog_template
  • function genesis_get_global_post_type_name
  • function genesis_get_cpt_archive_types
  • function genesis_get_cpt_archive_types_names
  • function genesis_has_post_type_archive_support
  • function genesis_html5
  • function genesis_a11y
  • function genesis_sitemap
  • function genesis_get_sitemap
  • function genesis_plugin_install_link
  • function genesis_is_root_page
  • function genesis_canonical_url

Head

  • function genesis_get_seo_meta_description
  • function genesis_get_seo_meta_keywords
  • function genesis_get_robots_meta_content
  • function genesis_get_favicon_url

Image

  • function genesis_get_image_id
  • function genesis_get_image
  • function genesis_image
  • function genesis_get_image_sizes
  • function genesis_get_image_sizes_for_customizer

Layout

  • function genesis_create_initial_layouts
  • function genesis_register_layout
  • function genesis_add_type_to_layout
  • function genesis_remove_type_from_layout
  • function genesis_set_default_layout
  • function genesis_unregister_layout
  • function genesis_get_layouts
  • function genesis_get_layouts_for_customizer
  • function genesis_get_layout
  • function genesis_get_default_layout
  • function genesis_has_multiple_layouts
  • function genesis_site_layout
  • function genesis_layout_selector
  • function genesis_structural_wrap
  • function __genesis_return_content_sidebar
  • function __genesis_return_sidebar_content
  • function __genesis_return_content_sidebar_sidebar
  • function __genesis_return_sidebar_sidebar_content
  • function __genesis_return_sidebar_content_sidebar
  • function __genesis_return_full_width_content

Markup

  • function genesis_markup
  • function genesis_xhtml_check
  • function genesis_parse_attr
  • function genesis_attr
  • function genesis_attributes_empty_class
  • function genesis_attributes_screen_reader_class
  • function genesis_attributes_head
  • function genesis_attributes_body
  • function genesis_attributes_header
  • function genesis_attributes_site_title
  • function genesis_attributes_site_description
  • function genesis_attributes_header_widget_area
  • function genesis_attributes_breadcrumb
  • function genesis_attributes_breadcrumb_link_wrap
  • function genesis_attributes_search_form
  • function genesis_attributes_nav
  • function genesis_attributes_nav_link_wrap
  • function genesis_attributes_nav_link
  • function genesis_attributes_structural_wrap
  • function genesis_attributes_content
  • function genesis_attributes_taxonomy_archive_description
  • function genesis_attributes_author_archive_description
  • function genesis_attributes_cpt_archive_description
  • function genesis_attributes_date_archive_description
  • function genesis_attributes_blog_template_description
  • function genesis_attributes_posts_page_description
  • function genesis_attributes_entry
  • function genesis_attributes_entry_image
  • function genesis_attributes_entry_image_link
  • function genesis_attributes_entry_image_widget
  • function genesis_attributes_entry_image_grid_loop
  • function genesis_attributes_entry_author
  • function genesis_attributes_entry_author_link
  • function genesis_attributes_entry_author_name
  • function genesis_attributes_entry_time
  • function genesis_attributes_entry_modified_time
  • function genesis_attributes_entry_title
  • function genesis_attributes_entry_content
  • function genesis_attributes_entry_meta
  • function genesis_attributes_pagination
  • function genesis_attributes_entry_comments
  • function genesis_attributes_comment
  • function genesis_attributes_comment_author
  • function genesis_attributes_comment_author_link
  • function genesis_attributes_comment_time
  • function genesis_attributes_comment_time_link
  • function genesis_attributes_comment_content
  • function genesis_attributes_author_box
  • function genesis_attributes_sidebar_primary
  • function genesis_attributes_sidebar_secondary
  • function genesis_attributes_site_footer
  • function genesis_attributes_footer_widget_area
  • function genesis_skiplinks_markup
  • function genesis_skiplinks_attr_nav_primary
  • function genesis_skiplinks_attr_content
  • function genesis_skiplinks_attr_sidebar_primary
  • function genesis_skiplinks_attr_sidebar_secondary
  • function genesis_skiplinks_attr_footer_widgets

Menu

  • function genesis_nav_menu_supported
  • function genesis_superfish_enabled
  • function genesis_get_nav_menu
  • function genesis_nav_menu

Options

  • function genesis_get_option
  • function genesis_option
  • function genesis_get_seo_option
  • function genesis_seo_option
  • function genesis_get_cpt_option
  • function genesis_cpt_option
  • function genesis_custom_field
  • function genesis_get_custom_field
  • function genesis_save_custom_fields
  • function genesis_update_settings

SEO

  • function genesis_disable_seo
  • function genesis_seo_disabled
  • function genesis_seo_compatibility_check
  • function genesis_disable_scribe_nag
  • function genesis_detect_seo_plugins

Toolbar

  • function genesis_cpt_archive_settings_link
  • function genesis_cpt_archive_settings_toolbar_styles

Widgitize

  • function genesis_register_widget_area
  • function genesis_register_sidebar
  • function genesis_register_default_widget_areas
  • function _genesis_register_default_widget_areas_cb
  • function genesis_register_footer_widget_areas
  • function genesis_register_after_entry_widget_area
  • function genesis_widget_area
  • function genesis_a11y_register_sidebar_defaults
  • function genesis_sidebar_title

Genesis Directories

The following are from Nick the Geek with his Genesis tutorials at:  https://designsbynickthegeek.com/tutorials/genesis-explained-framework-actions  and describe the the Genesis directories.

Genesis: contains all files and directories. The files exposed in this directory are general template files, mostly loading other files in the framework. The header.php and footer.php are core framework files with hooks.

  • images: all the images used with the Genesis theme, since you should be using a child theme this doesn’t do much
  • lib: contains the core files for the Framework, the init.php file loads all the other files and the framework.php file contains the core hooks used by the framework
    • admin: files related to admin operations
      • images: images used in the admin part of the site
    • classes: files with php classes used by the theme
    • css: loads styles for the admin section of the site
    • functions: general or helper functions used in the theme and child themes. I will be writing a post that discusses many of these in the future
    • js: handles script loading for the theme, includes admin, comment, and menu scripts
    • languages: handles translation files
    • shortcodes: all the short codes built into the theme
    • structure: handles the output on the front end of the site, the remainder of this article will be dealing with this directory
    • tools: tools used by Genesis to handle some special functions
    • widgets: the theme specific widgets

File Structure Directory:

  • archive.php: has actions specific to archive pages like the archive title output
  • comments.php: has actions specific to the comments on the site like the comment form
  • footer.php: the footer actions, including the new widgeted footer
  • header.php: the actions that load on hooks in the header.php including the site title
  • layout.php: actions that handle loading the sidebars
  • loops.php: handles the 3 loops available in Genesis: standard, custom, and grid loops
  • menu.php: controls the menu output
  • post.php: essentially this is everything that loads inside the loop
  • search.php: actions specific to search pages
  • sidebar.php: the hooks and actions that create the sidebars if they are loaded by the layout.php file

Genesis Hooks

  • genesis_pre
  • genesis_pre_framework
  • genesis_init
    • header.php
      • genesis_title
      • genesis_meta
      • genesis_before
      • genesis_before_header
      • genesis_header
        • genesis_site_title
        • genesis_site_description
      • genesis_after_header
    • framework.php
      • genesis_before_content_sidebar_wrap
      • genesis_before_content
      • genesis_before_loop
      • genesis_loop
        • genesis_before_post
        • genesis_before_post_title
        • genesis_post_title
        • genesis_after_post_title
        • genesis_before_post_content
        • genesis_post_content
        • genesis_after_post_content
        • genesis_after_post
          • genesis_before_comments
          • genesis_comments
            • genesis_list_comments
            • genesis_before_pings
            • genesis_pings
              • genesis_list_pings
            • genesis_after_pings
            • genesis_before_comment
            • genesis_after_comment
            • genesis_before_comment_form
            • genesis_comment_form
            • genesis_after_comment_form
        • genesis_after_endwhile
        • genesis_loop_else
      • genesis_after_loop
      • genesis_after_content
        • genesis_sidebar
          • genesis_before_sidebar_widget_area
          • genesis_after_sidebar_widget_area
        • genesis_sidebar_alt
          • genesis_before_sidebar_alt_widget_area
          • genesis_after_sidebar_alt_widget_area
      • genesis_after_sidebar_content_wrap
    • footer.php
      • genesis_before_footer
      • genesis_footer
      • genesis_after_footer
      • genesis_after