Wp_footer (); Can I add parameters in parentheses?

Source: Internet
Author: User
Tags php template
WordPress wants to make a judgment, if it is a mobile phone access to the site, footer only get a portion of the PC-side footer information into the "All rights reserved."
The code is as follows:

        

2015 Phiops.com , all rights reserved .

问答 关于





Reply content:

WordPress wants to make a judgment, if it is a mobile phone access to the site, footer only get a portion of the PC-side footer information into the "All rights reserved."
The code is as follows:

        

2015 Phiops.com , all rights reserved .

问答 关于





The Get_footer () function is used to include the current theme common bottom footer.php template file. Of course, we can also specify the bottom file name for different pages to specify a different bottom template, in the format: footer-{$name}.php.
The corresponding location changes on the page:
if (Is_home ()):

get_footer('home');

ElseIf (is_404 ()):

get_footer('404');

else:

get_footer();

endif
?>

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.