• Dont know if anyone can help me but this is my last resort. I have a very complicated website that I was forced to take over and now I have to make a blog. I have created the blog and I am so close to getting the custom theme looking like the website but I am stuck. I am not good at code so I would really love some help.

    My issues.

    1.footer displays under header

    2.as soon as I do the “loop code” into my content div nothing shows up, I can put normal text into my content div and it shows up but no wordpress stuff.

    3.My wrapper background image is not showing unless I remove this from header.php

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>

    Dont ask how I figured that out….but when I remove it my menu gets stretched out..

    If anyone could help me through this I would be thrilled. Let me know what you need as far as files.

    Thanks
    Trevor

Viewing 8 replies - 1 through 8 (of 8 total)
  • 1. Badly structured markup, invalid markup or poor CSS.

    2. You need to revise what is needed for templates and for the Loop:
    https://codex.www.ads-software.com/Theme_Development
    https://codex.www.ads-software.com/The_Loop

    3. Badly structured or invalid markup. Try validating your generated pages and your CSS.

    Thread Starter logicsound

    (@logicsound)

    I guess I should have added my site.

    https://www.lockersnmore.com/blog

    I will look at tehe above.

    Thanks

    Thread Starter logicsound

    (@logicsound)

    I validated it online but I am not to good at code, so most of it I could not figure it out. `Right now I removed the <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml&#8221; <?php language_attributes(); ?>>
    ` from the header.php and it is as close as I can get it, the menu is stretched out and the footer wants to center (when you refresh page it is in center then shifts left) but is shifted left, if anybody can look at my code I would be very greatful!!!

    going on 24 hours working on this, and I bet it could have been done in 1hr by someone who knew what they were doing……

    i am desperate….

    T

    The last thing you should start with is removing the doctype decalaration. This is seriously wrong. Leve this at the top of your header! But – remove the last part <?php language_attributes(); ?>

    Then: add your url into https://validator.w3.org/
    You will then be presented for a list of errors. Cycle through this list, starting from the top. Correct the errors.

    Thread Starter logicsound

    (@logicsound)

    Thanks but I have been trying to fix these errors for 12hrs now, no matter what I put in I get an error, I copied from one that validates and I still get an error

    Line 38, Column 5: "DOCTYPE" declaration not allowed in instance
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/T…

    I see the errors but don’t know how to fix them, can anybody heelp with these errors? Please

    Thanks
    T

    Thread Starter logicsound

    (@logicsound)

    well, I scrapped the whole idea of having seperate header.php, sidebar.php,footer.php and just copied all of my code into the index.php and then added the loop. BAM! everything is working, I guess I am just not good enough at code to make it work seperatly. Now to find out how I can add widgets to my blog?? Thanks for the help….can anyone point me to someone who can help with future problems? I will pay!

    Thanks

    Logicsound! I am also strugglig with PHP, but just relax, there is millions of extremely skilled people out there where you can get help. I am not sure if I am violating the rules by naming a site I am using when I need help, if so, any moderator must forgive me and delete my entry, but, when I am seriously stuck, I am using freelancer.com.
    Try them, logicsound, you will be amazed.

    Like ThorHammer, I’m not sure if I am violating site rules by recommending a book. And moderators, please feel free to delete this message if it is inappropriate, and accept my apologies. But I’m using WordPress 2.8 Theme Design by Tessa Blakeley Silver, published by PACKT. Yes, I know WordPress 2.8 is now a thing of the past, but even so, I found this book addresses lots of the issues you mention, from HTML and CSS to widgetizing your theme. I’m not much of a coder (I draw pictures for a living, I don’t code unless my life depends on it), but I found this really helpful.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Custom Theme problems’ is closed to new replies.