WordPress.org

Ready to get started?Download WordPress

Forums

i only want footer at contact page not all pages (6 posts)

  1. pole915
    Member
    Posted 1 year ago #

    http://www.dabao.com.my/wordpress/

    anyone can suggest how to do it?

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    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

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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; ?>
  4. pole915
    Member
    Posted 1 year ago #

    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

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    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.

  6. pole915
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic