Download a new copy of the theme to your local computer and replace that file with a new copy.
For future reference, changes to theme files should preferably be made using a child theme – so that they are not overwritten when the theme is updated – http://codex.ww.wp.xz.cn/Child_Themes
Hi – thanks for the quick response!
I’ve downloaded visual.0.7.zip
But I can’t seem to find the existing visual.0.7.zip file.
I don’t remember deleting it, and all the other wordpress files are in my Downloads folder.
Is there anywhere else it would be ?
Did you download from here:
http://ww.wp.xz.cn/themes/visual
to your local computer? Then unzip it there and find the functions.php file?
Hi yes, I downloaded it from http://ww.wp.xz.cn/themes/visual.
However my website is being hosted on a server, not on my personal PC that I am using now.
Do I have to speak to the person who runs the server or can I fix it myself from my personal PC?
When I loaded the previous Visual theme I downloaded the Zip file and then uploaded the zip file into wordpress.
And I can’t find the Visual theme folder on my PC.
Does that make sense ?
You need to change the file on the server, yes. Can you still access the dashboard or did you get locked out? If you’re locked out, you will need to use FTP (or other file manager) to access the files on the server – in which case, yes, the hosting company would be the ones to tell you how to do that (FTP is generic, not part of WP).
So far as downloading the theme – can’t you download a zipped file to your desktop or ?? (This isn’t a WP issue…I don’t know how your computer is set up) You’re just using your local computer to get a hold of the new file…
Hi – Unfortunately I can’t access the dashboard.
I get the same error message.
Parse error: syntax error, unexpected ‘<‘ in /home/mikespic/public_html/wp-content/themes/visual/functions.php on line 182
I still have the Visual theme’s Functions.php page open.
Would it be possible to edit that ?
With regards to downloading the Visual theme – I can download it fine.
BUT I can’t find the original visual theme files. So I can’t replace the old messed up files with the new ones I just downloaded.
No, the files aren’t on your local computer – they’re on the server – changing something on your local computer won’t change the site. I doubt you can change out that file as is – you can try copy/pasting in the new file – if you can delete the old content, but I kinda doubt it will save it. So then you will need to use FTP to get to that file – it will be located here:
wordpress
wp-content
themes
visual
functions.php
Do you have access to the server files? Or can you get that info?
Hi – I will email my friend who runs the server.
Hopefully he can sort it out.
Thanks so much for your help!
You’re welcome – BTW, this kind of thing happens all the time so don’t sweat it too much :). Once you get the FTP info, you’ll be able to swap that out.