WordPress knowledge sharing

Methods for modifying the theme of GeneratePress and removing the footer copyright

WordPress theme footers will have copyright information, such as Weiss Notes The footer copyright of (can be seen at the bottom of this page), GeneratePress Theme There is also copyright information. If you don't want to show it when you create a website, you can modify and remove the footer copyright according to the method shared by Lao Wei below. If it is a domestic registered website, you can also add domain name registration and online security registration numbers.

You can modify the copyright information of the website footer in two ways, by using the GP Premium plug-in, or by adding code in function.php. The operation process is explained below.

Two core 4G memory and 3M bandwidth are selected for the theme and plug-in of foreign website construction, which can run smoothly.
Domestic servers: Alibaba Cloud Tencent Cloud (All have vouchers, which can be used to save money when paying), I don't know how to select regions and configurations. Please add Lao Wei's contact information on the right side of the page. Let's study it together.

Foreign trade website B2C/C2C suggests registering domain names abroad. open Namesilo official website , enter the domain name to be registered in the search box, select it and then register. Remember to use the discount code to save money before paying. Discount code click Course of domain name registration of foreign domain name provider Namesilo obtain.

Suggested choice of foreign trade website Hostinger virtual host , the price is cheap and the performance price ratio is very high! Hostinger topic
SiteGround virtual host Moderate price, good service! SiteGround Theme

Modify footer copyright with GP Premium plug-in

1、 The GP Premium plug-in is an advanced plug-in, which requires extra payment to use. Interested please see Purchase, download and deploy GP Premium plug-ins

After installing the GP Premium plug-in, on the right side of Wordpress Dashboard Appearance>generatepress, enable copyright. As shown in the figure below, "Deactivate" is displayed and the font is bold and black.

 Enable copyright using the GP Premium plug-in

Enable copyright using the GP Premium plug-in

2. In WordPress Dashboard Appearance>Customize>LayoutLayout>Footer Footer, you can see the copyright information dialog box.

  • %Current_year% automatically updates the current year;
  • %The letter c in the copy% circle is the default copyright symbol;
  • Support HTML and short code Shortcode;

Generally, we will add% current_year%% copy%, followed by HTML code.

As shown in the figure below, Lao Wei can add a website map, domain name filing number, online security filing number, and running on Tencent Cloud Server. Basically, these are the contents added in the footer copyright of domestic websites.

 Wordpress Custom Modification Copyright Information

WordPress custom modification copyright information

At this time, a novice, Xiaobai, said: What can I do if I don't understand HTML code? This is easy to solve. Let Lao Wei teach you how. Use Dreamweaver to insert the text you want in the "Design" status, select all and add the URL at the following link, then copy all the generated code in the "Code" status and put it in the copyright in the above figure. After publishing, see the effect. If you are not satisfied, go to Dreamweaver to modify. With this method, you can quickly make the copyright effect you want even if you don't understand HTML code.

For example, add the following code

%current_year%%copy% <a href=” https://www.vpsss.net/ ” target=”_blank”>www.vpsss.net</a>

After saving, you can see 2021 on the foreground page © www.vpsss.net The footer of the words is very clear. however This function is only available for GP Premium plug-in If you use the GeneratePress theme (free), try the following method.

How to modify the GeneratePress theme

The GeneratePress theme is free to use. If you do not use the GP Premium plug-in, you can add the following code in the theme's functions.php file

add_filter( ‘generate_copyright’,’tu_custom_copyright’ );
function tu_custom_copyright() {
?>
Add your own information, including PHP and HTML information
<? php
}

GeneratePress Theme Remove Footer

If you don't want the footer, you can delete the entire footer area with the following code

add_action( ‘after_setup_theme’, ‘tu_remove_footer_area’ );
function tu_remove_footer_area() {
remove_action( ‘generate_footer’,’generate_construct_footer’ );
}

Or add it to the functions.php file.

Like( five )
Article name: Methods for Modifying the Theme of GeneratePress and Removing the Footer Copyright
Article link: https://www.vpsss.net/23791.html
Copyright notice: The resources of this website are only for personal learning and exchange, and are not allowed to be reproduced and used for commercial purposes, otherwise, legal issues will be borne by yourself.
The copyright of the pictures belongs to their respective creators, and the picture watermark is for the purpose of preventing unscrupulous people from stealing the fruits of labor.