• Hello,

    Is there a way to add some html code between the wrapper div and the </body> tag ?
    In which file should i work to do this if it’s possible ?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Of course you can 🙂

    The </body> should be in your footer.php

    You can of course also make a new widget area for your footer, by editing your functions.php

    // Hook on the initialization of widgets
    add_action( 'widgets_init', 'MaTheRyS_widgets_init' );
    
    function MaTheRyS_widgets_init() {
      // Footer widget
      register_sidebar( array(
        'name' => __( 'Footer Widget Area', 'MaTheRyS' ),
        'id' => 'footer-widget-area',
        'description' => __( 'The footer widget area', 'MaTheRyS' ),
        'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
        'after_widget' => '</li>',
        'before_title' => '<h3 class="widget-title">',
        'after_title' => '</h3>',
        ) );
    }

    And putting some code in your footer.php:

    <?php if ( is_active_sidebar( 'footer-widget-area' ) ) : ?>
    <div style="width:100%; background: pink;">
      <ul class="xoxo">
        <?php dynamic_sidebar( 'footer-widget-area' ); ?>
      </ul>
    </div>
    <?php endif; ?>

    ps. I didnt try that code, so it might give an error or two 😛
    If you widgetize your footer, you can pull an text/html box in the widget area, rss feed or what not. Ps. of course you should not style the div in the html, rather use css files.

    Thread Starter MaTheRyS

    (@matherys)

    Thanks a lot.
    I didn’t find the </body> tag in the footer.php, it’s why i was asking this.

    By inspecting a bit more the theme, several tag were missing in fact, like some closing </div> and </body>.

    And i understood what’s happened : i don’t remember where i found it exactly, but it should be a modified theme with copyright removed…
    I’ve just spend 2 hours to find the original one and get back the copyrights.

    Hopefully, it’s a free theme and copyright back is enought to use it legaly. I would be really angry if it was a paid theme, as i’ve spend a lot of time working on customize it.

    I can’t understand why there is no way to verify the legemity of a theme, like a mandatory UID that we can verify on a official wordpress site 🙁

    One more times, thanks a lot 😉

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding html after the wrapper div ?’ is closed to new replies.