Need Wordpress Help, Warriors

11 replies
Hey guys and gals,

I am doing a bit of a clean up job on a friends blog, permalinks, categorys, plugins etc...

My friend wants to use one theme but wants to use the header of another theme.

I have tried copying the html code of the header into the header of the other theme but it didn't display the blog at all.

Any ideas at all would be greatly appreciated or if this can be done.

Thanks

Glyn
#blogs #warriors #wordpress
  • Profile picture of the author icun
    Yeah, there's no technical reason this can't be done.

    If the new header has all of the coorrect wordpress PHP code then it will function properly. Then, the HTML code that is in the header file will also need to have the corresponding CSS styles added to the sttylesheet and maybe any dependent javascript files.

    If you could post some code or a link I'd be able to help some more.

    Regards,
    Martin
    {{ DiscussionBoard.errors[2181475].message }}
    • Profile picture of the author eZwerge
      make sure your header.php file doesn't reference anything outside of the blog and update css to match your header. Then try and search the code of the other wp files to see what else references the header file.

      Some wp theme designers don't like it much when you mix and match and embed code that breakes when you try to modify their theme.

      This is most common in the footer.php (where designers like to include back-links), but I've seen it in header.php files as well.

      Alternatively it might be worth just modifying the original header to make it look like the new one instead.
      {{ DiscussionBoard.errors[2181503].message }}
    • Profile picture of the author glynlafferty
      Originally Posted by icun View Post

      Yeah, there's no technical reason this can't be done.

      If the new header has all of the coorrect wordpress PHP code then it will function properly. Then, the HTML code that is in the header file will also need to have the corresponding CSS styles added to the sttylesheet and maybe any dependent javascript files.

      If you could post some code or a link I'd be able to help some more.

      Regards,
      Martin
      This is the header that he wants to use

      Anthony Mann

      This is the theme I installed for him

      Anthony Mann

      What do you think

      Icun
      {{ DiscussionBoard.errors[2181715].message }}
      • Profile picture of the author Istvan Horvath
        Originally Posted by glynlafferty View Post

        What do you think
        I think you should not "help" people with WP if you don't know what you are doing...

        The first link you put in the post above can be viewed only by logged in administrators of the blog - for starters. In other words: it is useless.

        No, you can NOT copy the code from one theme's header.php into another theme. I suspect you (or your friend) wanted to replace just the header image. If yes, why don't you just do that instead of messing with the code that you don't understand? - This is the image you want to replace:
        http://anthony-mann.com/wp-content/t...rickheader.jpg
        - check its size (760x200 pixels)
        - create an image of the same size
        - name it exactly as the old one (kubrickheader.jpg)
        - upload and replace the existing image with yours

        (N.B. the "web designer" of this theme just modified the WP default... even forgot to rename the "kubrickheader"; sloppy job)
        Signature

        {{ DiscussionBoard.errors[2181759].message }}
  • Profile picture of the author JTor
    Use Firefox + Firebug and find out what are the CSS tags associated with the header you want to use, and then copy these tags + the HTML code to the new header.
    {{ DiscussionBoard.errors[2181485].message }}
  • Profile picture of the author bobratcliff
    Which theme are you using?

    There are a lot of varieties out there, especially the themes you purchase. Some might require you us a png image file instead of a jpeg. Others want you to save all features before displaying header. If is is just a wordpress platform loaded on your own domain with a free theme...the free theme might have limitations.
    {{ DiscussionBoard.errors[2181495].message }}
  • Profile picture of the author Fernando Veloso
    I see same site, same header.

    ?
    Signature
    People make good money selling to the rich. But the rich got rich selling to the masses.
    {{ DiscussionBoard.errors[2181716].message }}
  • Profile picture of the author Leslie B
    I also see the same site.

    Now, to answer your question. It's the header image he wasn't from one theme and he wants to upload it to the other theme, right? So, why not take out the header image out of the first theme and upload it to the themes folder on his site (with the theme he wants). Then make some adjustments in the stylesheet to get everything looking like it should (adjusting height of the header for example) and that should solve the problem. Just make sure you name the header image file the same as it is called in the second theme.

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2181763].message }}
  • Profile picture of the author Ormonious
    Or just use snag it to recreate the image, resize it and then put it on your new theme
    {{ DiscussionBoard.errors[2181837].message }}
    • Profile picture of the author Oleg Cherkasky
      I will tell you 1 little thing, edit the code in notepad, if you do it from within wordpress the thing with the blog not appearing at all is more likely to happen.
      {{ DiscussionBoard.errors[2181849].message }}
  • Profile picture of the author glynlafferty
    Thanks folks,

    I think I tell him to get some expert help on this bit over my head this stuff. My html skills are minimal and was looking at the image folder and there are alot of different Images to make up the one header that I want to change.

    Thanks again

    Glyn
    {{ DiscussionBoard.errors[2181921].message }}

Trending Topics