WordPress.org

Ready to get started?Download WordPress

Forums

Content background missing (14 posts)

  1. mrsankey
    Member
    Posted 7 years ago #

    This seems to be a problem only in Firefox and not IE7, but im not sure how to fix it. On my photos page,(andrewsankey.com/photos) the background is missing from the main content area, and instead the actual body background is showing through making it impossible to read the text.

    I ran it through the W3 Validator here http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.andrewsankey.com%2Fphotos%2F and it says that I have an extra </div> which I think is causing the problem. I just don't know how to fix it, or even what file to edit to get rid of that div.

    Any help is greatly appreciated.

  2. The_ROb
    Member
    Posted 7 years ago #

    mrsankey, you have too many </div> tags.

    find this:
    </div></div></div>
    <p id="footer">
    [content...]
    </p>

    and replace it with:
    </div>
    <p id="footer">
    [content...]
    </p>

    good to go. Also, to you have the wrong doctype for the page. Fix that and you have a validat-able page. G/L

    rob

  3. mrsankey
    Member
    Posted 7 years ago #

    ok thanks, I just don't know what file to edit that bit of code in...

  4. mrsankey
    Member
    Posted 7 years ago #

    ok thanks, I just don't know what file to edit that bit of code in...

  5. The_ROb
    Member
    Posted 7 years ago #

    Unfortunately without being able to see the theme files, neither do I. Go into the theme directory, or your photo page files, and look in the index.php files or template files if there are any. Since it's not on all pages, it is likely not in the footer file.

  6. mrsankey
    Member
    Posted 7 years ago #

    I looked through all the files in presentation -> theme editor and I couldn't find it anywhere in those files. So is there some other files somewhere that I should be able to access that just aren't showing up in the theme editor?

  7. Evita
    Member
    Posted 7 years ago #

    Hi!

    The wrong code:

    </div>
    <!-- End of Falbum -->
    </div></div></div>
    <p id="footer">
    <strong>Andrew Sankey</strong> &copy; 2007 | <a href="http://wpthemes.info/fast-track/" title="WP Themes.Info">FastTrack</a> made free by <a href="http://www.webhostingbluebook.com/">Web Hosting Bluebook</a>
    </p>
    </div>
    </body>
    </html>

    and here the right code:

    </div><!-- End of Falbum -->
    </div><!-- End of Content -->
    <p id="footer">
    <strong>Andrew Sankey</strong> &copy; 2007 | <a href="http://wpthemes.info/fast-track/" title="WP Themes.Info">FastTrack</a> made free by <a href="http://www.webhostingbluebook.com/">Web Hosting Bluebook</a>
    </p>
    </div><!-- End of Rap -->
    </body>
    </html>

    The code can be in your footer.php or in all of your theme-files below the div falbum-navigationBar.

    Hope this helps.

  8. mrsankey
    Member
    Posted 7 years ago #

    I cannot seem to find that code ANYWHERE. I don't know if its just me, but it is not in footer.php or any of the other theme files in my theme editor...this shouldn't be that hard...

  9. Evita
    Member
    Posted 7 years ago #

    Can you see it in your browser?
    Maybe the code is separated? One piece on the footer.php and the other piece on other files? Post the code of your footer.php.

  10. mrsankey
    Member
    Posted 7 years ago #

    this is the code for my footer.
    <p id="footer">
    <?php //Please keep the link to the theme site and the sponsor. thats how this theme is made free. ?>
    <strong><?php bloginfo('name'); ?></strong> &copy; <?php echo date('Y');?> | <a href="http://wpthemes.info/fast-track/" title="WP Themes.Info">FastTrack</a> made free by <a href="http://www.webhostingbluebook.com/">Web Hosting Bluebook</a>
    </p>
    </div>
    <?php wp_footer();?>
    </body>
    </html>

    that looks like the last part of the problem code that you posted, but the </div> </div> </div> isn't there.

  11. Evita
    Member
    Posted 7 years ago #

    Ok, footer.php looks fine. Now look at the end of your index.php. Can you see <!-- End of Falbum --> anywhere?

  12. mrsankey
    Member
    Posted 7 years ago #

    I don't see anything to do with Falbum anywhere in index.php. In fact, here is the actual code.

    <?php get_header(); ?>
    <div id="content">
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    <div class="post">
    <div class="post-title"><em><?php the_category(' and ');?></em> <?php the_author();?> on <?php the_time('d M Y h:i a'); ?></div>
    <p class="post-info"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a> <?php edit_post_link('(edit this)'); ?></p>
    <div class="post-content">
    <?php the_content('Continue Reading »'); ?>
    <?php wp_link_pages(); ?>
    <!--
    <?php trackback_rdf(); ?>
    -->
    </div>
    <p class="post-footer"><?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »','','<span>Comments Off</span>'); ?></p>
    <?php comments_template(); // Get wp-comments.php template ?>
    </div>
    <?php endforeach; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    <p align="center"><?php posts_nav_link() ?></p>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I also looked through my other theme files and there is nothing in any of those files either.

  13. Bodhipaksa
    Member
    Posted 7 years ago #

    Maybe it's plugin that's adding code. Is the Falbum thing a plugin?

  14. mrsankey
    Member
    Posted 7 years ago #

    Yes, Falbum is a plugin for my flickr photos. Could the plugin be adding those extra </div> tags? Because its nowhere in my theme files.

  15. Bodhipaksa
    Member
    Posted 7 years ago #

    Plugins certainly can add code to a page, so I'd suggest looking in the plugin files for any of the code around <!-- End of Falbum --> to see if there's maybe a stray </div.

Topic Closed

This topic has been closed to new replies.

About this Topic