Without Plugin!Easy copy and paste. how to add a site name shortcode to WordPress.

It is very time-consuming to rewrite site names when producing multiple sites.

As a way of preventing this from happening, it is recommended to set up a system to call the name of the site by a shortcode.

Write the following code in the ‘functions.php’ file.

add_shortcode( 'sitename', function() { return get_bloginfo(); } );

Enter the shortcode below to insert the site name into content anywhere the shortcode is processed, such as any post page or fixed page.

[[sitename]]

Now, no matter how many times you update the site title in [Settings] -> [General], the content will always refer to the current name.

Plant

Aztekium ritteri

1. Habitat2. Description3. Farming Habitat Usually grows on vertical limestone cliffs. It is endemic to two remote small areas in the Nuevo León region of north-eastern Mexico. It is endangered in its habitat due to illegal collection and natural erosion...

Continue reading

Plant

Cool and easy to grow Gymnocalycium Origin, origin and how to grow.

Gymnocalycium is one of the most robust species to manage. It is a cool and varied species with a very good balance of both ornamental and collecting value. 1. Origin2. Habitat3. Features4. Type5. Farming Origin Derived from the Greek ‘gymnòs’...

Continue reading

Code Security Web Wordpress

How to prohibit access to wp-config.php.WordPress

Prohibiting access to wp-config.php improves site security. You are encouraged to refer to this information to maintain your website. Put the following code in the “.htaccess” file. <files wp-config.php> order allow,deny deny from all </files>

Continue reading

Speed Web Wordpress

How to optimise page speed in WordPress.WordPress

If a web page does not load within the first two seconds, 55% of mobile users will leave that web page. Furthermore, around 70% of consumers in online stores report that page display speed is linked to their willingness to...

Continue reading

Code Speed Web Without Plugin

Without Plugin!How to LazyLoad Google Adsense to speed up display speed.

Loading Google Adsense significantly reduces page display speed. The following methods will improve the expectation of problem resolution and should be tried. 1. Remove Script tag in Google Adsense code.2. Install code for LazyLoad. Remove Script tag in Google Adsense...

Continue reading

Plant

Obregonia denegrii.

One genus and one species of cactus, so majestic and dignified is its appearance that it is known as the ‘TEIKAN’. This is a very rare cactus and one of the most popular cacti, partly because of its beautiful rosette...

Continue reading

Arrival Shop

Accession in December 2024

More will appear in December! Pre-orders are also available.We hope you will order as soon as possible if you wish, as numbers are limited.

Continue reading

Plant Raise

The key points are sun, wind, water and soil! How to grow succulents.

Succulents are very easy to grow compared to other plants. There are four simple points. Maintain in a sunny location. Maintain in a well-ventilated area. Water when the soil is dry. Plant in well-drained soil. As long as the above...

Continue reading

Plant

What is a cactus. Origin and characteristics of ‘Cactos’ [1].

The word ‘Cactus’ derives from the Greek word ‘Kàktos’. The term was used by Theophrastus in his book HistoriaPlantarum to describe ‘unknown thorny plants’. The term ‘Cactus’ was subsequently adopted by the renowned botanist Linneo to define the American thorny...

Continue reading

Code Speed Web Wordpress

How to score 100 on the Google Speed Test.How to create better web vitals with WordPress themes and plugins. ‘Checklist for developers’.

This post explains how to get a score of 100 on the google speed test. 1. 1.Files2. 2.Fonts and typography3. 3.CSS framework4. 4.Conditional asset loading4.1. Inline styles4.2. Inline scope4.3. Using transients to store conditions4.4. Checking by name for loading5. 5.Image...

Continue reading

Leave a Reply

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.