Author: Jorge Saldivar
-
What is headless content?
Headless content refers to content that is created and managed without a specific presentation layer in mind. In other words, it is content that is designed to be used across multiple channels and devices, rather than being tied to a specific website or application.
Traditionally, content has been tightly coupled to the presentation layer of a website or application, which makes it difficult to reuse that content across different channels or devices. With headless content, however, the content is decoupled from the presentation layer and is instead delivered via an API (application programming interface). This means that the content can be consumed by any application or device that can access the API, regardless of its specific presentation layer.
Headless content is becoming increasingly popular as more and more companies seek to deliver content across a range of channels and devices, including websites, mobile apps, smart speakers, and other IoT devices. By decoupling the content from the presentation layer, companies can more easily manage and distribute their content across these various channels, providing a more seamless and consistent experience for their users.
-
WordPress 6.2 wonky update
Was it just me or did WordPress 6.2 add
<p></p>
tags in custom HTML blocks before and after line breaks? Hoping it was just a weird, one-time, bug. -
MacOS XAMPP, setup example.com website
To set up a website with XAMPP on macOS and create a virtual host for it, you can follow these steps:
- Open the Terminal application on your Mac.
- Navigate to the XAMPP directory by typing the following command:
cd /Applications/XAMPP
- Once you are in the XAMPP directory, navigate to the Apache configuration folder by typing the following command:
cd etc/apache2
- In the Apache configuration folder, you will find a file called
httpd.conf
. Open this file in a text editor such as nano or vim by typing the following command:
sudo nano httpd.conf
- In the
httpd.conf
file, locate the following line:
# Virtual hosts
# Include etc/extra/httpd-vhosts.conf - Remove the
#
at the beginning of the second line to uncomment it. - Save and close the
httpd.conf
file. - Navigate to the Apache extra configuration folder by typing the following command:
cd extra
- In the extra folder, you will find a file called
httpd-vhosts.conf
. Open this file in a text editor by typing the following command:
sudo nano httpd-vhosts.conf
- At the bottom of the file, add the following code to create a virtual host for your WordPress website:
<VirtualHost *:80> DocumentRoot "/Applications/XAMPP/htdocs/example.com" ServerName example.com ServerAlias www.example.com ErrorLog "/Applications/XAMPP/logs/example.com-error_log" CustomLog "/Applications/XAMPP/logs/example.com-access_log" common <Directory "/Applications/XAMPP/htdocs/example.com"> AllowOverride All </Directory> </VirtualHost>
- Replace “example.com” with your website’s domain name.
- Save and close the
httpd-vhosts.conf
file. - Restart Apache by typing the following command:
sudo /Applications/XAMPP/xamppfiles/bin/apachectl restart
- Download and install WordPress into the newly created directory (
example.com
in this example) by following the instructions on the WordPress website. - Open your web browser and type in your website’s domain name (e.g.
http://example.com
) to access your WordPress website.
-
Web devs be like…
Source:
-
4-Minute Video: Using theme.json with classic themes in WordPress
4-Minute Video: Using theme.json with classic themes in #WordPress >> The theme.json is a file that allows block theme developers to control the settings and styles of the blocks in the block editor. But you can use it for classic themes too! https://learn.wordpress.org/tutorial/using-theme-json-with-classic-themes/ #LearnWP
Originally tweeted by WordPress (@WordPress) on March 11, 2023.