Create a WordPress Theme Using React with Frontity, TypeScript, and Vite

Create a WordPress Theme Using React with Frontity, TypeScript, and Vite

Tiempo de lectura: 2 minutos Today we are going to learn how to create a WordPress theme using React, TypeScript, and Frontity. Additionally, we will add Vite underneath, which will allow us to deploy our app faster. Frontity is the framework that allows you to connect your React application with WordPress, leveraging its REST API or GraphQL to fetch and … Read more

Folder Permissions for WordPress Installation

Folder Permissions for WordPress Installation

Tiempo de lectura: 2 minutos Today we are going to indicate the necessary permissions in a WordPress installation with Apache. To ensure the security and proper functioning of your WordPress site within a Docker container, it is important to set the correct permissions on the web directory (www). Here is a general recommendation on how you could set the permissions: … Read more

Restore WordPress Password Without Access to Email

Restore WordPress Password Without Access to Email

Tiempo de lectura: 2 minutos Today we are going to go through the steps to reset a user password in WordPress by generating a new hash and updating it directly in the database, using PHP and MySQL. Step 1: Access the database Use a database client like phpMyAdmin or any other method you prefer to access your website’s database. Step … Read more

Migrate WordPress from HTTP to HTTPS (SSL/TLS)

Migrate WordPress from HTTP to HTTPS (SSL/TLS)

Tiempo de lectura: 3 minutos Hello, today we are going to learn how we can migrate our WordPress site from HTTP to a secure HTTPS version under the TLS/SSL protocol. The first thing we are going to do is to install this plugin that will allow us to replace internal links from HTTP to HTTPS: Search for search & replace … Read more

Add customizable logo to a WordPress theme

Add customizable logo to a WordPress theme

Tiempo de lectura: 2 minutos Today we are going to learn how we can add a customizable logo to our WordPress theme. Continuing from our previous tutorials. We are going to modify our header so that it can display either an uploaded logo or text (the site’s name). header.php <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset=”<?php bloginfo(‘charset’); ?>”> … Read more

Creating a WordPress Docker Compose and deploying a blog quickly and easily.

Creating a WordPress Docker Compose and deploying a blog quickly and easily.

Tiempo de lectura: 2 minutos Hello and welcome to DevCodeLight, today we are going to learn how to deploy a WordPress using a Docker Compose that I’m going to share with all of you. The first thing we are going to do is to create this file docker-compose.yml: version: “3.1” services: myservicemariadbwp: image: mariadb restart: unless-stopped container_name: mariadb_container_wp environment: MYSQL_ROOT_PASSWORD: … Read more

Adding a customizable menu to your WordPress theme

Adding a customizable menu to your WordPress theme

Tiempo de lectura: 2 minutos Continuing from the previous post on creating a WordPress theme (https://devcodelight.com/?p=6987), now we’re going to add a customizable menu. To do this, we’ll go to header.php and add the following: <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset=”<?php bloginfo(‘charset’); ?>”> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <title><?php wp_title(); ?></title> <?php wp_head(); ?> </head> <nav class=”navbar navbar-expand-lg … Read more