Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter acharknews

    (@acharknews)

    what is a shortcode ?

    Ersa

    (@ersa)

    Hi
    you can install another plugin to make a short code for each of your widgets and then by inserting the short code in a page or post, the widget will be displayed
    the best plugin I found for creating shortcodes is “widget shortcode” :
    https://www.ads-software.com/plugins/widget-shortcode/

    I did the same work and you can see the example here:
    example

    Thread Starter acharknews

    (@acharknews)

    hi thank you for answer
    but i dont know how doing that !!
    i havenot the id of wheather_for_us
    i try this and it dont work !

    [weather_for_us]

    [weatherforus]

    [widget id=”weather_for_us” title=”0″]
    weatherforus-widget

    [widget id=”weatherforus-widget” title=”0″]

    [widget id=”weatherforus” title=”0″]

    [weatherforus-widget]

    [widget id=”weather_for_us-widget” title=”0″

    Thread Starter acharknews

    (@acharknews)

    <iframe id="explicit" style="background: transparent; width: 720px; height: 250px; overflow: hidden;" src="https://www.weatherfor.us/load.php?" width="300" height="150" frameborder="0" scrolling="no"></iframe>

    Hi sorry for delay,
    in appearance> widget you have several widget area such header, footer, sidebar1 or …
    after you install widget short-code plugin you will see a new widget area will be added name: arbitrary

    this widget area wont be shown on your website, it’s hidden just to keep your widgets which you want to display in pages or posts or …

    so you put a weather for us widget in arbitrary area set it’s setting and save.
    after you save it, a short code will be displayed bellow at the end of weather widget for ex: Shortcode: [widget id=”weatherforus-wp-weather-large-x”]

    just copy this code where ever you want to display.

    have notice that you shouldn’t put away the widget from your arbitrary widget area.

    I hope this be useful

    I tested your code, nice work
    but it seems just to display the current place,
    How you will show other cities or countries weather?

    Thread Starter acharknews

    (@acharknews)

    thank you it s work and you are right ??
    for my code it dont wordk in expoler just in chrome !
    for country it come alone , if the visitor is from usa for exemple, it will show him automativcaly weather of USA …
    but not city …

    thank you your solution is the best
    and good explanation (and sorry for my bad english ??
    nabil from acharknews.com

    happy to hear worked for you,
    you’re welcome ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘how puting the plugin weatherfor.us in special page (not in sidebar) ?’ is closed to new replies.