How to configure and display the global contact information of the website, such as phone number, address, WeChat QR code?

Calendar 👁️ 150

In website operation, clearly and accurately displaying contact information is a key factor in building user trust and improving service efficiency.Whether it is a phone number, address, email, or the popular WeChat QR code, AnQiCMS provides a flexible and convenient way to configure and manage these global information, ensuring they can be presented efficiently on the website.

Backend configuration: centrally manage your global contact information

To centrally manage this information, you need to log in to the AnQiCMS backend management interface. After logging in, please navigate to the left menu bar of theBackend settingsSelect thenContact information settingsOption. This is the collection of all your website's contact information.

In the "Contact Information Settings" area, you will see a series of preset contact information input boxes, such as contacts, phone numbers, contact addresses, contact email, and even including WeChat ID and WeChat QR code.These fields are designed to meet the basic needs of most websites, and you can fill them in one by one according to your actual situation.For example, fill in your customer service phone number in the 'Contact Phone' field, the specific address of the company in the 'Contact Address', and upload the QR code image of the prepared WeChat service number or personal number to the 'WeChat QR Code' field.

It is worth mentioning that if the default fields provided by the system do not fully meet your website needs, such as when you need to add WhatsApp contact information, Telegram group links, or other specific social media accounts, AnQiCMS also provides flexibleCustom settings parametersFunction. You can click "Add Custom Parameter" to define a clear "Parameter Name" (such asWhatsApp), then fill in the corresponding contact information or link, and add a note for future reference.After configuration is complete, please click the save button at the bottom of the page to ensure that all your changes take effect in a timely manner.

Front-end display: Make contact information accessible on the website

Once the background contact information is configured, the next step is to display them on the website's frontend page.The powerful template tag system of AnQiCMS makes this process very intuitive, without the need for complex code development, you can easily call this information.

The core is to use the name ofcontactThe template tag. This tag is specifically used to extract the information you fill in the background "Contact Information Settings". Its basic usage is{% contact 变量名称 with name="字段名称" %}If you do not need to assign information to a variable, you can also write it directly{% contact with name="字段名称" %}Output the content directly

The following are some examples of common contact methods:

  • Display contact phone number:For easy direct dialing by users, especially mobile users, you can use it like thiscontactto display the phone number and make it clickable:

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

    here,name='Cellphone'will call the contact number you entered in the background.

  • Display contact address:The physical address of the company is usually displayed in the footer or contact us page, and can be directly accessed:

    <span>地址:{% contact with name='Address' %}</span>
    
  • Display WeChat QR code:The WeChat QR code needs to be placed as an image,<img>label'ssrcIn the properties. Please make sure you have uploaded the QR code image in the background:

    <img src="{% contact with name='Qrcode' %}" alt="微信二维码" />
    

    If you need to add explanatory text below the image, you can also call the WeChat ID field at the same time:

    <img src="{% contact with name='Qrcode' %}" alt="微信二维码" />
    <p>微信号:{% contact with name='Wechat' %}</p>
    
  • Display custom parameters:If you have added a custom parameter in the background, such as one namedWhatsAppYou can also call it in the same way:

    <span>WhatsApp 联系方式:{% contact with name='WhatsApp' %}</span>
    

Generally, these global contact methods are placed at the top, bottom of the website, or in a separate 'Contact Us' page. In the template file, you just need to place the correspondingcontactThe tag can be embedded into the HTML structure, and AnQiCMS will automatically replace it with the specific content set in the background during page rendering.

Tips to enhance user experience and SEO

Some small details when configuring and displaying contact information can further enhance the user experience and SEO of your website:

  • Maintain consistency:Ensure that the contact information displayed at all key locations on the website (such as the header, footer, and contact us page) is consistent. This can enhance customer trust and avoid confusion.
  • Mobile optimization:For phone numbers and email addresses, it is recommended to use HTML'stel:andmailto:links. For example<a href="tel:1234567890">1234567890</a>This makes it convenient for mobile users to directly click to dial or send an email.
  • Image quality and speed:WeChat QR code and other image information should ensure that the images are clear and load quickly.AnQiCMS provides image format conversion to webp and automatic compression of large images in the content settings, which can help you optimize images.
  • Regular review:Regularly check that this contact information is still valid and up-to-date, to avoid user loss or a decline in trust due to outdated information.Accurate contact information also helps search engines better understand and display your company information, such as in local search results.

By AnQiCMS 'Contact Settings' feature andcontactTemplate label, you can efficiently manage and display the global contact information of the website, provide your users with a convenient communication channel, and also add bricks to the professional image of the website.


Frequently Asked Questions (FAQ)

1. Why is the contact information I set in the background not displayed on the website front end?This is usually because you have not added the corresponding information in the website template files.contactLabel to call this information. Please check the template file corresponding to the page where you want to display contact information (such as the header, footer, or contact us page) and ensure that it has been correctly embedded according to the examples in the documentation.{% contact with name='字段名' %}.

2. I uploaded WeChat QR code image, but it is not clear or loads slowly on the front end. What are the solutions?If the QR code image is not clear, it may be due to insufficient resolution of the original image.It is recommended to upload original high-resolution images. If the loading is slow, consider enabling the 'whether to start Webp image format' and 'whether to automatically compress large images' functions in the 'Background Settings' -> 'Content Settings' of AnQiCMS backend, which helps to optimize the image size and improve loading speed.

3. How do I add a Telegram group link if there is no corresponding field on the backend?In this case, you can use the "Custom Setting Parameters" feature at the bottom of the "Contact Information Settings" page. Click "Add Custom Parameter", and set the "Parameter Name" to such asTelegramLinkThen, enter your Telegram group link in the 'Parameter Value' field and add the appropriate remark. Save it, and you can use it in the template.{% contact with name='TelegramLink' %}To call this link.

Related articles

How to use Tag tags to display related article lists on the page?

In website content operations, how to efficiently organize content, improve user experience, and optimize search engine rankings is a key focus for every operator.AnQiCMS as an enterprise-level content management system provides powerful and flexible functions to meet these needs, among which the Tag label function is an indispensable part.Tag label, simply put, is a keyword or thematic word, which can link scattered article content on a website according to common themes or focus points.Reasonably utilizing Tag tags can not only make it easier for users to discover content of interest

2025-11-09

How to specify an independent template file for content display for a specific category or single page?

In a content management system, we often need to present certain specific content of the website in a unique way, which not only meets the specific needs of branding or marketing, but also brings an optimized browsing experience for visitors.Our CMS is well-versed in this, providing flexible template customization features, allowing us to easily specify a unique template file for a category page, or even a single content page.Why do you need to customize the template for a specific page?

2025-11-09

How to display a second-level dropdown menu in the navigation menu and associate different content?

AnQi CMS provides a直观and powerful navigation menu management system, allowing you to easily build a clear, user-friendly navigation structure for your website, including multi-level dropdown menus.This not only improves the user experience of the website, but also helps search engines better understand the hierarchy of your website content, thus optimizing SEO performance. ### Understanding the navigation system of Anqi CMS In Anqi CMS, the settings and management of the navigation menu are concentrated in the "Website Navigation Settings" function in the background.This is the core area where you build your website menu

2025-11-09

How to loop through and display all subcategories under a specified category in a template?

How to elegantly display all subcategories under a specified category in Anqi CMS template?For a content-rich website, a clear classification structure is the key to improving user experience and search engine friendliness.AnQiCMS (AnQiCMS) takes advantage of its flexible template engine and powerful tag system, allowing you to easily traverse and display all subcategories under a specified category on the website front end, whether it is a direct subcategory or a multi-level nested subcategory, you can handle it with ease.Today, let's discuss how to implement this feature in Anqi CMS templates.

2025-11-09

How does AnQiCMS handle uploaded images to optimize front-end loading speed and display quality (such as Webp, automatic compression)?

In today's fast-paced online world, website loading speed and content display quality directly affect user experience and search engine rankings.Images are an important part of a website's content, and their handling is crucial for website performance.AnQiCMS (AnQiCMS) fully understands this, and therefore provides a series of powerful and practical functions in terms of image upload and management, aimed at helping us easily optimize the front-end loading speed and improve the display quality of images.### Core Strategy: Convert to WebP format, improve loading efficiency The choice of image format has a significant impact on website performance

2025-11-09

How to batch regenerate thumbnails to adapt to the new frontend display size requirements?

The website's front-end interface has been completely refreshed, you may find that the old thumbnail images do not fit well in the new layout, either the size is not right or the display effect is not good.Don't worry, AnQiCMS (AnQiCMS) provides you with a convenient and efficient solution to help you batch regenerate thumbnails and easily adapt to the new front-end display size requirements.Why do you need to regenerate thumbnails?The visual presentation of a website is crucial for user experience.

2025-11-09

How to display a custom website logo and copyright information on the front end?

The website's logo and copyright information, like a business card, is an important manifestation of brand recognition and professionalism.They not only enhance the trust of users in the website, but also provide a direct display of the brand image and legal rights.In AnQiCMS, display these core brand elements, the process is simple and clear, allowing you to easily customize a unique image for your website.

2025-11-09

How to display the filing number in the footer and generate a link to the filing official website?

In website operation, especially for mainland Chinese users, correctly displaying the website's ICP filing number is an important aspect of compliance.The record number is usually located at the footer of the website and will link to the Ministry of Industry and Information Technology's government service platform (beian.miit.gov.cn), convenient for users to query and verify.An enterprise CMS provides users with a convenient way to configure and display this information. Next, we will introduce step by step how to display the record number in the footer of your Anqi CMS website and generate a link to the record official website.### First Step

2025-11-09