• I was trying to put my own header in and have ended up with two – which is not attractive. I have only been into two files – the header.php and the style css. I copied and saved all of the code before I changed anything. Now I’ve deleted all the code in those files and reinserted the original – but I still have a messed up header. Any thoughts on how to fix it?
    https://wahmingit.com
    Thank You.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Your header.php is either being included twice or you have duplicated the code in it.

    Thread Starter dkmom

    (@dkmom)

    Your header.php is either being included twice

    How would this be? Where do I find this? Since I’m pasting in the original code – how can it be there twice? I’ve looked through the code and I don’t see it twice. This is so frustrating.

    I would recommend that you redownload your theme and replace your malfunctioning theme with this fresh, unedited copy.

    Thread Starter dkmom

    (@dkmom)

    I would recommend that you redownload your theme and replace your malfunctioning theme with this fresh, unedited copy.

    I like that! Thank you! I was just wondering if that was possible. How do I do that? Do I have to go to the Themes directory and select it or is there another method?
    Thank you so much! I found the w3c tutorials on css and I’m starting those.

    First switch to the default theme. Then go to the Themes directory replace your old theme with your newly downloaded theme. Now switch to your newly downloaded theme. If you have any custom files (your own images, etc.) in your old theme folder, rescue them first.

    The easiest way to switch a header image is to just create a new image with the same name as your current header image and then upload it and replace the old image.

    Thread Starter dkmom

    (@dkmom)

    Thank you all! I have a new, unmuddled theme up. Whew. I am trying so hard to pull this all together.

    The easiest way to switch a header image is to just create a new image with the same name as your current header image and then upload it and replace the old image.

    This has been my source of frustration. I just can’t find that stupid header img. I know it’s there, but I can’t find the right snippet. In the tutorials the code looks different. Once I added widgets it changed the basic layout of the code and all of my files now start with a whole bunch of widget info and the rest of the code seem highly abbreviated.
    I’m trying though. ??

    Try looking in your theme’s images folder (open every image and look at it if necessary) to find the header image to replace.

    Thread Starter dkmom

    (@dkmom)

    Try looking in your theme’s images folder (open every image and look at it if necessary) to find the header image to replace.

    Excellent!

    I don’t whether to laugh or cry – the new theme I installed is not Widget ready and looking at the instructions for (possibly) making it Widget ready, I’m not sure I’m up to it. I wanted it mainly so I could rearrange the sidebar list to be in a different order – I think I can do that just cutting and pasting the list items (code) in the order I want them. Right? (she says timidly after the last fiasco)

    If you want to use widgets, I would choose a widget-ready theme. My old theme was not widget-ready (and very old), and rather than trying to convert it, I switched to a new theme and it has worked great with the latest versions of WordPress.

    You can rearrange your sidebar order by rearranging the code in your theme’s sidebar.php, but things can go wrong, so keep a backup copy of sidebar.php just in case.

    Thread Starter dkmom

    (@dkmom)

    Thanks! Oh – how can you tell if a theme is widget ready? I didn’t see anything about that when I chose the current theme. I found out afterwards.

    Widget-ready themes usually list that they are, but here is more info on widget-ready themes and converting non-widget-ready ones:

    https://automattic.com/code/widgets/themes/

    Thread Starter dkmom

    (@dkmom)

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘header help -why are there two?’ is closed to new replies.