How to Force Check Updates?

How to Force Check Updates?

Updates are automatically checked every 48 hours. If you do not seem to have received the update notification just yes, you may click on 「Check Again」 button on the Updates page in WordPress backend as shown in the screenshot below –

This method force checks if the updates are available. If you still do not see the update notification, it could be one of the reasons below –

You have not yet validated your purchase key.
Your host is not able to connect with our API server.

If you need help, please get in touch with us, or you can quickly update the plugin manually from the WordPress backend.

What is Astra Pro Addon?

What is Astra Pro Addon?

Astra Pro Addon is a premium plugin that extends functionalities in the Astra theme. The core theme is clean, lean and mean to offer only features that the majority of our users would need. While Astra Pro Addon offers further customization options and other features.

Please refer to our main website to see the latest information on the Astra Pro Addon plugin.

To know more about Astra Pro Addon, refer to this article on Getting Started with Astra Pro Addon!

How to Add Custom Javascript Code in Astra?

How to Add Custom Javascript Code in Astra?

In this article, let』s take a look the ways to custom JavaScript code in Astra theme.

With Insert Headers and Footers Plugin:

Any JavaScript that is unrelated to the theme or design of the website; any code that you will need to have on the website even if you switch the theme — should always be added through a plugin. For example, you will always need the Google Analytics code present on your website regardless of the theme you』re using. But if you add the Google Analytics code in the theme settings now and switch the theme from Astra to something else later, Google Analytics code will no longer function.

So it is a best practice to install JavaScript unrelated to design and theme in it』s own independent plugin. Insert Headers and Footers is a free, popular and lightweight plugin that you can use to add JavaScript code.

With Free Astra Hooks Plugin:

Astra Hooks Plugin allows you to add your Custom Content, Shortcodes and JavaScript code in the various hook locations. Once installed, you will see a new tab in the Customizer.

To add Java script code in the head, use the wp_head locationTo add the code in the footer, use the wp_footer location.

Please visit the plugin page WordPress Repository to download and learn more about this plugin and how it works.

With Custom Layouts module in Astra Pro Addon:

If you have Astra Pro Addon, you don』t need to install another plugin to add JavaScript code.

Enable Custom Layouts Module (screenshot)Create New Post (screenshot)Enable Code Editor and add your code.Replace existing comments and paste your code (screenshot)Set other options as per your needs and save.

For most of the websites, configurations as below works great:

Layout: HooksAction: wp_head or wp_footer depending where you wish to add the codePriority: 10Spacing: 0Display On: Entire WebsiteUser Roles: All

Increasing the PHP Memory Limit of Your Website

Increasing the PHP Memory Limit of Your Website

Have you ever come across an error that says: Fatal Error: Memory Size Exhausted? Or maybe your website just went white screen? This usually occurs when you install a new theme, plugin or upgrade your WordPress to the latest version. Or maybe the site is running just too slow?

The main cause of this error is that the PHP memory limit of your host is lesser than the process actually needs. In such cases, you will need to increase your host memory limit, so that the process gets completed. You can increase your host memory limit by following any of the five methods mentioned below.

1. Most Recommended: Just Contact Your HostIncreasing the PHP memory limit is complex and the process differs from hosts to hosts. So it is always better to get it done from someone who knows it well. So just get in touch with your hosting company and they will be happy to do it for you.

2. Increasing Memory Limit via PHP.ini fileMany small shared hosted servers do not allow users to access the PHP.ini file. If you are granted access, you can directly increase the memory limit through this file. If not, you can ask your host to allow you to create a duplicate PHP.ini file in your directory. The data or values in the duplicate file will override those in the original PHP.ini file. You can create a duplicate file named PHP.ini in the directory where your WordPress website is installed. If you wish to extend the limit to 256MB, you can enter the following line of code:

memory_limit = 256M;

3. Alternative to editing PHP.ini through wp-config.phpThis is another alternative to the PHP.ini method. Simply add the following line in the wp-config.php

ini_set('memory_limit','256M');

4. Changing memory Limit in wp-config.phpIn case you are not able to edit the PHP.ini file, you can use this method that helps increase memory limit through the wp-config.php. You can add the following line of code in your wp-config.php file.

define('WP_MEMORY_LIMIT','256M');

5. Modifying the .htaccess fileSome of you might have the .htaccess file where you can simply add a line of code to increase the memory limit.

php_value memory_limit 256M

P.S: 256M in the above code samples mean 256 MB. Feel free to change this to any appropriate number.

Standard server 404 page showing instead of custom 404 page

Standard server 404 page showing instead of custom 404 page

There are times when a specific page is not found. In such cases, we need to make sure that the 404.php appears before the user. This is a default function that WordPress does. WordPress looks for the 404.php page when it does not find the required page.
However, there are times when the server encounters such issues before WordPress notices. In such cases, you can still be sure that your server displays the 404.php template file by configuring your web server for custom 404 error handling.
In order to tell your web server to use the custom error files, you will have to edit the .htaccess file in the main directory (i.e. the place where your main index.php file resides) of your WordPress installation. If you do not have a .htaccess file or are not sure where to find it, you can refer to the article here.
To be sure that your server finds the 404 page, add the following line into your .htaccess file:
ErrorDocument 404 /index.php?error=404
The URL above /index.php is root-relative. This means that the forward slash begins with the root folder of your site. If WordPress is present in the subfolder or the subdirectory of your site』s root folder, named 『wordpress』, the line you should add to your .htaccess file is:
ErrorDocument 404 /wordpress/index.php?error=404
WARNING: If you are using custom permalink, the trick above does not work, see this.
Wish to read a little more about this? Here is an article you can refer to.

Complete List of WordPress Locale Codes

Complete List of WordPress Locale Codes

Hint – You can CRTL / CMD + F to find your language

Language Name
Language Code
WordPress Locale Code

Afrikaans
af
af

Akan
ak
ak

Albanian
sq
sq

Amharic
am
am

Arabic
ar
ar

Armenian
hy
hy

Aromanian
rup
rup_MK

Assamese
as
as

Azerbaijani
az
az

Azerbaijani (Turkey)
az-tr
az_TR

Bashkir
ba
ba

Basque
eu
eu

Belarusian
bel
bel

Bengali
bn
bn_BD

Bosnian
bs
bs_BA

Bulgarian
bg
bg_BG

Burmese
mya
my_MM

Catalan
ca
ca

Catalan (Balear)
bal
bal

Chinese (China)
zh-cn
zh_CN

Chinese (Hong Kong)
zh-hk
zh_HK

Chinese (Taiwan)
zh-tw
zh_TW

Corsican
co
co

Croatian
hr
hr

Czech
cs
cs_CZ

Danish
da
da_DK

Dhivehi
dv
dv

Dutch
nl
nl_NL

Dutch (Belgium)
nl-be
nl_BE

English
en
en_US

English (Australia)
en-au
en_AU

English (Canada)
en-ca
en_CA

English (UK)
en-gb
en_GB

Esperanto
eo
eo

Estonian
et
et

Faroese
fo
fo

Finnish
fi
fi

French (Belgium)
fr-be
fr_BE

French (France)
fr
fr_FR

Frisian
fy
fy

Fulah
fuc
fuc

Galician
gl
gl_ES

Georgian
ka
ka_GE

German
de
de_DE

German (Switzerland)
de-ch
de_CH

Greek
el
el

Guaraní
gn
gn

Gujarati
gu
gu_IN

Hawaiian
haw
haw_US

Hazaragi
haz
haz

Hebrew
he
he_IL

Hindi
hi
hi_IN

Hungarian
hu
hu_HU

Icelandic
is
is_IS

Ido
ido
ido

Indonesian
id
id_ID

Irish
ga
ga

Italian
it
it_IT

Japanese
ja
ja

Javanese
jv
jv_ID

Kannada
kn
kn

Kazakh
kk
kk

Khmer
km
km

Kinyarwanda
kin
kin

Kirghiz
ky
ky_KY

Korean
ko
ko_KR

Kurdish (Sorani)
ckb
ckb

Lao
lo
lo

Latvian
lv
lv

Limburgish
li
li

Lingala
lin
lin

Lithuanian
lt
lt_LT

Luxembourgish
lb
lb_LU

Macedonian
mk
mk_MK

Malagasy
mg
mg_MG

Malay
ms
ms_MY

Malayalam
ml
ml_IN

Marathi
mr
mr

Mingrelian
xmf
xmf

Mongolian
mn
mn

Montenegrin
me
me_ME

Nepali
ne
ne_NP

Norwegian (Bokmål)
nb
nb_NO

Norwegian (Nynorsk)
nn
nn_NO

Oriya
ory
ory

Ossetic
os
os

Pashto
ps
ps

Persian
fa
fa_IR

Persian (Afghanistan)
fa-af
fa_AF

Polish
pl
pl_PL

Portuguese (Brazil)
pt-br
pt_BR

Portuguese (Portugal)
pt
pt_PT

Punjabi
pa
pa_IN

Rohingya
rhg
rhg

Romanian
ro
ro_RO

Russian
ru
ru_RU

Russian (Ukraine)
ru-ua
ru_UA

Rusyn
rue
rue

Sakha
sah
sah

Sanskrit
sa-in
sa_IN

Sardinian
srd
srd

Scottish Gaelic
gd
gd

Serbian
sr
sr_RS

Sindhi
sd
sd_PK

Sinhala
si
si_LK

Slovak
sk
sk_SK

Slovenian
sl
sl_SI

Somali
so
so_SO

South Azerbaijani
azb
azb

Spanish (Argentina)
es-ar
es_AR

Spanish (Chile)
es-cl
es_CL

Spanish (Colombia)
es-co
es_CO

Spanish (Mexico)
es-mx
es_MX

Spanish (Peru)
es-pe
es_PE

Spanish (Puerto Rico)
es-pr
es_PR

Spanish (Spain)
es
es_ES

Spanish (Venezuela)
es-ve
es_VE

Sundanese
su
su_ID

Swahili
sw
sw

Swedish
sv
sv_SE

Swiss German
gsw
gsw

Tagalog
tl
tl

Tajik
tg
tg

Tamazight (Central Atlas)
tzm
tzm

Tamil
ta
ta_IN

Tamil (Sri Lanka)
ta-lk
ta_LK

Tatar
tt
tt_RU

Telugu
te
te

Thai
th
th

Tibetan
bo
bo

Tigrinya
tir
tir

Turkish
tr
tr_TR

Turkmen
tuk
tuk

Uighur
ug
ug_CN

Ukrainian
uk
uk

Urdu
ur
ur

Uzbek
uz
uz_UZ

Vietnamese
vi
vi

Walloon
wa
wa

Welsh
cy
cy

Yoruba
yor
yor

Original Source.

How to Disable Header or Footer for a Landing Page or Post?

How to Disable Header or Footer for a Landing Page or Post?

There might be times when you need full flexibility like a blank canvas on some pages / posts and do not want header / footer to appear. Astra allows you to disable these through the Astra Meta box settings of the specific page or post.

As you can see in the screenshot, you will find a meta box named Astra settings in your backend. You can disable the title, header or footer from here.

Note: If you are not able to see Astra Settings as shown above, you will need to enable this through screen options. Please refer this screenshot.

Fix for – The PCLZIP_ERR_BAD_FORMAT (-10) Error

Fix for – The PCLZIP_ERR_BAD_FORMAT (-10) Error

The PCLZIP_ERR_BAD_FORMAT (-10): Unable to find End of Central Dir Record signature error is caused by one of two things as below:

Case 1: There』s a problem with the zip file or its format.

It』s possible that the plugin zip file became corrupted when it was downloaded. Try downloading it from your account on our store and install (or update manually).

Case 2: Server Disk Space Issue

If you still receive the same error while trying to install the zip manually, then it may mean that there』s not enough storage space on your host for WordPress to be able to unzip and upload the contents of the file. To confirm this, try to upload other files to your sites, such as an image, video or other plugin. If you』re not able to upload large files, then storage space is likely the issue.

You can either remove some files (backups or themes & plugin that you』re not using) or contact your web host to increase your storage capacity.

Where Does Astra Primary Color Setting Take Effect?

Where Does Astra Primary Color Setting Take Effect?

Astra offers a setting where you can set the main, default color that takes effect on several places.

To set the primary color, go to: Customizer – Global > Colors

The color that you set as primary is used for:

Links that you give from contentTo the background of the text when you select itBackground color to a buttonBackground color of the scroll to top iconBackground color of the hamburger menu in responsive modeTag cloud widget

Most of these elements above can have a different color from their respective settings.

For example, the background color of a button by default is taken from what you』ve set in the primary color. However, we offer a dedicated setting for you to change this in the customizer under Customizer – Global > Buttons.

Primary Color saves a lot of time as it gets applied to several areas without you having to set the color for every individual item.

How to Get License Key of Astra Pro?

How to Get License Key of Astra Pro?

The license key (or purchase key) is needed in various instances; like registering the product to receive free updates, logging in to our support center to request support and more.

You can find the key when you log in to our store.

Login to our store and open the Licenses page.

You will see all your license keys information there.

Note: Visit the following article on How to Activate Astra Pro Addon License?