• Hi, All! I wanted the author name to show at the beginning of the blog post, so I put in Written by: <?php the_author(); ?> right after the title code, but when rendered it removed the background color as well as the sidebar. This happened even when I took out the “written by” part and just left the code. Any ideas why this might be happening and how to fix it?

    Thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of assistance.

    Thread Starter Aviva B

    (@aviva-b)

    Thanks, esmi. I’d love to, but as I said, it takes out our entire sidebar, and I’m putting it into the post template, which will then affect the appearance of all the posts on our entire blog. I’d rather not do that for any significant period of time. There’s not other way anyone can give advice? If you want to me to send source code, I can do so. Is that helpful?

    without seeing the problem, troubleshooting is much more complicated.

    things you could do:

    – look at the html output of the page in the browser; this might give you an idea if and where the output stopped;

    – use the validator http://validator.w3.org/ to check the html of the site; this might give you a hint what is gone wrong;

    – paste the full code (including the author code) of your post template into a http://pastebin.com/ and post the link to it here; someone might be able to check it.

    Thread Starter Aviva B

    (@aviva-b)

    Thanks so much. I’ll try the above and get back here if I need more help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding code for show author removes background formatting’ is closed to new replies.