Login / logout

function agregar_login_logout_al_menu( $items, $args ) { // Verifica si el usuario está logueado if ( is_user_logged_in() ) { // Obtén el nombre del usuario $current_user = wp_get_current_user(); $user_name = $current_user->display_name; // Enlace de “Cerrar sesión” con el nombre de usuario…Continue reading

Modern CSS Reset

/* 1. Use a more-intuitive box-sizing model */ *, *::before, *::after { box-sizing: border-box; } /* 2. Remove default margin */ * { margin: 0; } body { /* 3. Add accessible line-height */ line-height: 1.5; /* 4. Improve text…Continue reading

Thanksgiving popup

(function(w, d, t, h, s, n) { w.FlodeskObject = n; var fn = function() { (w[n].q = w[n].q || []).push(arguments); }; w[n] = w[n] || fn; var f = d.getElementsByTagName(t)[0]; var v = ‘?v=’ + Math.floor(new Date().getTime() / (120 *…Continue reading

Custom styles for Hello Theme

:root { –primary: #323232; –secondary: #FFD340; –text: #323232; –accent: #5A32F4; –border: #D9D5CC; –light-grey: #efefef; –grey: #505050; –white: #fff; –font-family: ‘Azo Sans’, sans-serif; } /* Custom styles for Hello Theme */ h1,h2,h3,h4,h5,h6 { margin-block-start: inherit; margin-block-end: inherit; } /* Header */…Continue reading