WordPress.org

Ready to get started?Download WordPress

Forums

Expound
[resolved] syntax parse error when editing functions.php for new widget areas (18 posts)

  1. vanessajw
    Member
    Posted 4 months ago #

    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?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

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

  3. vanessajw
    Member
    Posted 4 months ago #

    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.

  4. vanessajw
    Member
    Posted 4 months ago #

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

  5. WPyogi
    Volunteer Moderator
    Posted 4 months ago #

    See:

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

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

  6. vanessajw
    Member
    Posted 4 months ago #

    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!

  7. WPyogi
    Volunteer Moderator
    Posted 4 months ago #

    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.

  8. vinn95
    Member
    Posted 4 months ago #

    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..

  9. vanessajw
    Member
    Posted 4 months ago #

    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.

  10. WPyogi
    Volunteer Moderator
    Posted 4 months ago #

    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?

  11. WPyogi
    Volunteer Moderator
    Posted 4 months ago #

  12. vanessajw
    Member
    Posted 4 months ago #

    "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.

  13. WPyogi
    Volunteer Moderator
    Posted 4 months ago #

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

  14. vanessajw
    Member
    Posted 4 months ago #

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

  15. vanessajw
    Member
    Posted 4 months ago #

    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.

  16. WPyogi
    Volunteer Moderator
    Posted 4 months ago #

    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.

  17. vanessajw
    Member
    Posted 4 months ago #

    Yes I think now I have these FTP settings I shall make progress but no thanks to a young man on the phone from TSO who said I didn't need another FTP, and hadn't used WordPress, in some ways I agree cos my control panel already shows FTP settings. But anyway I'm a bit further forward. So I've got my FileZilla and will take it from there and report back.

  18. vanessajw
    Member
    Posted 4 months ago #

    Thanks for your contributions I need a few days off WP tinkering it's doing my brain in and it's scary.

Reply

You must log in to post.

About this Theme

About this Topic