How to uniformly display contact information, phone numbers, email addresses, and other contact details in the footer of a website?

Calendar 👁️ 98

As an experienced website operations expert, I know that the website footer, although seemingly unimportant, is an important area for users to find key information and establish a sense of trust.Display contact information uniformly and clearly, which not only enhances the user experience but is also an important manifestation of the website's professionalism and service capabilities.For enterprises and content operation teams using AnQiCMS, it is easy to achieve this thanks to its flexible template mechanism and convenient backend management features.

Today, let's delve into how to elegantly and efficiently display contact information, phone numbers, email addresses, and other core contact methods in the footer of the Anqi CMS website.


One, backend settings: Your contact information library

In AnQi CMS, all contact information is centralized for unified management in the background, which greatly facilitates operators in updating and maintaining content.Imagine if you need to change your phone number or email, you only need to modify it once in the background, and all the places that call this information on the front end will be synchronized updated, avoiding the cumbersome page modification work.

First, let's start from the Anqi CMS backend management interface. You need to go to the left menu's “Backend settings”, then find the “Contact information settings”Option. Click to enter and you will see a straightforward configuration page.

Here, AnQi CMS provides a series of preset contact information fields, including:

  • Contact
  • Contact phone number
  • Contact address
  • Contact email
  • WeChat ID
  • WeChat QR code
  • and some social media contact information such asQQ, WhatsApp, Facebook, Twitter, Tiktok, Pinterest, Linkedin, Instagram, Youtubeetc.

These fields cover all the communication channels commonly used by enterprises. You just need to fill in your actual information in the corresponding input boxes.

Flexible customization to meet personalized needs.

If these default options do not fully meet your business needs, for example, you may have a dedicated customer service hotline or a specific business QQ group number, AnQi CMS also provides powerfulCustom settings parameters”Function. You can click to add new parameters, and name them (it is recommended to use English or pinyin, such asServiceHotline),then fill in the corresponding value and remarks. This custom parameter name will be the 'key' you use to call this information in the template.

After the configuration is complete, please be sure to click the bottom of the page’s “SaveButton, ensure that all your contact information settings are effective. This information is now like a readily accessible treasure, waiting to be appropriately called up on the website front end.


Chapter 2, Template Reference: Present information at the footer of the website

Next, we will display the contact information configured on the backend through the Anqi CMS template tags in the website footer.In Anqi CMS template system, the footer is usually as a common code snippet, so that it can be displayed uniformly on each page of the website./templateUnder the directorybash.htmlOrpartial/footer.htmlin the files, depending on the template design you are using.

We need to use one of the powerful template tags of Anqiz CMS to display the contact information set in the background on the front end:contactLabel. This label is specifically used to obtain various information from the background "Contact Settings".

Its basic usage is very simple and clear:

{% contact 变量名称 with name="字段名称" %}

Among them:

  • 变量名称Is an optional temporary variable, if you want to store the value obtained first for further processing (such as checking if it is empty before displaying), you can use it.If the variable name is not defined, the label will directly output the field value.
  • 字段名称is the field name you see in the background "Contact Information Settings" or custom (for exampleCellphone/Emailor custom by youWhatsApp)

Let's look at some common examples to see how to reference this information in the footer template:

1. Display contact information:

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

Here, we not only display the phone number, but also throughtel:The protocol allows it to be clickable and dial, and addsrel="nofollow"Property.

2. Display contact email:

<p>邮箱:<a href="mailto:{% contact with name="Email" %}" rel="nofollow">{% contact with name="Email" %}</a></p>
与电话类似,`mailto:` 协议让用户点击即可发送邮件。

3. Display contact address:

<p>地址:<span>{% contact with name="Address" %}</span></p>

4. Call the custom WhatsApp contact method:

Suppose you have customized a namedWhatsAppfield.

{# 先将WhatsApp的值赋给一个变量,以便进行判断 #}
{% set whatsappNumber = "" %}{% contact whatsappNumber with name="WhatsApp" %}
{% if whatsappNumber %}
<p>WhatsApp:<a href="https://wa.me/{{ whatsappNumber }}" target="_blank" rel="nofollow">{{ whatsappNumber }}</a></p>
{% endif %}

By{% if whatsappNumber %}Make a judgment to ensure that the front-end will display this line of information only when the WhatsApp number is set in the background, avoiding blank lines or unnecessary placeholders.

5. Show WeChat QR code:

”`twig {# Similarly,

Related articles

How to customize system-level parameters and flexibly call them in the front-end template?

## Mastering AnQi CMS: Flexible System-Level Parameter Customization and Efficient Front-End Template Calls As an experienced website operations expert, I fully understand the importance of a flexible and customizable content management system for corporate efficient operations.AnQiCMS (AnQiCMS) boasts a high-performance architecture based on the Go language and rich features, performing excellently in content publishing, multi-site management, and SEO optimization. Especially in terms of system parameter customization and invocation, it provides great convenience, allowing operators to easily handle all aspects of the website.

2025-11-07

How to display the current year or a specific format of time in the template in real-time?

In website operation, the display of time information is ubiquitous, whether it is the current year in the copyright statement, the time of article publication, or the deadline of the event, dynamic and accurate time display is crucial for improving user experience and content timeliness. As an enterprise-level CMS dedicated to efficient content management, AnQiCMS (AnQiCMS) understands this need and therefore provides intuitive and powerful tags in the template system, allowing you to easily display the current year or a custom time format in the website template at any time.

2025-11-07

How to determine if a website is in a shutdown state and display user-friendly prompt information?

## The website operation 'shut down' maintains dignity: AnQi CMS helps you shut down gracefully and provide friendly prompts In the daily operation of the website, we will always encounter times when we need to temporarily 'shut down'.For reasons such as system upgrades, large-scale content adjustments, data migration, or for security maintenance, content filling and review before the launch of a new website, a proper shutdown process is crucial.This concerns not only the security and stability of the website's data, but also directly affects the user experience and the evaluation of the website by search engines.

2025-11-07

How to dynamically obtain the path of the static resources used by the current website template?

As an experienced website operations expert, I know how important efficiency and flexibility are in managing websites, especially content management systems (CMS).AnQiCMS as an enterprise-level content management system based on the Go language has fully considered these requirements from the very beginning, especially in terms of template and resource management, providing a powerful and elegant solution.Today, let's delve deeply into a very practical topic in template development: 'How to dynamically obtain the static resource path of the template currently used by the AnQiCMS website?'}]

2025-11-07

How to display WeChat QR code or social media account links in AnQiCMS templates

In the era where content is king, businesses and self-media operators are all aware of the importance of building an effective connection with users.And social media, especially WeChat, is undoubtedly an efficient channel for connecting users, sharing information, and providing services.AnQiCMS (AnQiCMS) is a system designed for efficient content management, naturally understanding this well, and providing strong and convenient support for users to flexibly display WeChat QR codes or links to various social media accounts in website templates.

2025-11-07

How to display the list of all document tags in AnQiCMS template?

As an experienced website operations expert, I know that the development of content management system templates is the key to website operation efficiency and content display effect.AnQiCMS (AnQiCMS) provides us with great convenience with its efficient and flexible features based on the Go language.Today, let's delve deeply into a very practical requirement in content operation: how to elegantly display the tag list of all documents in the AnQiCMS template.Tags play a crucial role in modern website content management.

2025-11-07

How to get the list of Tag tags for a specified document?

As an experienced website operations expert, I am well aware of the importance of tags (Tag) in content management and website optimization.They can not only help users quickly locate the content they are interested in, but also provide clearer website structure information for search engines, thereby improving SEO effectiveness.In such a powerful content management system as AnQiCMS, it is a core skill for every operator and developer to master the flexibility of obtaining and displaying the Tag tag list of a specified document.

2025-11-07

How to display the AnQiCMS tag list by page number (limit)?

As an experienced website operations expert, I know that how to efficiently and flexibly display content in a content management system is the key to operational success.AnQiCMS with its concise and efficient architecture and powerful template tag system, provides us with great convenience.Today, let's delve into a common but crucial feature: how to implement pagination of the tag list by call quantity (limit) in AnQiCMS.

2025-11-07