WordPress.org

Support

Support » Themes and Templates » Expound » [Resolved] syntax parse error when editing functions.php for new widget areas

[Resolved] syntax parse error when editing functions.php for new widget areas

  • vanessajw

    @vanessajw

    Hi, the manuals all say to add certain code to the functions file when registering a new widget area, as this theme lacks widget areas beyond the basic sidebar. But I get a parse syntax error whenever I try to edit and save the file, locks me out of the dashboard and I have to then use the backup files on my server control panel. Scary……so what is wrong and why is this happening? This is when editing the parent theme file, and it’s only this file that makes this happen. Child theme css adds are fine, but don’t always override the parent. Can Konstatin correct this, is it a theme error, or can he quickly create widget areas for footer and more sidebar widgets for us?

Viewing 15 replies - 1 through 15 (of 17 total)
  • esmi

    @esmi

    Forum Moderator

    Do not edit the theme itself. First create a child theme for your changes.

    vanessajw

    @vanessajw

    yes I’ve done that, I work most of my css edits in the child theme, but I don’t have any parent template files duplicated in the child theme to edit, they apparently come from the parent. and the style sheet edits come under the child theme. So I can only edit the parent functions file.

    vanessajw

    @vanessajw

    do I tell the host to add a blank functions php file to the child theme?

    WPyogi

    @wpyogi

    Forum Moderator

    See:

    http://codex.wordpress.org/Child_Themes#Using_functions.php

    Why are you telling the host? Aren’t you managing these files yourself?

    vanessajw

    @vanessajw

    No I don’t manage them the host said they kept them on their control panel which I can access and have done so. But I don’t have any files duplicated to sync on my computer. So do I ask them to create a blank php file for the child theme? Why does this have to be so complicated!

    WPyogi

    @wpyogi

    Forum Moderator

    But I don’t have any files duplicated to sync on my computer.

    You don’t need to sync anything to your computer. You need to create a functions.php file in the child theme on the server.

    Hi
    Once you get to know the concept of child theme, then customizing the theme wouldn’t be a great deal. Get into the link below, it explains about creating a child theme for Expound.

    http://wordpress.org/support/topic/expound-a-few-problems-please-help?replies=45

    I hope you’ll move on without any hassles..

    vanessajw

    @vanessajw

    I’ve already got the child theme, but until I sync or upload via FTP the files I can’t out them on the server set can I? At the mo I don’t have set of files on my laptop it’s only on the host control panel and they don’t respond to my mouse accept to copy or open. You’re driving me crazy on this…..I cannot add new files to my child theme yet….until I somehow set up the FTP transfer mechanism which I haven’t done yet then I might be able to add the new functions file to the child theme.

    WPyogi

    @wpyogi

    Forum Moderator

    until I somehow set up the FTP transfer mechanism which I haven’t done yet then I might be able to add the new functions file to the child theme.

    Are you not able to use FTP with your hosting?

    WPyogi

    @wpyogi

    Forum Moderator

    vanessajw

    @vanessajw

    “You don’t need to sync anything to your computer. You need to create a functions.php file in the child theme on the server.”

    Yes you CANNOT do that if your files are not uploaded via FTP from your laptop right??!!! And I don’t have that yet my files are ONLY on the host control panel and there is no way I can see of adding new files to the child theme.

    WPyogi

    @wpyogi

    Forum Moderator

    So is there a reason you have not set up FTP?

    vanessajw

    @vanessajw

    A do have now the settings for setting up the FTP so if that’s the way to go I will do it.

    vanessajw

    @vanessajw

    No no reason, the hosts who advertise as experts said I didn’t need it, but they don’t seem to realise that to use .org more fully like this it’s better, and it was very confusing being told different things….that’s a why I’m so cross and confused….it’s hard enough without having different books and different people giving different advise.

    WPyogi

    @wpyogi

    Forum Moderator

    Yes, that’s understandably confusing/frustrating. But frankly, some hosting company support people really don’t know much about WP, and books get outdated quite fast.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘[Resolved] syntax parse error when editing functions.php for new widget areas’ is closed to new replies.
Skip to toolbar