Custom variables are pieces of HTML code that contain specific values as programming variables. By creating a custom variable, you can apply it to multiple areas on your site. An example of the custom variable structure is shown here:
{{config path="web/unsecure/base_url"}}This variable shows the URL of the store.
Now, let's create a custom variable to see how it works. Perform the following steps:
http://localhost/packt/admin_packt.
dev_name.
Now, we have a custom variable that stores the developer's name. Let's use this variable inside the CMS About Us page via the following steps:
{{CustomVar code="dev_name"}}
Let's take a look at the result in the following screenshot:
