• Resolved Vivek Hutheesing

    (@vhutheesing)


    Hi There!

    I’m new to WordPress.org and am trying to modify the Twenty Twelve theme’s header links (i.e. About Blog Resources Etc.) so that they are at the very top of the web page (a position modification) and so that they stay there in view when one scrolls all the way down (a behavior modification).

    I tried making changes to the header.php code shown in the WP dashboard after clicking Appearance > Editor > Header but it did not seem to affect my header links or anything else for that matter, even after refreshing the web page.

    I’d be grateful for any help on this matter as I’m a WP newbie.

    Many thanks,

    Vivek

Viewing 15 replies - 16 through 30 (of 56 total)
  • You need to copy the header.php file into your child theme and modify only that file. Do not touch anything in the parent theme.

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    Esmi,

    Got it, thanks.

    Vivek

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    Esmi, forgive all these posts, but pls correct me if I’m wrong, but I think I need to copy the header.php file of my parent into the functions.php window provided in my child’s theme section. Then do any edits there in the child theme. Will report back. Vivek

    No. If you wish to modify the header.php file, then you need to copy it into the child theme and edit the child theme’s copy.

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    Well did that and I seem to have blown everything. I cannot use the editor any longer, or even change themes. I’m getting this error everywhere:

    Parse error: syntax error, unexpected ‘<‘ in /home/content/17/6628817/html/blog/wp-content/themes/twentytwelve-child/functions.php on line 5

    Delete the child theme and upload a fresh copy using FTP.

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    Cant even logout of WordPress..copying the header.php file of the twenty twelve theme into the function.php field of the child did something bad.

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    really weird, cannot even log back into WP at the URL where I normally do this ( http://blog.rblock.com/wp-login.php )

    all i did was select the parent, CTRL-C the header.php file, then select the child, and CRTL-V the content into the function.php file and hit save, and WP doesnt seem to give me any of the screens I’m used to seeing – i just get the Parse error screen above.

    i may have to get a new install through godaddy, my host…

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    my blog at http://blog.rblock.com/ is gone too

    Delete the child theme and upload a fresh copy using FTP.

    Do not edit functions.php
    You will need to go in thru FTP and delete the child-theme folder.
    Then re-upload the original child-theme again once you gat back to the admin panel.

    After that is done post back here

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    esmi, thanks heavens, i got it all back. I used my FTP client to move the functions.php file from the hosted twentytwelve-child folder to my local machine, and removed what I had copied into it. Then I saved it and copied it back to the hosted folder, over-writing the file I messed up.

    OK, going to do more research before I try all that again. Clearly one must not move the entire header.php file of the parent theme into the fucntions.php file of the child theme – that’s what caused everything to crash

    best,

    vivek

    COPY the header.php file from the parent folder to the child folder.

    Thread Starter Vivek Hutheesing

    (@vhutheesing)

    hi batharoy,

    OK did that vis FTP, thanks.

    Now I presumably have to edit the header.php file with the child theme activated. Based on what I wrote above, about moving the header links to the top of the webpage and fixing them so they don’t scroll, could you recommend the edits I should try?

    many thanks indeed, to you and to esmi, for your mindshare

    vivek

    Correct, activate child-theme, go to Appearance > Editor
    You should see header.php & style.css in the list (more if you added any others).

    In the header.php look for the nav div starts with <nav id="site-navigation" ends with <!-- #site-navigation -->

    Cut & paste that section right below <div id="page" class="hfeed site">

    After that we will style & position it correctly with css.

Viewing 15 replies - 16 through 30 (of 56 total)
  • The topic ‘[Theme: Twenty Twelve] Modify position & behavior of header links’ is closed to new replies.