WordPress.org

Ready to get started?Download WordPress

Forums

Header appearing below menu (10 posts)

  1. hadders
    Member
    Posted 1 year ago #

    Hi

    I'm using the 2012 theme and added a temporary header image but it shows below the menu not above it.

    http://orsinijewellers.com/

    Whenever I've used the theme before the header image has been above the menu. How can I get it to show above please?

    Thanks

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Before you do anything more, you really need to go back and create a child theme - as you should not be making changes to theme files. When WP is updated you'll lose all your changes and it's imperative that you have a clean, unchanged copy of the default theme for troubleshooting purposes.

  3. hadders
    Member
    Posted 1 year ago #

    Thanks for this info. I didn't know about that.

    So I've uploaded the style.css file

    '/*
    Theme Name: Twenty Twelve Child
    Theme URI: http://example.com/
    Description: Child theme for the Twenty Twelve theme
    Author: A_H
    Author URI: http://example.com/about/
    Template: twentytwelve
    Version: 0.1.0
    */'

    But when I go to the Dashboard, Appearance, Themes, there is no child theme to select. There is a message saying

    "Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    Name Description
    Template is missing."

    So I am even more confused now.

    I appreciate your support - I'm not a code type of guy.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Do you have the @import line? Try putting just this in the style.css file in the child theme"

    /*
    Theme Name: Twentytwelve Child
    Description: Child theme for the twentytwelve theme
    Author: Your name here
    Template: twentytwelve
    */
    
    @import url("../twentytwelve/style.css");

    You can fill in the other stuff if you want to after it's working :).

  5. hadders
    Member
    Posted 1 year ago #

    I've uploaded this

    /*
    Theme Name: Twentytwelve Child
    Description: Child theme for the twentytwelve theme
    Author: Your name here
    Template: twentytwelve
    */

    @import url("http://orsinijewellers.com/public_html/wp-content/themes/twentytwelve/style.css");

    but I still get

    "Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    Name Description
    Template is missing."

    Thanks again

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Look at the @import line you have -- it's not correct -- it should only be this:

    @import url("../twentytwelve/style.css");
  7. hadders
    Member
    Posted 1 year ago #

    Sorry - I thought I had to include the actual domain in that line.

    So I've uploaded this

    /*
    Theme Name: Twentytwelve Child
    Description: Child theme for the twentytwelve theme
    Author: Your name here
    Template: twentytwelve
    */

    @import url("../twentytwelve/style.css");

    but still the same error about the missing template. I am totally lost now but I shall keep uploading and refreshing to see if there is a change.

    Going back to the original issue, do you know why would the header below the menu? It doesn't usually happen. Do you have any ideas how to cure that?

    Thanks

    AH

  8. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Make sure you don't have any caches on your site/server.

    It doesn't usually happen.

    Twentytwelve is not coded that way. This question has been asked and answered here a bunch of times --- here's one:

    http://wordpress.org/support/topic/how-to-move-menu-below-header-image-in-twenty-twelve-theme?replies=27

  9. hadders
    Member
    Posted 1 year ago #

    WPyogi

    Thanks for all your help and responses. It all finally worked.

    I go the child theme to activate, added header.php and then edited the code so that the header image is now above the menu.

    I really appreciate your help.

  10. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Good job - you're welcome :)! Please mark this thread resolved so others can make use of it more easily.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags