Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Cómo instalar un tema hijo de WordPress

Nota editorial: Ganamos una comisión de los enlaces de socios en WPBeginner. Las comisiones no afectan a las opiniones o evaluaciones de nuestros editores. Más información sobre Proceso editorial.

¿Quieres instalar un tema hijo en tu sitio WordPress? Los temas hijo son geniales para hacer personalizaciones porque te permiten aprovechar las potentes características de un tema padre o framework. En este artículo, le mostraremos cómo instalar fácilmente un tema hijo en WordPress.

How to Install a WordPress Child Theme

Qué es un tema hijo de WordPress?

Los temas hijo de WordPress dependen de un tema padre o de un framework de temas. Los temas hijo toman prestadas todas las características y apariencia de su tema padre y pueden cambiarlas sin tocar el código del tema padre.

La mayoría de los temas gratuitos y premium de WordPress vienen con un montón de opciones de personalización. Sin embargo, a veces es necesario añadir código manualmente al tema.

Si añades código directamente a los archivos de tu tema, tus cambios se sobrescribirán cuando lo actualices. Los temas hijo resuelven este problema permitiéndole añadir sus personalizaciones en el tema hijo. De esta forma, cuando actualice el tema padre, todos sus cambios permanecerán intactos.

Los temas hijo se utilizan más comúnmente con los frameworks de temas de WordPress. Estos frameworks son temas padre robustos que ofrecen una base sólida sobre la que los desarrolladores de temas pueden construir.

Genesis es uno de estos populares marcos de temas. Hay toneladas de temas hijo disponibles para Genesis que puedes conseguir en StudioPress.

Para saber más acerca de los temas hijo de WordPress, te recomendamos que leas nuestro artículo sobre ¿qué es un tema hijo de WordPress? Pros, contras y más.

¿Quieres personalizar tu tema de WordPress con un tema hijo propio? Sigue las instrucciones de nuestra guía paso a paso sobre cómo crear un tema hijo de WordPress.

Dicho esto, veamos cómo instalar fácilmente un tema hijo de WordPress.

Paso 1. Instalar el tema hijo de WordPress Instalar el tema hijo de WordPress

La instalación del tema hijo de WordPress no difiere de la instalación de cualquier otro tema de WordPress.

Dentro de su área de administrador de WordPress, diríjase a la página Apariencia ” Temas y haga clic en el botón Añadir nuevo.

Add new WordPress theme

Hay dos métodos para instalar su tema de WordPress.

Método 1: Si tu tema hijo está disponible como tema gratuito en el directorio de temas de WordPress.org, puedes buscarlo escribiendo su nombre en el cuadro de búsqueda.

Searching for a free WordPress child theme

Desde los resultados de la búsqueda, lleva el ratón hasta el tema que estabas buscando y haz clic en el botón Instalar.

WordPress descargará e instalará tu tema hijo.

También buscará el tema padre obligatorio / requerido / necesario. Si el tema padre también está disponible en el directorio de temas de WordPress.org, lo instalará automáticamente.

Método 2: Si tu tema hijo viene como un archivo zip, entonces necesitas hacer clic en el botón ‘Subir Tema’. Esto le mostrará la opción de subida del tema.

Upload your child theme's zip file

Haga clic en elegir archivo para seleccionar el archivo zip del tema de su ordenador y, a continuación, haga clic en el botón “Instalar ahora”.

WordPress subirá el archivo zip del tema desde su ordenador y lo instalará. También comprobará si el tema principal está instalado. Si el tema principal está disponible en el directorio de temas de WordPress.org, intentará instalarlo. En caso contrario, le indicará que deberá instalar el tema principal manualmente.

Installing child theme alone

Paso 2. Instalación del tema principal de WordPress

WordPress intentará instalar automáticamente el tema padre si está disponible en el directorio de temas de WordPress.org. Si no consigue instalar el tema padre, no podrá activar el tema hijo. El tema hijo aparecerá como roto en la página de temas.

Broken child theme

A continuación se explica cómo instalar el tema principal. Primero vaya al sitio web de su tema padre y descargue el archivo zip del tema.

Ahora dirígete a la página Apariencia ” Temas y haz clic en el botón Añadir nuevo.

Add new WordPress theme

Haz clic en el botón “Subir tema”. Esto le mostrará la opción de subida del tema.

Haga clic en el botón “Seleccionar archivo” para seleccionar el archivo zip del tema de su ordenador y, a continuación, haga clic en el botón “Instalar ahora”.

Upload your parent theme's zip file

Después de instalar los temas padre e hijo, puedes activar el tema hijo.

Nota: Tenga en cuenta que no es necesario activar el tema principal para utilizar el tema secundario.

Esperamos que este artículo te haya ayudado a aprender cómo instalar un tema hijo de WordPress. Puede que también quieras ver nuestra guía práctica sobre cómo encontrar qué archivos editar en un tema de WordPress.

Si te ha gustado este artículo, suscríbete a nuestro canal de YouTube para ver nuestros tutoriales en vídeo sobre WordPress. También puedes encontrarnos en Twitter y Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

27 comentariosDeja una respuesta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Tamie says

    Thank you for this!

    I have a few questions:

    Can you install a child theme after you have already installed and configured a parent theme or will this undo all of your work?

    Do you really need a child theme if you are only adding css under the customizer or will that remain in place over when you update your theme?

    Also, if do need the child theme and you have placed css under the customizer on the parent, should you move it over to the child?

    • WPBeginner Support says

      You can install a child theme but you may need to set some of the settings in the original theme for your design.

      If you are only adding changes in the customizer then a child theme is not required.

      For safety, we would recommend moving CSS in the customizer on the parent to the child theme. :)

      Administrador

  3. Rohit Patel says

    Great article. What happen if I am just using parent theme and not activate the child theme after install it.

  4. Hannah Joy says

    Thank you so much!!! Every other online tutorial was so confusing and added a lot of irrelevant detail or confusing and inapplicable info. I am creating a website for the first time and not trying to do anything fancy, I just want to get it right from the start. So grateful for pages like yours that break it down into easy to chew bits for us newbies!!

  5. Belinda Ciurleo says

    Thank you for sharing this, it is very helpful.
    I have one question..
    I have already installed the parent theme and created pages, menus, etc.
    I’ve come to installing the child theme because I need to create an endpoint in WooCommerce. I’ve done most of my site, just doing the finishing touches.

    When I deactivate the parent theme, and activate the child theme, will it keep all the work I’ve done? Or will I lose it all?

    • WPBeginner Support says

      You would keep all of your pages and content. Other customizations to styling may not transfer depending on the specific theme.

      Administrador

  6. Annapurna Agrawal says

    Hey, I have this serious question. Which one should I opt for? Creating a child theme? or building a theme from scratch?

    If I create the theme from scratch, how do I manage the updates to functions in WP?

    If I create a child theme, I will basically have to update the entire style for my website.

    Help me get out of this!

    • WPBeginner Support says

      If you create a child theme it will use whatever customizations you’ve added and if you do not specify a style it will take that from the parent theme. Creating a new theme would require you to have a style rule for everything you want styled.
      You would update the functions as you would with any theme.

      Administrador

  7. Allisa says

    Hi, I have installed both Genesis and child theme Essence. While I love the framework, I don’t care for my theme. Do you have any articles or suggestions on how to install & switch child theme’s? Thanks in advance!

  8. Susana says

    If I have already activated the parent theme should I deactivate it before installing and activating the child theme?

    • WPBeginner Support says

      Hi Susana,

      You can only activate one theme at a time in WordPress. When you install and activate the child theme it automatically deactivates the parent theme. You can also manually deactivate it if you want. However, you will need to keep the parent theme installed to use the child theme.

      Administrador

      • Mayur Lokhande says

        I have installed Parent theme, I don’t know how to check weather I had installed child-theme or not. Why is there need to upload child theme. If one would not install child theme then what would happen?

        • Paul Mohan says

          The child theme makes it a lot easier to edit wordpress sites later without expert knowledge.

  9. Juan says

    How do I create a child theme if wordpress was not installed locally on my pc. During the installation I left the “Directory” section blank and I think that is why I do not have a local install. What are my options?

  10. Allan Seabrook says

    Hi Syed,

    Thanks for sharing this article. Recently, I have started experimenting with the “One-Click Child Theme” plugin by tychay. It hasn’t been updated in two years by the developer. but appears to work as documented.

    Have you had any experience with this plugin or anything similar?

    Thanks!
    Allan

  11. Anton says

    Hello,

    What should I do if I already use main parent theme? How can I add child one? Do you guys have guide for that too?))

  12. Markus Martin says

    Hi Syed. I don’t know if it is only me, but my customizations in style.css for child theme don’t work anymore and am forced to use the custom css in wordpress customise dashboard. Is there a difference and is that really ok?

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.