WordPress.org

Ready to get started?Download WordPress

Forums

adding function.php (4 posts)

  1. ariahlinville
    Member
    Posted 1 year ago #

    Noob question, but I don't see function.php
    How do I create it?

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Why do you need it?

  3. ariahlinville
    Member
    Posted 1 year ago #

  4. Mayeenul Islam
    Member
    Posted 1 year ago #

    wp-content > themes > your_theme > functions.php is the default location of functions.php in any theme. If if is not there, just open a text editor and write:

    <?php
    // Functions will go here, but this is just a comment
    
    ?>

    and then save the page as functions.php. Now write or copy-paste unlimited functions you desire. But always write the functions within the php tags.

Topic Closed

This topic has been closed to new replies.

About this Topic