How to set and call the contact, phone number, and address information of the website in AnQiCMS?

Calendar 👁️ 57

As a senior CMS website operation personnel of an enterprise, I know that the contact information of the website is crucial for user trust and business conversion.A clear, accessible, and accurate contact method not only improves user experience but also enhances the trust of search engines in the website, thereby optimizing SEO performance.Now, I will give a detailed introduction on how to set and call these key information in AnQiCMS.

The contact, phone number, and address information of the website is an important bridge for the company's external communication.They not only show the real existence of the enterprise to visitors, but also provide a direct way for users to seek help, consult products or services.In AnQiCMS, the settings and calls of this information are designed to be both flexible and efficient, whether it is for standard fields or custom requirements, it can be easily realized.

Set contact information in AnQiCMS backend

First, let's discuss how to configure the contact information of the AnQiCMS website management system.AnQiCMS provides an intuitive interface that allows operators to easily manage this information.

To set the contact information, you need to log in to the AnQiCMS backend, then navigate to the 'Backend Settings' menu, and select the 'Contact Information Settings' option.On this page, you will see a series of preset contact information fields, which cover most of the contact methods commonly used by enterprises, such as contact name, phone number, address, and email address.You can fill in these fields one by one according to the actual situation of your company.If your business also involves WeChat or other social media, you can also fill in the WeChat ID and upload a WeChat QR code here, convenient for users to scan and add.

The strength of AnQiCMS lies in its scalability.If the preset fields do not meet your specific needs, for example, if you need to add WhatsApp contact information, Facebook homepage link, or specific business hours, you can add new fields through the "Custom Settings Parameters" feature.When adding custom parameters, you need to specify a 'parameter name', which will be the identifier you use to call this field in the template.At the same time, you also need to fill in the "parameter value", which is the actual contact information.For convenience of management and understanding, you can also add a 'note' to each custom parameter to describe its purpose.For example, you can add a parameter name called "WhatsApp", with the parameter value as your WhatsApp number, and write "international business contact information" in the notes.

Call contact information in AnQiCMS template

After setting up the contact information in the background, the next step is to display this information on the website's frontend page. AnQiCMS provides special template tagscontactCall this information, ensure the separation of data and display, making template design more concise and efficient.

contactThe use of tags is very flexible. Usually, you will use{% contact 变量名称 with name="字段名称" %}The format to call. The "field name" corresponds to each contact method you set up in the background.nameParameter. If you do not need to store the result of the call in a variable, you can use it directly{% contact with name="字段名称" %}to output.

For example, if you want to display the contact phone number at the footer of the website, you can call it like this:

<p>联系电话:<a href="tel:{% contact with name="Cellphone" %}">{% contact with name="Cellphone" %}</a></p>

This code will output a link with a phone number that users can click to make a call. Similarly, to display contact address or contact email, you can usename="Address"andname="Email":

<p>联系地址:{% contact with name="Address" %}</p>
<p>联系邮箱:<a href="mailto:{% contact with name="Email" %}">{% contact with name="Email" %}</a></p>

For the custom contact information you added in the background, such as the WhatsApp contact information mentioned earlier, you can also use the defined "parameter name" to call it. Assume the parameter name you set isWhatsApp,then when called in the template it looks like this:

<p>WhatsApp:{% contact with name="WhatsApp" %}</p>

This label has another practical feature that supports multiple sites. If you have managed multiple sites in the AnQiCMS background and want to call the contact information of other sites in the current site's template, you can usesiteIdSpecify the target site with parameters. For example,{% contact with name="Cellphone" siteId="2" %}The contact phone number of the site with ID 2 will be called.

Integrate contact information seamlessly into any location on the website, whether it's the header, footer, sidebar, or an independent "Contact Us" page, and maintain consistency and ease of use.

Display contact information **practice

As a website operator, I suggest you follow these **practices when displaying contact information:

  • Maintain consistency of informationMake sure that all contact information displayed on the website, including different pages, headers and footers, online forms, etc., uses the latest and accurate data.

  • Highlight important informationPlace the most commonly used contact information (such as phone and address) in an easily accessible location, such as the top navigation bar or footer of the website.

  • Utilize hyperlinks for user convenienceConvert phone numbers totel:Link, convert email addresses tomailto:Link, convenient for users to click and communicate directly.

  • Consider structured data: Although AnQiCMS'scontactLabels do not directly generate Schema Markup, but you can usejsonLdLabel this information, manually add the JSON-LD structured data for the company contact information, which helps search engines better understand your company's information and improve the visibility in local searches. For example, you canbase.htmlOr add the following code to a separate contact page template:

    {% jsonLd %}
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "{% system with name="SiteName" %}",
      "url": "{% system with name="BaseUrl" %}",
      "contactPoint": [{
        "@type": "ContactPoint",
        "telephone": "{% contact with name="Cellphone" %}",
        "contactType": "customer service"
      },{
        "@type": "ContactPoint",
        "email": "{% contact with name="Email" %}",
        "contactType": "customer service"
      }],
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "{% contact with name="Address" %}",
        "addressLocality": "您的城市", {# 需要手动填写或通过自定义字段获取 #}
        "addressRegion": "您的省份", {# 需要手动填写或通过自定义字段获取 #}
        "postalCode": "您的邮编", {# 需要手动填写或通过自定义字段获取 #}
        "addressCountry": "您的国家" {# 需要手动填写或通过自定义字段获取 #}
      }
    }
    </script>
    {% endjsonLd %}
    

    Please note,addressLocality/addressRegion/postalCodeandaddressCountryPlease fill in or set and call in the background according to the actual situation.

By following these steps and **practice, you will be able to efficiently set up and call the contact, phone, and address information of the website on AnQiCMS, thereby providing your website visitors with better services and experiences.

Frequently Asked Questions

Q1: Why did the website front end not update immediately after I changed the contact information in the background?

A1: AnQiCMS to enhance website performance, it will use caching.After you have modified the background settings, you may need to clear the website cache to see the latest changes on the front end.You can log in to the AnQiCMS backend, click the 'Update Cache' button at the bottom of the left-hand menu, or look for the related cache clearing options on the settings page.If it still does not work, please check your browser cache, try to force refresh the page (Ctrl+F5 or Cmd+Shift+R) or clear the browser cache.

Q2: Do I want to add a map link next to the contact address, does AnQiCMS support it?

A2: AnQiCMS itself does not automatically convert addresses to map links, but you can use its custom parameter feature to achieve this.You can add a custom parameter in the "Contact Information Settings", such as "MapLink", and enter the sharing link of your Google Maps or Baidu Maps and other map services.Then in the template, you can call it like other custom fields{% contact with name="MapLink" %}To display the map link.

Q3: How can I ensure that my contact phone number can be dialed directly on a mobile device?

A3: In your template, when you are calling a contact phone number, be sure to use HTML'stel:protocol. For example, not simply displaying{% contact with name="Cellphone" %}but wrapping it in<a>tags, such as<a href="tel:{% contact with name="Cellphone" %}">{% contact with name="Cellphone" %}</a>. Thus, on devices with dialing functions (such as smartphones), users can directly dial the phone number by clicking on it.

Related articles

How to add custom parameters and template calls in AnQiCMS global settings, excluding built-in parameters?

As an experienced senior CMS website operation personnel, I am well aware that a content management system not only needs to meet basic content publishing needs but also needs to have high flexibility and scalability to adapt to constantly changing operational strategies.In AnQiCMS, in addition to the various built-in parameters of the system, we often need to add some custom global parameters according to specific business scenarios and website design, in order to flexibly call them in templates and achieve personalized content display.

2025-11-06

How to operate the website status (open/close) switch function of AnQiCMS, and how to customize the shutdown prompt?

As an experienced website operator proficient in AnQiCMS, I know that it is crucial to flexibly control the opening and closing status of the website and provide appropriate shutdown prompts during website maintenance, updates, or special situations, which is important for user experience and operation management.AnQiCMS provides intuitive and powerful features in this aspect, allowing us to easily meet these needs.### AnQiCMS website status switch feature operation guide In AnQiCMS, the website status switch is a core global feature that allows operators to need according to

2025-11-06

How to set up a separate domain for AnQiCMS backend to enhance security?

As a website manager who deeply understands the operation of AnQiCMS, I know that website security is crucial for any content platform.AnQiCMS (AnQiCMS) has always attached great importance to security from the beginning of the system design and has continuously iterated and optimized.Among them, setting up a separate domain for background management is one of the effective and necessary strategies to enhance the security level of the website and strengthen operation protection.This feature has been officially supported since AnQiCMS v2.1.1 version, aiming to provide users with stronger backend protection.

2025-11-06

How does the default language package setting of AnQiCMS affect the display of built-in text on the website?

In the daily operation of AnQiCMS, we know that the content of the website is not limited to articles and product information published by users, but also includes various built-in texts provided by the system.AnQiCMS as an efficient content management system, the default language package settings have a direct and important impact on the display of these built-in text.

2025-11-06

What contact methods does AnQiCMS support, such as email, WeChat, QQ, and so on?

The configuration guide for common contact methods of AnQiCMS In the daily operation of websites, clear and convenient contact methods are key to establishing trust and communication between users and websites.As a website operator who has been deeply involved in the CMS of AnQi for many years, I know that high-quality content is not only reflected in the article itself, but also in every detail of serving users.

2025-11-06

How to add and call AnQiCMS custom contact information (such as WhatsApp, Facebook)?

As an experienced CMS website operation personnel, I know that in the digital age, diverse communication methods are the key to connecting with users and enhancing user experience.AnQi CMS provides great flexibility in this regard, whether it is built-in contact information or custom social media channels, it can easily establish contact with visitors on your website. Next, I will introduce to you in detail how to add and call custom contact methods in Anqi CMS, such as WhatsApp and Facebook.###

2025-11-06

How does AnQiCMS handle remote images in content, does it support automatic downloading to local?

As a senior CMS website operation personnel of an enterprise security company, I know that the management of images in the content is crucial for website performance and user experience.About how AnQiCMS handles remote images in content and whether it supports automatic downloading to local, I can clearly tell you that AnQiCMS provides very practical functions in this regard.In the AnQiCMS content management system, image processing is a core link, especially for content creators who need to refer to external image resources.The system has built-in management options for remote images

2025-11-06

How to configure AnQiCMS to automatically filter external links or add rel="nofollow" tags?

As an experienced CMS website operation personnel for AnQi, I know the importance of content creation and optimization in every step for the healthy development of the website.How to efficiently manage external links in content during daily work so that they can provide reference value without affecting the SEO performance of their own website is a concern for many operators.Aqie CMS provides a simple and effective solution for this.--- ### Understanding the Importance of External Link Management In the process of content creation, we often need to refer to external resources to support arguments, provide more information, or acknowledge sources

2025-11-06