How to add datepicker link and script tag to head

  • Author
    Posts
  • #41854

    I have a WordPress project that uses the Tempera theme. I am not a WordPress developer and the decision to use WordPress was made elsewhere. I’m trying to use the datepicker that comes with the Tempera theme. There are two tags associated with the datepicker that need to go into the <head>: a <link> to ‘styles/datepicker.css’ and a <script> to ‘js/datepicker.js’. How do I get these two links into my page’s HTML? Thanks.

    #41974
    Zed
    Cryout Creations mastermind

    I’m sorry, but Tempera does not include a datepicker script (or anything similar). You’re likely using external resources.

    The simplest solution would be to search for a plugin that provides such functionality (and bundles the necessary CSS/JS). If you really want to do this manually, you’ll need to create a child theme (or a plugin), place those files in it and write the necessary code to enqueue them.


    If you like our creations, help us share by rating them on WordPress.org.
    Please check the available documentation and search the forums before starting a topic.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to add datepicker link and script tag to head’ is closed to new replies.