• Resolved Neeruam12

    (@neeruam12)


    I was asked to create a site exactly like an older site we own so I used Twenty Ten.

    I have my main navigation menu, which is fine. But I want to add another custom menu to the top right corner of the website. (custom menu is already created and ready to go)

    I broke the cardinal rule of Twenty Ten and did not make a child theme and started by directly editing the theme. After getting a syntax-error block out (fixed) and reading in the forums, I realized that I needed a child theme.

    I was attempting to follow advice from the following (to activate widget area) before the syntax error happened.

    https://codex.www.ads-software.com/Widgetizing_Themes

    https://www.ads-software.com/support/topic/add-header-widget-area?replies=16

    I used the plugin Child Theme Creator by Orbisius and created a child theme.I wasn’t sure if the plugin would work for me. I erased the plugin but realized that the child theme I had created was still there.

    After I recovered the site from that block out/ crash whatever, I noticed my layout was sort of off on the homepage as well.

    I searched around to see another way of doing it but ended up using the child theme I had created with the plugin.

    So now I have my child theme which seems peachy-keen. Everything works and the theme looks like it’s supposed to. I think it would be best to widgetize the top right corner but I am open to any other suggestions at this point.

    The widgetizing article suggests editing the functions.php, which doesn’t exist in the child’s editor. I attempted to edit the parent and again, boom, syntax error. fixed that. I attempted to copy the functions.php to the child. syntax error… and I think that was the wrong thing to do anyway.

    I have a strong suspicion that these errors could be because I did the child theme in a weird way or messed up the parent too much. But I don’t know. Obviously, I am not grasping this concept as much as I probably should at this point.

    Are there any free themes that already have the top right widget area activated?

    Any suggestions on how to get a small custom menu in the top right of my website? It seems like such a simple task but I just can’t get it!

    Keep this in mind when answering:

    I am okay at doing pretty basic WP stuff. I have access to our FTP and can use it easily most of the time. Most of the time if I want to accomplish something I just look up how to do it and try and that usually works. Point is, I’m learning.

    I don’t know code and I suspect the placement of the menu might need some styling direction that I don’t know how to give yet.

    Also it’s worth mentioning that the only thing on the site at this point is just the layout and the menus and pages I’ve created. Everything is blank and I’ve just created posts to train the people who are going to be contributing to it. It’s an incredibly simple layout at this point. Here it is:

    https://vitamininsider.com

    Argh. Any advice would be appreciated!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thanks for using our Child Theme Creator and it does work for themes that are well written (to be child theme friendly).

    Thread Starter Neeruam12

    (@neeruam12)

    Orbisius, thank you! It seems to have worked very well :), even though I didn’t know what I was doing.

    Do you have any advice for me? Should I be trying to copy my functions php into my child theme for editing, or should I just keep trying edit the parent? Any help would be appreciated :).

    It really depends. If you copy the functions directly in some cases this will CRASH your site. I mean it.
    This is the case when functions.php defines functions that are not pluggable i.e. they don’t check if they have been defined just yet.
    Some smart developers do use function_exists… blocks before they define functions.

    https://www.doitwithwp.com/quick-note-theme-devs-use-function_exists/

    I’d say have a php savvy buddy near you when you edit functions.php

    Slavi,
    https://club.orbisius.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Troubles Widetizing Top Right Header area twenty ten theme/ child parent issue?’ is closed to new replies.