WordPress.org

Forums

Animated weather widget by weatherfor.us
[resolved] code for putting the widget in php (2 posts)

  1. Hrvojeee
    Member
    Posted 1 year ago #

    Hi, can You tell me how to put the widget on any custom location on my website, that is, how to hardcode the widget (since i want it in the header.php file), is it something like this:

    <?php add_action( 'widgets_init', 'weather_for_us_v1_0_load' ); ?>

    https://wordpress.org/plugins/weather-for-us-widget/

  2. zenogaisis
    Member
    Plugin Author

    Posted 1 year ago #

    You can go to site generate code and paste it anywhere you want. WordPress will only allow you to install at widget locations. If you want it at any arbitrary location go to http://weatherfor.us/ and there is a panel down there to generate code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Animated weather widget by weatherfor.us
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic