WordPress.org

Ready to get started?Download WordPress

Forums

simpleX
Header just vanished (10 posts)

  1. seeingdesign
    Member
    Posted 2 years ago #

    I am using simplex and my header graphic and navigation just totally disappeared. anyone know the reason and most importantly how i can get my site, http://SeeingDesign.com , back to normal?

    [email removed]
    Thanks so much,
    Mike

    http://wordpress.org/extend/themes/simplex/

  2. seeingdesign
    Member
    Posted 2 years ago #

    in addition, all my formatting is wrong, links to read more are gone, all sorts of custom work i did to the blog has been erased. PLEASE HELP.

    URGENT :(

  3. peredur
    Member
    Posted 2 years ago #

    How did it get there in the first place? As far as I can see, the simpleX theme doesn't have a header image. In the foreground, at least.

    You could put a background image by altering this rule:

    #header {
      background-attachment: scroll;
      background-clip: border-box;
      background-color: #282923;
      background-image: none;
      background-origin: padding-box;
      background-position: 0 0;
      background-repeat: repeat;
      background-size: auto auto;
    }

    It's in this file.

    No idea why the navigation doesn't show up. It's called like this (in functions.php:

    function theme_nav() {		
    
      if ( function_exists( 'wp_nav_menu' ) )
    
        wp_nav_menu( 'sort_column=menu_order&container_class=menu&menu_class=&menu_location=main-menu&fallback_cb=gpptheme_nav_fallback' );
    
      else
    
        theme_nav_fallback();
    
    }

    According to the codex:

    "Given a theme_location parameter, the function displays the menu assigned to that location, or nothing if no such location exists or no menu is assigned to it."

    SimpleX calls wp_nav_menu() like this:

    wp_nav_menu( 'sort_column=menu_order&container_class=menu&menu_class=&menu_location=main-menu&fallback_cb=gpptheme_nav_fallback' )

    That doesn't tie up with what I see in the Codex, but maybe I'm misunderstanding something.

    Sorry I can't be of more help.

    Cheers

    PAE

  4. peredur
    Member
    Posted 2 years ago #

    Ah! I see you did a lot of custom work. Did you do a theme update recently and did you not do your custom work in a child theme?

    Do you have a backup of your changes?

    Cheers

    PAE

  5. seeingdesign
    Member
    Posted 2 years ago #

    thanks so much for trying, yeah my blog was 100% dialed in for about 2 years. and as of yesterday it was perfect, as of today, totally f*cked. was their an update that came through yesterday? would that have erased all the code i have written?

  6. seeingdesign
    Member
    Posted 2 years ago #

    I do not know what a child theme is. And I might have a very old copy of my changes. crap, would this thing overwrite all my code. i never knew that, and there was no message to that effect. damn.

    this is what my site used to look like:
    http://web.archive.org/web/20110423195610/http://seeingdesign.com/

  7. seeingdesign
    Member
    Posted 2 years ago #

    how do i create a child theme?
    and if i can find a back up of my files, can i just drop them into my FTP directory? will that mess up the theme?

  8. seeingdesign
    Member
    Posted 2 years ago #

    So i found a copy that was from June 30th. I took the entire simplex theme folder, and replaced all files. however many things didnt come through.

    - nav still busted
    - no background image in header, although logo shows now
    - everything is centered

    might i need to change files that are NOT in this folder.
    "\seeingdesign\wp-content\themes\simplex"

    thanks for your help Peredur. life saver!

  9. peredur
    Member
    Posted 2 years ago #

    Creating a child theme is child's play:

    http://codex.wordpress.org/Child_Themes

    It's the recommended way to make changes and prevents theme updates from overwriting your changes. Unfortunately, it's a bit late to be saying this to you now. I'm sorry.

    Assuming your theme's been upgraded I wouldn't copy your old files back. It could lead to inconsistencies. You'll need to go through your backup noting your changes and then incorporate them into your child theme. Most of your changes appear to have been in the header, so it should be fairly easy to locate your changes: and you can use Firebug on the web archive to see what your HTML/CSS used to be.

    A bit of work, but probably not the end of the world.

    Of course, I'm assuming that it's an upgrade that's responsible for all this: but I've no evidence that my suspicions are correct, beyond the circumstantial.

    HTH

    PAE

  10. peredur
    Member
    Posted 2 years ago #

    I'd still copy everything into a child theme and then completely reinstall simpleX.

    After ensuring that everything works OK in that state I'd weed the child theme files by:

    • Getting rid of any known not to have changed out of the child theme altogether
    • Doing a diff on the remaining files to find any more that haven't changed
    • Using diff again to find the stylesheet changes and leaving only the changes in the child theme stylesheeet following the @import of the parent stylesheet

    Make sure you keep copies of things before making any changes.

    HTH

    PAE

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic