Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • WordPress Footer

    • 0
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 503
    Comment on it

    The wordpress theme contain a file called "footer.php" and that file contain function "wp_footer()"

    The footer.php file is a base file of theme which generally contain a footer menu, social media widget, copyright text, javascript files etc

    The wp_footer() is a wordpress hook used in footer.php template file to ensure that the right code is inserted (from the core/plugins/etc) into the right place. get_footer() is used in other template files to call for the code in your footer.php template file.

    wp_footer()

    This function does not accept any parameters.

    Example: To add date in footer.

    <?php
    function yourFunctionName() {
        echo date('Y-m-d');
    }
    add_action('wp_footer', 'yourFunctionName', 100);
    ?>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: