WordPress.org

Ready to get started?Download WordPress

Forums

Footer.php Help! (3 posts)

  1. AdamVGR
    Member
    Posted 1 year ago #

    I was trying to remove a small rss feed from my footer.php but ended up screwing the code badly and now the whole page is messed up :(

    So I made it worse by putting in the default footer.php code from WordPress:

    <?php
    /**
     * @package WordPress
     * @subpackage Revolution Tech
     */
    ?>
    <!-- begin footer -->
    </div>
    
    <?php get_sidebar(); ?>
    
    <p class="credit"><!--<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --> <cite><?php echo sprintf(__("Powered by <a href='http://wordpress.org/' title='%s'><strong>WordPress</strong></a>"), __("Powered by WordPress, state-of-the-art semantic personal publishing platform.")); ?></cite></p>
    
    </div>
    
    <?php wp_footer(); ?>
    </body>
    </html>

    I was wondering if anyone could please help?

    Thanks

  2. AdamVGR
    Member
    Posted 1 year ago #

    Ok quick update. I added in the following code:

    <div id="footer-sidebar" class="secondary">
    <div id="footer-sidebar1">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?>
    <?php endif; ?>
    </div>
    
    <div id="footer-sidebar2">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(3) ) : ?>
    <?php endif; ?>
    </div>
    
    <div id="footer-sidebar3">
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(4) ) : ?>
    <?php endif; ?>
    </div>
    
    </div>
    <div style="clear-both"></div>

    Which seems to have fixed it, but added an Archive and Comments section to the main page. What would I have to do to remove it?

    UPDATE: I see, it's a widget issue. I removed them and added tags, but would ideally like the page to look like that without the widgets. Anyway around this?

    Thanks

  3. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Check on the mark-up errors -

    http://validator.w3.org/check?uri=http%3A%2F%2Fwww.vg-reloaded.com%2F%3Fpage_id%3D2&charset=%28detect+automatically%29&doctype=Inline&group=0

    You may want to replace the footer.php file from the original theme if you've made too many problems for yourself in that file...

    Also, these forums only support themes from the repository on this site, so you may want to ask the developer for additional help.

Topic Closed

This topic has been closed to new replies.

About this Topic