Search This Blog
Popular Posts
-
Elegant Themes has been developing WordPress themes for a long time. It has developed lots of popular themes including Divi, Nexus, Fa...
-
How to start a blog or website in 5 minutes with WordPress. After publishing the post on how I started blogging full-time, I'v...
-
Hello there! My blog post 'Spikes' was published on Sept. 22nd; however, the post before it called 'Flow' was published on...
-
Flickr/Laura D'Alessandro See Also I took Harvard Business School's new pre-MBA course online — and it is definitely w...
-
The WordPress project released today version 4.5.2 of the WordPress open-source platform that contains two security issues in two librarie...
-
Hi I am using Oxygen theme for my blog page. However I realised the posts are formated in a way that it only shows a featured image on the...
-
No matter how big or small a web site or blog might be today, what they all have in common with each other is that at one time it was the...
-
There are a number of ways in which your site could become the victim of a security breach. Unsupported and outdated plugins and themes ar...
-
I will publish an article only when I have something important to say. That's what I reminded myself every time the egocentric ...
-
JavaScript for WordPress Developers: Getting Started With jQuery Daniel Pataki August 4, 2016 #development #javascript #jquery ...
Blog Archive
- December (18)
- November (29)
- October (27)
- September (29)
- August (31)
- July (30)
- June (29)
- May (29)
- April (30)
- March (31)
- February (28)
- January (31)
- December (31)
- November (30)
- October (31)
- September (30)
- August (43)
- July (42)
- June (33)
- May (43)
- April (36)
- March (37)
- February (31)
- January (4)
- December (1)
- November (1)
- October (24)
- September (24)
- August (25)
- July (28)
- June (18)
- September (1)
Total Pageviews
Blogroll
Editing Theme File, Crashed Website?
omarochoaMemberPosted 4 hours ago #
Hello all,
I was editing a blog of mine on WordPress at http://jonathangcameron.com/ and went into custom-header.php and wanted to edit the color on the header bar of the website. The theme is a free theme on WordPress called Flatter. It initially read:
//If no custom options for text are set, let's bail //get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hexvalue if ( HEADER_TEXTCOLOR === $header_text_color ) { return; }I edited the portion " === $header_text_color " to say " === #0f5971 " and when I hit Update File to see the changes, the website showed this error message.__
"Parse error: syntax error, unexpected 'return' (T_RETURN) in /home/camerondowning/public_html/jonathangcameron.com/wp-content/themes/flatter/inc/custom-header.php on line 43"__
How can I fix it? I can't even log into the WordPress site to undo any changes.
Regards
Access your server via SFTP or FTP, or a file manager in your hosting account's control panel, and edit the file with a plain text editor.
When you have undone what you changed and saved the file, I recommend reporting the issue at https://wordpress.org/support/theme/flatter so the theme's developers and support community can help you with this.
Source: Editing Theme File, Crashed Website?
0 comments:
Post a Comment