WordPress.org

Support

Support » Themes and Templates » i only want footer at contact page not all pages

i only want footer at contact page not all pages

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Andrew Nevins

    @anevins

    Forum moderator

    Give your contact page a specific template.
    Then use a conditional statement checking whether that contact template is used, to display the footer, otherwise not to.
    http://codex.wordpress.org/Conditional_Tags#Is_a_Page_Template

    Michael

    @alchymyth

    Forum Moderator

    possibly edit footer.php of your theme, and wrap part of the code into a conditional statement;

    example:

    <?php if( is_page('contacts') ) : ?>
    <div id="footer-content">
            <p class="footer-left">......</p>
            <p class="footer-right">.....</p>
            <div class="clear"></div>
          </div>
    <?php endif; ?>

    thanks with the reply
    but
    code is really not my thing….

    prefer with a simple and workable way…
    can i just get some code and replace it at my theme editor?
    i just want footer at contact page only

    thanks

    Michael

    @alchymyth

    Forum Moderator

    prefer with a simple and workable way…

    that is the workable way.

    if you want to make customisations to your site, you need to get used to working with code.

    goto dashboard – appearance – editor; select footer.php;
    look at the code;
    try to identify this existing html/php section:

    <div id="footer-content">
            <p class="footer-left">......</p>
            <p class="footer-right">.....</p>
            <div class="clear"></div>
          </div>

    then apply the edit as suggested earlier.

    i put this at footer.php as suggested

    <?php if( is_page(‘contacts’) ) : ?>

    <div id=”footer-content”>
    <p class=”footer-left”><span class=”name”><?php bloginfo(“name”); ?></span></p>
    <p class=”footer-right”>Powered by WordPress. Designed by Sukienki.</p>

    but it does not seem work
    further advise please

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘i only want footer at contact page not all pages’ is closed to new replies.
Skip to toolbar