• I’ve adapted a wordpress theme from my existing website layout.

    When I upload it, the theme is stripped of images and CSS styling.

    I’m just calling this bit of code for theme testing:
    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <?php post_class() ?> id=”post-<?php the_ID(); ?>
    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></h2>

    <?php the_content(”); ?>

    <?php endwhile; ?>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>

    <?php endif; ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sabbry

    (@sabbry)

    Also, the design can support WordPress functionality as I had lost a functional, 80% complete design in a hard drive crash.

    I don’t understand why the same tricks aren’t working for the same design….

    Thanks,
    Sean

    Hi

    If the design is stripped of CSS styling, it is likely the browser is not finding your stylesheet. Do a View Source on a page that has this problem. Look for the URL of the style sheet in the head section – see if you find an obvious error. If not, copy the full URL and paste it into your browser’s address bar and Go, to make sure the browser is seeing your style sheet. If not, you have to find out why.

    If the design contains background images (most do) the missing stylesheet would explain why at least some of the images are not displaying.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Images not displaying in my theme’ is closed to new replies.