Method for displaying region name next to logo after destoon switches cities

  • 2021-07-16 01:57:15
  • OfStack

This paper describes the method of displaying regional names next to logo after destoon switches cities, which is very suitable for the construction of sub-stations in different regions.

Generally speaking, when we enter the website, the default is the main station. When we open the city substation, click Select Substation, and you can see the name of the city substation you selected next to logo. When you select the whole country, nothing will be displayed next to logo.

The specific implementation method is as follows:

Open the header. htm file of the template file and set the


{if $cityid} <span id="destoon_city">{$city_name}</span>{/if}

Put it next to the picture of logo.

The specific style can be modified according to your own needs.

I hope the method described in this paper is helpful to the development of destoon.


Related articles: