How to customize and display AnQiCMS copyright information in the website footer?

Calendar 👁️ 60

As a senior CMS website operation personnel of a well-known security company, I know that the copyright information at the footer of the website is not only an important part of legal compliance, but also an embodiment of the brand's professionalism.A security CMS provides users with a flexible and convenient way to manage and display this information.Below, I will introduce how to customize and display the copyright information of the website footer in AnQiCMS.


Customize and display AnQiCMS website footer copyright information

The footer area of a website usually contains important information such as copyright statements, filing numbers, contact information, and more.This content is crucial for enhancing the professional image of the website, ensuring legal compliance, and providing user trust.AnQi CMS provides a straightforward and flexible mechanism that allows operators to easily customize and manage the key information displayed in the website footer.

First, set the copyright information of the website, we need to go to the AnQiCMS backend management interface.In the left navigation bar, find and click on "Background Settings", then select "Global Function Settings".On this page, you will see a field named "Copyright Information".This is the place where you can enter your website copyright statement.It is noteworthy that this field supports HTML content, which means you can not only enter plain text but also add links, bold text, or other basic HTML tags to meet more complex display needs.For example, you can enter© 2023-{% now "2006" %} YourCompanyName. All Rights Reserved.of whichYourCompanyNameReplace with your actual company name and use HTML entities.©Indicates the copyright symbol.

Next, we need to display these copyright information set up in the background on the front page of the website.The footer of a website is usually defined in the template file.According to the Anqi CMS template design agreement, the footer content is likely located in a namedbash.htmlor public code file.partial/footer.htmlIn such code snippet files. You can use the/templateFind these files in the template folder you are currently using. You can open the corresponding template file for editing using the built-in template editing feature of AnQiCMS.

In the template file, you can call the copyright information set in the background by using specific tags. Anqi CMS providessystemLabel, used to retrieve the system global configuration. To display the copyright content you have filled in the background "Global Function Settings", you need to insert the following code snippet:

{% system with name="SiteCopyright" %}

If you need to safely parse the obtained copyright content into HTML (because the backend may have entered HTML tags), you can combine|safeThe filter is used to avoid HTML tags from being escaped, ensuring they are rendered correctly.

{{- systemSiteCopyright with name="SiteCopyright" %}{{systemSiteCopyright|safe}}

In order to keep the year in the copyright statement up to date, you can also take advantage of the services provided by AnQiCMSnowLabel to dynamically display the current year. This way, you don't have to manually update the year information every year.nowThe usage of the label is{% now "2006" %}of which"2006"It is a Go language date formatting string representing the year. Therefore, a common footer copyright statement can be combined with both of these to achieve, for example:

<p>&copy; 2023-{% now "2006" %} YourCompanyName. All Rights Reserved. {{ systemSiteCopyright|safe }}</p>

In addition to the default "Copyright Information" field, if your website has more detailed copyright requirements, such as distinguishing different copyright holders, specific license information, or more detailed legal statements, AnQiCMS also provides a "Custom Settings Parameters" feature.You can find this area on the 'Global Function Settings' page.Here, you can add new parameters and name them (for exampleLicenseType/LegalDisclaimer),and fill in the corresponding value. Then, in your footer template, you can call and display these additional information, such as:{% system with name="您自定义的参数名" %}的方式来调用并显示这些额外的信息,例如:

<p>版权所有:{% system with name="CopyrightHolder" %}</p>
<p>许可证类型:{% system with name="LicenseType" %}</p>

By following these steps, you can flexibly and efficiently customize and display the necessary copyright information in the footer of the AnQiCMS website, ensuring that your website is both professional and compliant.


Frequently Asked Questions (FAQ)

1. Where should I find and edit the website footer template file?

In most cases, the footer content of a website is defined in the public file or snippet file in the theme folder you are currently using. According to the AnQiCMS template production conventions, you can/templateLocate in the current template theme folder under the directorybash.htmlfile, or inpartial/the subdirectory underfooter.html/_footer.htmlFiles with similar names. These files typically contain the code for the website header, footer, and other common areas.

2. How to include HTML tags or multiline content in copyright information?

The 'Global Function Settings' field in the AnQiCMS backend supports HTML content. You can directly enter in this field.<div>Copyright &copy; YourCompany.</div><div>All Rights Reserved.</div>Or any valid HTML tags, they will be rendered according to HTML rules on the front-end page. If line breaks are involved, use<br>Tags or wrapping in block-level elements (such as<div>or<p>) is a common practice.

3. Does AnQiCMS support automatic display of the current year?

Yes, AnQiCMS supports dynamically displaying the current year in templates. You can use built-innowtags to achieve this function. For example, insert in your footer template,{% now "2006" %}It will automatically display the current year (such as 2023, 2024, etc.) when the page is loaded. This is very useful for maintaining the timeliness of the copyright statement without the need to update manually every year.

Related articles

How to fill in and call the AnQiCMS website filing number and generate link information?

As a long-term operator of the Anqi CMS platform, I am well aware of the importance of website compliance and information accuracy to user trust and brand image.The website filing number is an essential component of domestic website operation, and its correct display and link on the website are the basis for ensuring the legal operation of the website.Our AnQi CMS has fully considered these operational needs from the outset, providing us with a simple and efficient way to set up and call it.

2025-11-06

How to upload AnQiCMS website logo and call it to display in the front-end template?

As a website content expert who deeply understands the operation of AnQiCMS, I am well aware of the importance of a clear and easily recognizable website logo for brand image and user experience.AnQiCMS as an efficient and customizable content management system, provides strong content features while also ensuring convenient management and invocation of basic website elements such as LOGO.Next, I will elaborate on how to upload the website logo in AnQiCMS and display it correctly on the website front-end template.

2025-11-06

When is it necessary to configure the AnQiCMS mobile endpoint address, and how to ensure its normal access?

As an experienced CMS website operation person in an enterprise, I know the importance of mobile experience for user retention and search engine optimization.In AnQiCMS, the flexible template mechanism allows us to decide whether and how to configure the mobile end address according to different operational strategies and technical requirements.

2025-11-06

What access issues can be caused by an incorrect website address setting in AnQiCMS?

As a website operator who is well-versed in the operation of AnQiCMS, I am well aware of the importance of setting the website address. It is not only the 'address number' of the website on the Internet, but also the cornerstone for the correct operation of the AnQiCMS system, effective distribution of content, and search engine optimization.Once this seemingly simple configuration deviates, it may trigger a series of chain reactions, severely affecting the normal access, user experience, and SEO performance of the website. ### Direct Barrier to Website Access The most direct and obvious issue is that the website cannot be accessed normally.In AnQiCMS system settings

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

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 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 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