{"id":1178592,"date":"2016-10-18T12:26:11","date_gmt":"2016-10-18T19:26:11","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/"},"modified":"2016-10-18T12:26:11","modified_gmt":"2016-10-18T19:26:11","slug":"issue-with-php-code-to-over-write-events-archive","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/","title":{"rendered":"Issue with php code to over write &quot;Events Archive&quot;"},"content":{"rendered":"<p>Hi &#8211; We updated the pHp code as per your instructions here:    https:\/\/theeventscalendar.com\/knowledgebase\/titles-in-yoast-seo\/<\/p>\n<p>However, it is not working properly on our live site here http:\/\/squamishadventure.com\/events\/<\/p>\n<p>I have attached the code we updated &#8211; can you advise on what we are missing?<\/p>\n<p>Paula<\/p>\n<p>&lt;?php<br \/>\n\/** Start Engine *\/<br \/>\nrequire_once(  get_template_directory().&#8217;\/lib\/init.php&#8217; );<br \/>\n\/* Add HTML5 markup structure *\/<br \/>\nadd_theme_support( &#8216;html5&#8217; );<br \/>\n\/** Localization *\/<br \/>\nload_child_theme_textdomain(  &#8216;prestige&#8217;, apply_filters(  &#8216;child_theme_textdomain&#8217;, get_stylesheet_directory(  ) . &#8216;\/languages&#8217;, &#8216;prestige&#8217;  )  );<br \/>\n\/** DO Not Remove *\/<br \/>\ndefine(  &#8216;CHILD_THEME_NAME&#8217;, &#8216;Prestige&#8217;   );<br \/>\ndefine(  &#8216;CHILD_THEME_URL&#8217;, &#8216;http:\/\/demo.zigzagpress.com\/prestige\/&#8217;  );<br \/>\n\/** Custom Post Types *\/<br \/>\nrequire_once(  get_stylesheet_directory(  ) . &#8216;\/include\/cpt\/super-cpt.php&#8217;   );<br \/>\nrequire_once(  get_stylesheet_directory(  ) . &#8216;\/include\/cpt\/zp_cpt.php&#8217;   );<br \/>\n\/** Theme Option\/Functions *\/<br \/>\nrequire_once (  get_stylesheet_directory(  ) . &#8216;\/include\/theme_settings.php&#8217;   );<br \/>\nrequire_once (  get_stylesheet_directory(  ) . &#8216;\/include\/theme_functions.php&#8217;   );<\/p>\n<p>\/** Theme Widgets *\/<br \/>\nrequire_once(  get_stylesheet_directory(  )  .&#8217;\/include\/widgets\/widget-flickr.php&#8217;   );<br \/>\nrequire_once(  get_stylesheet_directory(  )  .&#8217;\/include\/widgets\/widget-address.php&#8217;   );<br \/>\nrequire_once(  get_stylesheet_directory(  )  .&#8217;\/include\/widgets\/widget-social_icons.php&#8217;   );<br \/>\nrequire_once(  get_stylesheet_directory(  )  .&#8217;\/include\/widgets\/widget-latest_portfolio.php&#8217;   );<br \/>\n\/** Theme Shortcode *\/<br \/>\nrequire_once(  get_stylesheet_directory(  ) . &#8216;\/include\/shortcodes\/shortcode.php&#8217;   );<br \/>\n\/** Unregister Layout *\/<br \/>\ngenesis_unregister_layout( &#8216;content-sidebar-sidebar&#8217; );<br \/>\ngenesis_unregister_layout( &#8216;sidebar-sidebar-content&#8217; );<br \/>\ngenesis_unregister_layout( &#8216;sidebar-content-sidebar&#8217; );<br \/>\n\/** Unregister Sidebar *\/<br \/>\nunregister_sidebar(  &#8216;header-right&#8217;  );<br \/>\nunregister_sidebar( &#8216;sidebar-alt&#8217; );<br \/>\n\/** Unregister secondary navigation menu *\/<br \/>\nadd_theme_support( &#8216;genesis-menus&#8217;, array( &#8216;primary&#8217; =&gt; __( &#8216;Primary Navigation Menu&#8217;, &#8216;prestige&#8217; ) ) );<br \/>\n\/** Add Structural Wraps *\/<br \/>\nadd_theme_support(  &#8216;genesis-structural-wraps&#8217;, array(  &#8216;header&#8217;,&#8217;inner&#8217;, &#8216;footer-widgets&#8217;, &#8216;footer&#8217;  )  );<br \/>\n\/** Reposition Primary Nav *\/<br \/>\nremove_action( &#8216;genesis_after_header&#8217;, &#8216;genesis_do_nav&#8217; );<br \/>\nadd_action( &#8216;genesis_header&#8217;, &#8216;genesis_do_nav&#8217;, 11 );<br \/>\n\/** Remove Seondary Nav *\/<br \/>\nremove_action( &#8216;genesis_after_header&#8217;, &#8216;genesis_do_subnav&#8217; );<br \/>\n\/** Theme Stylesheets *\/<br \/>\nadd_action(  &#8216;wp_enqueue_scripts&#8217;, &#8216;zp_print_styles&#8217;   );<\/p>\n","protected":false},"template":"","class_list":["post-1178592","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Issue with php code to over write &quot;Events Archive&quot; -<\/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:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Issue with php code to over write &quot;Events Archive&quot; -\" \/>\n<meta property=\"og:description\" content=\"Hi &#8211; We updated the pHp code as per your instructions here: https:\/\/theeventscalendar.com\/knowledgebase\/titles-in-yoast-seo\/ However, it is not working properly on our live site here http:\/\/squamishadventure.com\/events\/ I have attached the code we updated &#8211; can you advise on what we are missing? Paula &lt;?php \/** Start Engine *\/ require_once( get_template_directory().&#8217;\/lib\/init.php&#8217; ); \/* Add HTML5 markup structure [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/\",\"name\":\"Issue with php code to over write &quot;Events Archive&quot; -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-10-18T19:26:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Issue with php code to over write &quot;Events Archive&quot;\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Issue with php code to over write &quot;Events Archive&quot; -","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:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/","og_locale":"en_US","og_type":"article","og_title":"Issue with php code to over write &quot;Events Archive&quot; -","og_description":"Hi &#8211; We updated the pHp code as per your instructions here: https:\/\/theeventscalendar.com\/knowledgebase\/titles-in-yoast-seo\/ However, it is not working properly on our live site here http:\/\/squamishadventure.com\/events\/ I have attached the code we updated &#8211; can you advise on what we are missing? Paula &lt;?php \/** Start Engine *\/ require_once( get_template_directory().&#8217;\/lib\/init.php&#8217; ); \/* Add HTML5 markup structure [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/","name":"Issue with php code to over write &quot;Events Archive&quot; -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-10-18T19:26:11+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/issue-with-php-code-to-over-write-events-archive\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Issue with php code to over write &quot;Events Archive&quot;"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1178592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1178592\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1178592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}