Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].
I added some code in function.php file.
I got an error on updating so i removed the code i added. but i still got this error –
Parse error: syntax error, unexpected ‘<', expecting end of file in /home1/runwaym3/public_html/wp-content/themes/siteorigin-unwind/functions.php on line 301
Now i can't login to my dashboard. My site shows this error. Please Help! :(
Hi Sonakshigupta,
Okay so based on your description, you haven’t reversed the edits you’ve made correctly. I would recommend completely reinstalling Unwind to resolve this issue. To do this you’ll need to use FTP. Once you’ve connected, please navigate to your WordPress directory, then wp-content/themes/siteorigin-unwind and replace functions.php with this file.
I would recommend using a plugin like Code Snippets in the future as it’ll prevent these sort of issues from happening.
Hi,
I was able to solve the issue by logging in to my cpanel. Using the file manager, I edited the functions.php file to it's original self and the website was back to normal.
Reinstalling would've made me lose my customisation, right?
Anyway, thank you! :)
Hi Sonakshigupta,
Awesome.
Oh. Sorry, I had intended to remove that line as it was a tad too extreme but to answer your question – it would have yes. If you aren’t already, please use a child theme to retain edits on theme update.
I would surely consider getting a child theme! Can you tell me how can I install it? What changes do I need to make to my dashboard?
Hi Sonakshigupta,
You can download a basic Unwind child theme here. Open extract it and copy all of the changes you’ve made to the child theme (try not to add any code for anything you haven’t changed in the functions.php as it could cause issues down the line). One you’re ready to install it, archive it again and then install Customizer Export/Import and then navigate to WP AdminAppearanceCustomize, Export/Import and export your settings. Please navigate to WP Admin > Appearance > Themes and click Add New > upload Theme and upload/activate your edited child theme. Please navigate to WP AdminAppearanceCustomize, Export/Import and import your previously exported settings.
Thankyou Alex! That was helpful.
I would also like to ask, do I need a Child theme? Currently I haven't made any changes in the functions.php or any other internal file.
Just customised the theme using the features offered by it. Can I lose those settings in an update?
Hi Sonakshigupta,
No, you only need a child theme if you make changes to core theme files. Honestly, the only reason to use one these days if you alter the template structure of pages. Adding simple PHP (use Code Snippets) and CSS (via SiteOrigin CSS) is much easier with plugins and often brings added features that you otherwise wouldn’t have.
Okay! Thanks. I can't seem to find the continue reading button after the excerpt of each post! I saw that in the demo of the theme though. How can I enable/add it?
Hi Sonakshigupta,
You can enable the continue reading button by navigating to WP AdminAppearanceCustomize, Theme SettingsBlog and set Post Content to Excerpt.
I have already done that but there is no continue reading button. Why is that?
You can check my blog – runwaymartini.com
Hi Sonakshigupta,
I’m not too sure why that would be. Hm. Would it be possible for you to create a temporary admin account for us so we can log in and take a look?
This is a private message.
Done! Please take a look :)
P.s. I would not like to make changes to my theme folders to simplify the process of updates. (no child theme)
This is a private message.
Hi Sonakshigupta,
That’s really odd. I can’t seem to see any obvious reason why it’s not working for you. Unless maybe a plugin was disabling it. Can you try disabling all non-SiteOrigin plugins and see if this fixes the issue? You’ll need to clear all your caches after disabling your plugins.
If it does fix the issue, then try re-enabling your plugins one by one until the issue comes back. This procedure will help diagnose which plugin is causing the issue.
Once we know that, we’ll be able to look at what might be causing the conflict and either solve the problem or help you find an alternative plugin.
I will have to reconfigure all the plugins if i reactivate them. That is a daunting task to do.. Isn't there some other way this can be checked? The problem is right from the beginning when I hadn't even installed many plugins except for a few basic ones like jetpack, yoast, akismet.
Is it possible that while installing the theme there were some issues? I uploaded the theme using my dashboard. Appearance>themes>add new
Hi Sonakshigupta,
Don’t worry, you won’t have to do that. Plugins will only ever remove settings if you either uninstall them or reset the settings via its settings. Developers understand that there are very valid instances where users may need to temporarily disable their plugin so they don’t rely on the plugin activation status as to how they manage their settings. Regardless, I would do a backup so even if something bad does occur, you can just restore the backup.
I mean, it’s possible but unlikely. Can I reinstall the theme?
Please note the installation method is the recommended one.
If you can make my site remain as it is right now after reinstalling the theme, then you may! ?
Hi Sonakshigupta,
Sorry for the delay.
Okay, so I’ve since found out that the only method of doing this currently is by doing this manually. I’ve gotten the development team to add a setting to automate this so in the next update you’ll simply need to tick a setting (which will be present at WP AdminAppearanceCustomize, Theme SettingsBlog). I would expect an update sometime this week.
Very sorry about this!
Thank you so much for looking into this.
I hope it resolves the issue! :)
I updated the theme and checked the button! It works now! This was brilliant!! Thank you so much.