{"id":1109914,"date":"2016-05-03T03:00:04","date_gmt":"2016-05-03T10:00:04","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/"},"modified":"2016-05-06T07:09:17","modified_gmt":"2016-05-06T14:09:17","slug":"adding-codes-to-functions-php-causes-website-to-go-down","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/","title":{"rendered":"Adding codes to Functions.php causes website to go down."},"content":{"rendered":"<p>I have two websites, both under the same server and both uses the events calendar plugin and the same theme called Graphy from ThemGraphy. Only difference is that in this particular site (malaysiaperforms.com) it has the fb &amp; community add ons.<\/p>\n<p>Now without editing the functions.php , everything seems to be working fine except the the site title was &#8220;Upcoming Events | Events | Malaysia Performs &#8221; .  So to change browser<a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/changing-the-browser-title-for-calendar-views\/\"> title, i used this coding<\/a> and on its own without any edits, it works as how it should be.<\/p>\n<p>But having a coding display &#8220;Month View Page&#8221; is not what i was looking for. So i tried to change<\/p>\n<pre><code>\/\/ Month view Page\n\telseif ( tribe_is_month() &amp;&amp; !is_tax() ) {\n\t\t$title = &#039;Month view page&#039;;<\/code><\/pre>\n<p>to<\/p>\n<pre><code>\n\/\/ Month view Page\n\telseif ( tribe_is_month() &amp;&amp; !is_tax() ) {\n\t\t$title = &#039;&lt;?php bloginfo( &#039;name&#039; ); ?&gt; | Month view page&#039;;<\/code><\/pre>\n<p>Which i hoped that it will show &#8220;Site name | Month view page&#8221;  and to edit all other views accordingly. Now with &#8220;$title = &#8216;&lt;?php bloginfo( &#8216;name&#8217; ); ?&gt; | Month view page&#8217;;`&#8221;  set, i then save the file but as soon as i did that&#8230; MP.com fails to load.<\/p>\n<p>Even going to the backend and uploading the original functions.php has left my site unable to load at the moment of this post (my hosting theme is currently checking on it). Additionally I was able to fix this by renaming the Graphy theme folder to force it to deactivate and activate the default twentysixteen theme.<\/p>\n<p>Now doing that does not make a difference. <\/p>\n","protected":false},"template":"","class_list":["post-1109914","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>Adding codes to Functions.php causes website to go down. -<\/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\/adding-codes-to-functions-php-causes-website-to-go-down\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Adding codes to Functions.php causes website to go down. -\" \/>\n<meta property=\"og:description\" content=\"I have two websites, both under the same server and both uses the events calendar plugin and the same theme called Graphy from ThemGraphy. Only difference is that in this particular site (malaysiaperforms.com) it has the fb &amp; community add ons. Now without editing the functions.php , everything seems to be working fine except the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-06T14:09:17+00:00\" \/>\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\/adding-codes-to-functions-php-causes-website-to-go-down\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/\",\"name\":\"Adding codes to Functions.php causes website to go down. -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-05-03T10:00:04+00:00\",\"dateModified\":\"2016-05-06T14:09:17+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/#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\":\"Adding codes to Functions.php causes website to go down.\"}]},{\"@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":"Adding codes to Functions.php causes website to go down. -","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\/adding-codes-to-functions-php-causes-website-to-go-down\/","og_locale":"en_US","og_type":"article","og_title":"Adding codes to Functions.php causes website to go down. -","og_description":"I have two websites, both under the same server and both uses the events calendar plugin and the same theme called Graphy from ThemGraphy. Only difference is that in this particular site (malaysiaperforms.com) it has the fb &amp; community add ons. Now without editing the functions.php , everything seems to be working fine except the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/","article_modified_time":"2016-05-06T14:09:17+00:00","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\/adding-codes-to-functions-php-causes-website-to-go-down\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/","name":"Adding codes to Functions.php causes website to go down. -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-05-03T10:00:04+00:00","dateModified":"2016-05-06T14:09:17+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/adding-codes-to-functions-php-causes-website-to-go-down\/#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":"Adding codes to Functions.php causes website to go down."}]},{"@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\/1109914","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1109914\/revisions"}],"predecessor-version":[{"id":1109931,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1109914\/revisions\/1109931"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1109914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}