• Resuelto elrufus82

    (@elrufus82)


    he creado un tema hijo con los archivos style.css y functions.php más el index.php para que wordpress me reconozca el tema hijo.

    el index.php donde va el blog me coge el color de fondo del style.css pero no me muestra los articulos. es la primera vez que creo un tema hijo y no se donde está el fallo.

Viendo 5 respuestas - de la 1 a la 5 (de un total de 5)
  • Moderador LGrusin

    (@lgrusin)

    ¿Detecta el tema hijo el escritorio?

    ¿Qué tema es?

    Igual has modificado partes del index.php importantes.

    Un saludo

    Iniciador del debate elrufus82

    (@elrufus82)

    para que me lo detecte wordpress tengo que crear el index.php sino me da este error:

    La plantilla no está disponible. Los temas necesitan un archivo de plantilla index.php. Los Temas hijo necesitan una cabecera de plantilla en la hoja de estilos style.css.

    y en el index.php no he modificado nada pero no me pilla los articulos solo el aside derecho donde van las categorias etc….

    Iniciador del debate elrufus82

    (@elrufus82)

    archivo style.css del hijo

    /*
    Theme Name: WP Bootstrap Starter child
    Theme URI: https://afterimagedesigns.com/wp-bootstrap-starter-child/
    Author: Afterimage Designs
    Author URI: https://afterimagedesigns.com/
    Description: The best WordPress starter theme based on the most powerful frameworks in the world: «_s» (by Automattic, the main people behind WordPress development), Twitter Bootstrap (the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web) and Font Awesome (or Fontawesome, a full suite of 675+ pictographic icons for easy scalable vector graphics on websites). This theme, like WordPress, is licensed under the GPL. You can use this theme as base for your next WordPress theme project and you are allowed to remove the link at the footer or do whatever you want. Your feedback on how we can continuously improve this WordPress Starter Theme Bootstrap will be highly appreciated. Page templates includes Right-sidebar (default page template), Left-Sidebar, Full-Width, Blank with container, Blank without container Page. Other features – Currently using Bootstrap v4.0.0-alpha.6, Widgetized footer area, WooCommerce ready, Compatible with Contact Form 7, Compatible with Visual Composer, Compatible with Elementor Page Builder. This theme will be an active project which we will update from time to time. Check this page regularly for the updates.
    Version: 3
    License: GNU General Public License v2 or later
    License URI: LICENSE
    Text Domain: wp-bootstrap-starter-child
    Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-background, e-commerce, theme-options, sticky-post, full-width-template
    */

    functions.php

    <?php
    function my_theme_enqueue_styles() {

    $parent_style = ‘wp-bootstrap-starter-style’; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.

    wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array( $parent_style ),
    wp_get_theme()->get(‘Version’)
    );
    }
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    ?>

    Iniciador del debate elrufus82

    (@elrufus82)

    aun no le he solucionado pero el error estaba que me faltaba poner en la cabecera del style.css «Template: WP Bootstrap Starter» pero ahora me dice que no encuentra el tema padre.

    Iniciador del debate elrufus82

    (@elrufus82)

    ya lo he solucionado poniendo bien el nombre del tema padre.

    • Esta respuesta fue modificada hace 8 años por elrufus82.
Viendo 5 respuestas - de la 1 a la 5 (de un total de 5)

El debate ‘el tema hijo no me coge las entradas del blog’ está cerrado a nuevas respuestas.