How to control whether the website name suffix is attached to the home page title in the AnQiCMS home page TDK settings?

Calendar 👁️ 66

The homepage title (Title) is one of the key elements of Search Engine Optimization (SEO), which not only directly affects the willingness of users to click on the website in search results, but also carries the important responsibility of brand information communication.In AnQiCMS (AnQi Content Management System), we often encounter a problem: how to flexibly control the title of the homepage so that it can display the core content while optionally adding or not adding the name of the website as a suffix?AnQiCMS provides an intuitive and efficient setting method for this.

Understand the relationship between the homepage title and the website name suffix

In the design of AnQiCMS, the website name is usually configured uniformly in the "Global Function Settings", which represents our brand identity.And the title content of the homepage is defined separately in the "Homepage TDK settings", aiming to highlight the core theme of the homepage.When we want to reflect the brand in the page title while maintaining the standardization of the title, there is a need to append the "site name" as a suffix to the "home page title".

For example, if the name of your website is "AnQi CMS" and you want the homepage title to be "Enterprise Content Management System Solution", then you may expect to see "Enterprise Content Management System Solution - AnQi CMS" in the browser title bar or search engine results.Sometimes, you may prefer to keep the title concise, displaying only "an enterprise-level content management system solution".AnQiCMS allows us to precisely control this display behavior.

The core method to control the homepage title suffix in AnQiCMS

AnQiCMS processes the generation logic of page titles through specific tags in template files, which makes the display of titles highly flexible. Specifically, the key to controlling whether the site name suffix is appended to the home page title lies in using{% tdk %}label'ssiteNameProperty.

  1. Do not add the website name suffix (default behavior): This issiteNameThe default setting of the attribute, equivalent to explicitly setting itsiteName=falseThis means that when you call the homepage title in the template file, you simply use the following tag:

    <title>{% tdk with name="Title" %}</title>
    

    Or

    <title>{% tdk with name="Title" siteName=false %}</title>
    

    Then, the browser will only display the title content you fill in the "Home TDK Settings" in the background, and will not automatically append the website name after it.

  2. Append website name suffix: If you want to add the website name as a suffix at the end of the homepage title, you need tositeNameset the attribute totrue. Find the position in your template file that is responsible for outputting the homepage title (usually in<head>within the area), and change it to:

    <title>{% tdk with name="Title" siteName=true %}</title>
    

    With this setting, when the home page title is "Enterprise-level Content Management System Solution" and the website name is "AnQi CMS", the final page title will display as "Enterprise-level Content Management System Solution - AnQi CMS" (the default separator is "-").

  3. Custom delimiter: Except for controlling whether to attach the website name, AnQiCMS also allows you to customize the separator between the title and the website name.tdkTags provide asepProperties are used for this purpose. For example, if you want to use the underscore "_" as a separator, you can set it like this:

    <title>{% tdk with name="Title" siteName=true sep="_" %}</title>
    

    This title will display as "Enterprise-level Content Management System Solution_AncmsCMS".

Actual operation process

To implement flexible control of the suffix of the home page title, you need to follow several steps:

  1. Set the website nameFirst, log in to the AnQiCMS admin panel, navigate to "Global Function Settings".Here, please make sure that the "Website Name" field is correctly filled in with your brand or site name.This name will be the source of the suffix.

  2. Set the home page title contentFollow the steps below: Go to "Backend Settings" -> "Home TDK Settings". Enter the core title text you want to display on the home page in the "Home Title" field.

  3. Adjust the title tag in the template file: This is the most critical step. You need to access the website template file you are currently using. Typically, the output logic of the home page title is located in the template file.<head>Within the area. Find similar<title>...</title>tags, and find the call within themtdkpart of the tag. According to your specific needs:

    • If you do not want to attach a website name suffix, make sure the tag is{% tdk with name="Title" %}or{% tdk with name="Title" siteName=false %}.
    • If you want to add a website name suffix, please change the tag to{% tdk with name="Title" siteName=true %}.
    • If you want to add a custom separator while adding a suffix, you can addsepproperties, such as{% tdk with name="Title" siteName=true sep=" | " %}.

After making these adjustments, save your template file and clear the system cache (if necessary), refresh the homepage to see the effect.

Application scenarios and suggestions

Whether to add the website name suffix to the title on the homepage, it is a decision that website operators need to weigh based on their SEO strategy and brand image.

  • When to add the suffix: For new brands, those hoping to increase brand exposure through headlines, or websites in need of ensuring that their titles stand out among search results, adding a website name suffix is a good choice.It helps strengthen brand awareness and make the title structure of each page more unified.
  • When not to add the suffixIf the website's brand popularity is already high, or the core keywords already contain the brand name, or you want the title to be as concise as possible to highlight the core content within a limited number of characters, then it may be more appropriate not to add a website name suffix.

This refined control capability provided by AnQiCMS allows us to flexibly adjust the display strategy of the homepage title according to the different stages of website development and specific marketing goals, thereby better serving the overall operation of the website.


Frequently Asked Questions (FAQ)

1. I have already set it in the templatesiteName=trueWhy is the homepage title still without the website name suffix?

Please check two aspects: first, confirm that you have correctly filled in and saved the "Website Name" in the "Background Settings" -> "Global Function Settings" of the AnQiCMS background; second, make sure you are modifying the template file currently in use by the website, and after modifying the template file, it may be necessary to clear the system cache for the changes to take effect.

2. Can you control whether the title of other pages such as article detail pages and category pages is appended with the website name suffix?

siteNameattribute istdkTags are retrieving the page title (name="Title"The general configuration when Therefore, theoretically, you can adjust the title call in any page template file.tdklabel'ssiteNameThe attribute to control whether to append the website name suffix. For example, in the article detail page template, find<title>similar in the tag{% tdk with name="Title" %}call and add according to the needsiteName=true

Related articles

How to configure the thumbnail generation processing method (such as cropping, scaling by the longest side) for AnQiCMS to optimize display effects?

In content operation, images play a crucial role, and thumbnails, as the 'face' of the content, directly affect the first impression and click intention of users.A clear, beautiful, and fast-loading thumbnail that not only enhances the overall visual experience of the website but also effectively optimizes the search engine crawling and ranking, truly a win-win situation.How do we finely tune the thumbnail generation processing method in AnQiCMS to achieve **display effects?Why is thumbnail configuration so important?

2025-11-09

How to set up AnQiCMS to automatically compress large images and specify display width to improve page loading performance?

In today's digital age, the loading speed of a website directly affects user experience, search engine rankings, and even business conversion rates.Images, as an important part of web content, are often one of the key factors affecting page performance, in terms of their size and loading methods.If there are a large number of unoptimized large images on the website, even if the content is精彩, it may still deter visitors.

2025-11-09

How does AnQiCMS ensure that uploaded JPG/PNG images are automatically converted to WebP format to optimize front-end loading and display?

In today's digital age, website loading speed is crucial for user experience and search engine rankings.Among them, image files are an important part of web content, and their loading efficiency often directly affects overall performance.Traditional JPG and PNG image formats are widely used, but they are usually less efficient in file size than the emerging WebP format.How can AnQiCMS (AnQiCMS) automatically implement this optimization during image upload to enhance the front-end loading display of the website?

2025-11-09

How to use the AnQiCMS `tagList` tag to display a list of related tags and their links with the article?

In AnQiCMS, managing and displaying content, the Tag feature is very practical.It can not only help you better organize the content of the article, but also provide users with more flexible navigation methods, and is very beneficial for search engine optimization (SEO).When a reader is browsing an article, if they can see a list of related tags and can click on these tags to discover more similar content, it will undoubtedly greatly enhance the user experience and the website's PV (Page Views).

2025-11-09

Does AnQiCMS support displaying two-level and even multi-level dropdown categories or product documents in the navigation menu?

In website operation, a clear and intuitive navigation menu is a key link to improve user experience and guide content browsing.Many users want to implement dropdown menus in the main navigation when building websites, to hierarchically display related categories or product documents, making it convenient for visitors to quickly find the information they need.So, can AnQiCMS meet our needs in this aspect?

2025-11-09

How to implement a custom Banner image carousel display effect in AnQiCMS and call it by group?

In website operation, the Banner carousel is an important component for attracting users' attention, displaying core content, or promoting activities.AnQiCMS as an efficient and flexible content management system provides multiple ways to implement custom Banner image carousel effects and can be grouped according to different needs.This can not only make the website interface more dynamic and beautiful, but also present content accurately to target users, improving operational efficiency.

2025-11-09

Does AnQiCMS provide Json-LD tags to optimize the display of structured data snippets in search results?

When using AnQiCMS for website content operations, we often pay attention to many details of search engine optimization (SEO), among which structured data, especially Json-LD format, plays an increasingly important role in improving the display effect of search results.Whether AnQiCMS supports this feature, the answer is yes, and it provides flexible application methods.AnQiCMS has built-in support options for structured data in its backend management system.

2025-11-09

How to display the language name, language code, and corresponding Emoji or icon of the current site in AnQiCMS?

AnQiCMS provides a flexible and efficient solution for building multilingual websites, allowing your content to easily reach global users.In a multilingual site, it is crucial to clearly display the language information of the current page to visitors and provide convenient language switching options, which are essential for improving user experience and the professionalism of the website.Today, let's discuss how to naturally display the language name, language code, and even vivid Emoji expressions or icons on the front page of your AnQiCMS website, making your multilingual website more attractive.

2025-11-09