{"id":406,"date":"2018-10-25T06:28:34","date_gmt":"2018-10-25T06:28:34","guid":{"rendered":"http:\/\/www.projectimmerse.com\/?p=406"},"modified":"2020-06-17T09:45:56","modified_gmt":"2020-06-17T09:45:56","slug":"the-genesis-framework","status":"publish","type":"post","link":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/","title":{"rendered":"The Genesis Framework"},"content":{"rendered":"<p>I&#8217;ve been running into the <a href=\"https:\/\/my.studiopress.com\/themes\/genesis\/\" title=\"Wordpress Genesis theme\">WordPress Genesis theme<\/a> as of late. It&#8217;s not your standard wordpress theme when it comes to modifying template files. Genesis is actually a framework, that would be a better way to describe it. Genesis frameworks extend their functionality, allowing developers to customize their WordPress site. <\/p>\n<p>The Genesis framework is built by <a href=\u201chttps:\/\/www.studiopress.com\/\u201d title=\u201cStudio Press\u201d>Studio Press<\/a> &#8211; I\u2019m quite impressed with their work actually, it sounds like a solid framework I just need to learn more about it. So I dove right in &#8211; I scoured the internet for some learning material and a good list came up. This can only take you so far though &#8211; the best way to really learn is actually do it yourself, so that\u2019s what I\u2019m gonna do. <\/p>\n<p><!--more--><\/p>\n<p>What\u2019s the catch though? Well this is a paid framework, meaning I have to actually purchase it through their website. Well that sucks, then again it really doesn\u2019t &#8211; these guys and gals put some work into this, they deserve it. Fortunately for me, I\u2019ve got a project handy to work with &#8211; an existing website that is running on a Genesis Framework. <\/p>\n<p>So what was the task? Well I had to modify and add a list of functionalities to their blog, just their blog area. And if you know wordpress, you know that you\u2019re working with template files, functions, and in this case &#8211; hooks. Yeah hooks, a super modular approach to theme building. I wasn\u2019t use to this, I mostly build on standard wordpress files. The second part to this specific build was the front end &#8211; the layout, so there was going to be some CSS involved here. Not to mention responsive media queries. <\/p>\n<p>These hooks can be placed directly on a template file or within the functions.php file, they\u2019re all basically functions. <\/p>\n<p>So within the functions.php file, hooks can be implemented like:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\n\/** Add Viewport meta tag for mobile browsers *\/\r\nadd_action('genesis_meta', 'add_viewport_meta_tag');\r\n\r\nfunction add_viewport_meta_tag() {\r\n  echo '&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;';\r\n}\r\n\r\n\/** Add support for custom background *\/\r\nadd_custom_background();\r\n\r\n\/** Add suppport for custom header *\/\r\nadd_theme_support('genesis-custom-header', array('width' =&gt; 960, 'height' =&gt; 100));\r\n\r\n\/** Add support for 3 column footer widgets **\/\r\nadd_theme_support('genesis_theme_footer', 3);\r\n\r\nadd_action('genesis_before_footer', 'my_sample_text');\r\n\r\nfunction my_sample_text() {\r\n  echo '&lt;h2&gt;Thanks for Reading!&lt;\/h2&gt;';\r\n}\r\n\r\n<\/pre>\n<p>Okay so actually outputting mark up can be done within the functions.php file but how is this different from outputting markup on an actual genesis theme file. Yeah it&#8217;s basically the same thing and it gets even worse when you have a layout thats highly customized. <\/p>\n<p>I sound like I&#8217;m complaining here when in fact, Genesis is quite forgiving. There are a good amount of hooks that are natively built in. For instance in the example above, we can use &#8216;genesis_theme_footer&#8217; without calling a function, however all we need to do is pass it an argument which is &#8216;3&#8217; for a three column layout. Well that&#8217;s super handy. <\/p>\n<p>We can also remove some components like:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\n\/** Remove Header *\/\r\nremove_action( 'genesis_header', 'genesis_do_header' );\r\n\r\n<\/pre>\n<p>Here&#8217;s a powerful one, I&#8217;m not sure I&#8217;d use it often for layouts that require some heavy customization but still powerful. <\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\r\nfunction do_full_width_content() {\r\n\r\n  echo genesis_get_custom_field('full-width-content-1');\r\n\r\n}\r\n\r\n<\/pre>\n<p>The &#8216;genesis_get_custom_field&#8217; is a powerful hook &#8211; it let&#8217;s us access a natively built in field from the custom fields area. You can see this while you&#8217;re editing the page &#8211; within WordPress&#8217; backend.<\/p>\n<p>What are some other hooks we can use? Well here is a nice reference &#8211; <a href=\"https:\/\/carriedils.com\/genesis-hook-reference\/\" title=\"Genesis Hook Reference\">Genesis Hook Reference<\/a>. Additional documentation can be found right on Studio Press website &#8211; <a href=\"https:\/\/my.studiopress.com\/documentation\/snippets\/\" title=\"Snippets\">Snippets<\/a><\/p>\n<p>Some other resources with your Genesis theme development are these plugins, so be sure to install these and try them out. <\/p>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/genesis-simple-hooks\/\" title=\"Genesis Simple Hooks\">Genesis Simple Hooks<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/genesis-visual-hook-guide\/\" title=\"Visual Hook Guide\">Visual Hook Guide<\/a><\/li>\n<\/ul>\n<p>The key is to custom Genesis theme development is to mix it up in an intuitive way &#8211; take the ideas presented here and mix it in with your own efficient way. There is some creativity involved here. <\/p>\n<p>There&#8217;s a lot more about Genesis &#8211; this is barely scratching a surface, a whole handbook can be written about this. I can&#8217;t say the documentation for it is presented thoroughly and clearly though but the good news is that they&#8217;re scattered throughout the internet. Yeah scattered &#8211; you gotta do your research. In this post though I did touch on the major points, just enough weaponry to do some damage. What I mean here are the tools you&#8217;ll need to work with the Genesis Framework. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been running into the WordPress Genesis theme as of late. It&#8217;s not your standard wordpress theme when it comes to modifying template files. Genesis is actually a framework, that would be a better way to describe it. Genesis frameworks extend their functionality, allowing developers to customize their WordPress site. The Genesis framework is built &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;The Genesis Framework&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1167,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-406","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>The Genesis Framework - Project Immerse<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Genesis Framework - Project Immerse\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been running into the WordPress Genesis theme as of late. It&#8217;s not your standard wordpress theme when it comes to modifying template files. Genesis is actually a framework, that would be a better way to describe it. Genesis frameworks extend their functionality, allowing developers to customize their WordPress site. The Genesis framework is built &hellip; Continue reading &quot;The Genesis Framework&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/\" \/>\n<meta property=\"og:site_name\" content=\"Project Immerse\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-25T06:28:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-17T09:45:56+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/wordpress-the-genesis-framework.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"750\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"projectimmerse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"projectimmerse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/\"},\"author\":{\"name\":\"projectimmerse\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"headline\":\"The Genesis Framework\",\"datePublished\":\"2018-10-25T06:28:34+00:00\",\"dateModified\":\"2020-06-17T09:45:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/\"},\"wordCount\":812,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/wordpress-the-genesis-framework.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/\",\"name\":\"The Genesis Framework - Project Immerse\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/wordpress-the-genesis-framework.png\",\"datePublished\":\"2018-10-25T06:28:34+00:00\",\"dateModified\":\"2020-06-17T09:45:56+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/wordpress-the-genesis-framework.png\",\"contentUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/wordpress-the-genesis-framework.png\",\"width\":750,\"height\":750,\"caption\":\"The Genesis Framework\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/the-genesis-framework\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Genesis Framework\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\",\"name\":\"Project Immerse\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\",\"name\":\"projectimmerse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"caption\":\"projectimmerse\"},\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/author\\\/projectimmerse\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Genesis Framework - Project Immerse","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/","og_locale":"en_US","og_type":"article","og_title":"The Genesis Framework - Project Immerse","og_description":"I&#8217;ve been running into the WordPress Genesis theme as of late. It&#8217;s not your standard wordpress theme when it comes to modifying template files. Genesis is actually a framework, that would be a better way to describe it. Genesis frameworks extend their functionality, allowing developers to customize their WordPress site. The Genesis framework is built &hellip; Continue reading \"The Genesis Framework\"","og_url":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/","og_site_name":"Project Immerse","article_published_time":"2018-10-25T06:28:34+00:00","article_modified_time":"2020-06-17T09:45:56+00:00","og_image":[{"width":750,"height":750,"url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/wordpress-the-genesis-framework.png","type":"image\/png"}],"author":"projectimmerse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"projectimmerse","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#article","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/"},"author":{"name":"projectimmerse","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"headline":"The Genesis Framework","datePublished":"2018-10-25T06:28:34+00:00","dateModified":"2020-06-17T09:45:56+00:00","mainEntityOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/"},"wordCount":812,"commentCount":0,"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/wordpress-the-genesis-framework.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/","url":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/","name":"The Genesis Framework - Project Immerse","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#primaryimage"},"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/wordpress-the-genesis-framework.png","datePublished":"2018-10-25T06:28:34+00:00","dateModified":"2020-06-17T09:45:56+00:00","author":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"breadcrumb":{"@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#primaryimage","url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/wordpress-the-genesis-framework.png","contentUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/wordpress-the-genesis-framework.png","width":750,"height":750,"caption":"The Genesis Framework"},{"@type":"BreadcrumbList","@id":"https:\/\/www.projectimmerse.com\/blog\/the-genesis-framework\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.projectimmerse.com\/blog\/"},{"@type":"ListItem","position":2,"name":"The Genesis Framework"}]},{"@type":"WebSite","@id":"https:\/\/www.projectimmerse.com\/blog\/#website","url":"https:\/\/www.projectimmerse.com\/blog\/","name":"Project Immerse","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.projectimmerse.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5","name":"projectimmerse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","caption":"projectimmerse"},"url":"https:\/\/www.projectimmerse.com\/blog\/author\/projectimmerse\/"}]}},"_links":{"self":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/comments?post=406"}],"version-history":[{"count":7,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions"}],"predecessor-version":[{"id":443,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/406\/revisions\/443"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media\/1167"}],"wp:attachment":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media?parent=406"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/categories?post=406"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/tags?post=406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}