How To Set The Weather On The Site

Table of contents:

How To Set The Weather On The Site
How To Set The Weather On The Site

Video: How To Set The Weather On The Site

Video: How To Set The Weather On The Site
Video: How to configure Weather App Windows 10 2024, December
Anonim

Modern concepts of building websites dictate the need to provide users with up-to-date information that is as close as possible to the topic of the resource. It can be exchange rates, the latest news in the media, information about traffic jams. In a small project, it is impossible to collect, process and provide such information quickly. It is web syndication that saves us. So, for example, you can set the weather on the site by integrating with a specialized service.

How to set the weather on the site
How to set the weather on the site

It is necessary

  • - browser;
  • - Internet connection;
  • - the ability to edit the content of pages or site page templates.

Instructions

Step 1

Start creating a weather widget for your website. Open informer.gismeteo.ru in your browser. Check out the information on the page. From the provided informers, select the one that best suits your site in terms of the technology used (picture, flash, JavaScript), size, functionality (forecast graphics, summary information), style of design. Click the "Get Code" button next to the selected block.

Step 2

Select or customize the color scheme for the information block. Depending on the type of informer chosen, select the most suitable design or use the tools on the page to fine-tune the visual aspects of the display.

Step 3

Select a city or a list of cities, meteorological data and weather forecasts for which should be contained in the informer. Use the appropriate form at the bottom of the page.

Step 4

Generate the code to embed the informer block on your site. Press the button "Get HTML-code of the informer". Wait for the page to load. Copy the markup code from the text box to the clipboard. Create a text file on your computer disk. Save the contents of the clipboard in it.

Step 5

Set the weather to the site. If the resource is built on the basis of a CMS that has an online editor for page templates or skin files, log in to the control panel with administrator credentials. Go to the section for editing templates. Modify the appropriate template by adding the informer code obtained in the previous step. Save your changes.

If the CMS does not have an online editor or the site is static, edit the templates or page files on your local computer. Connect to the site server via FTP. Download the required files to a temporary directory on your hard drive. Edit them to insert the informer code. Save the results of your changes. Upload the files back to the server.

Step 6

Check the correctness of the changes made to the site. Open several pages in the browser where the informer should be placed. Make sure it is visible and does not interfere with the existing markup structure.

Recommended: