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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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

    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; ?>
    Thread Starter pole915

    (@pole915)

    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

    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.

    Thread Starter pole915

    (@pole915)

    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.