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

Creating a Custom Plugin for WordPress

Creating a Custom Plugin for WordPress

Tiempo de lectura: 2 minutos Hello, today we’re going to learn how we can create a custom plugin for WordPress. Step 1: Create Folder and File Structure Inside the wp-content/plugins/ folder, create a new folder for your plugin, for example, custom-footer-message. Inside this folder, create two files: custom-footer-message.php (main plugin file) and settings.php (for settings). Step 2: Main File (custom-footer-message.php) … Read more

Create a category in WordPress

Create a category in WordPress

Tiempo de lectura: 2 minutos Photo by Alena Koval Categories in WordPress help organize and classify your content, making it easier to navigate between different pages and sections. It’s very simple to create a category in WordPress by following the steps below. First, access the WordPress admin panel with your credentials and navigate to the Categories section. To add a … Read more

Creating a Fragment with React

Creating a Fragment with React

Tiempo de lectura: 2 minutos Hello and welcome to my new article on React. Today we are going to see how we can create a fragment with React. A fragment is an area on the screen that changes when we press a button or a menu. To create this fragment, first, we are going to create the menu that allows … Read more

How to Add Plurals or Different Texts for a Certain Quantity in Android Studio Using Java (Using Text Resources)

How to Add Plurals or Different Texts for a Certain Quantity in Android Studio Using Java (Using Text Resources)

Tiempo de lectura: 2 minutos Photo by Ákos Szabó First, we will define the plural messages in the strings.xml file, located in the res/values/ folder. This file contains the text resources used in the application. In this case, as an example, we will display different text depending on the number of messages we have. In the plural text item quantity=»other», … Read more

Create Checkbox Options in Flutter with Dart

Create Checkbox Options in Flutter with Dart

Tiempo de lectura: < 1 minuto Photo by JÉSHOOTS In this example, I’m going to show you how to create a set of checkbox options in Flutter using the Dart programming language. To do this, we’ll create a component that we’ll call CheckboxGroup. This component will have its properties and events to handle the selection of options, allowing us to use … Read more