Supporto » Aspetto = Temi » Aiuto creazione child theme Fluida

  • Ciao a tutti, come da titolo chiedo gentilmente se qualcuno e in grado di aiutormi a creare il child theme di Fluida. Io ho seguito tutti i passaggi ma il risultato quando lo vado ad attivare è un impaginazione scorretta questo secondo me perchè non carica correttamente il file css

    File CSS del tema Originale

    /*
    Theme Name: Fluida
    Theme URI: http://www.cryoutcreations.eu/wordpress-themes/fluida
    Description: Fluida is a modern, crystal clear and squeaky clean theme. It shines bright with a fluid and responsive layout and carries under its hood a light and powerful framework. All the theme's graphics are created using HTML5, CSS3 and icon fonts so it's extremely fast to load. It's also SEO ready, using microformats and Google readable Schema.org microdata. Fluida also provides over 100 customizer theme settings that enable you to take full control of your site. You can change everything starting with layout (content and up to 2 sidebars), site and sidebar widths, colors, (Google) fonts and font sizes for all the important elements of your blog, featured images, post information metas, post excerpts, comments and much more. Fluida also features social menus with over 100 social network icons available in 4 locations, 3 menus, 6 widget areas, 8 page templates, all post formats, is translation ready, RTL and compatible with older browsers. If you want to take things further via a child theme you'll find clean code, either hookable or pluggable functions with clear descriptions and over 25 action hooks ready for action. Fluida - because solid is so overrated!
    Author: Cryout Creations
    Author URI: http://www.cryoutcreations.eu
    Version: 1.3.4
    License: GNU General Public License v3.0
    License URI: http://www.gnu.org/licenses/gpl-3.0.html
    Tags: one-column, two-columns, three-columns, right-sidebar, left-sidebar, grid-layout, custom-background, custom-colors, custom-header, flexible-header, custom-menu, featured-image-header, featured-images, front-page-post-form, full-width-template, footer-widgets, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, blog, e-commerce, news, entertainment, photography, portfolio
    Text Domain: fluida
    
    Fluida WordPress Theme - Copyright 2015, Cryout Creations - http://www.cryoutcreations.eu
    This theme, like WordPress, is licensed under the GPL.
    */

    io ho creato una cartella chiamata fluidachildtheme e all’interno style.css e ho scritto

    /*
    Theme Name: Fluida child 
    Theme URI: http://www.cryoutcreations.eu/wordpress-themes/fluida
    Description: Tema child
    Author: blablabla
    Author URI: http://www.cryoutcreations.eu
    Template: fluida
    Version: 1.3.4
    Tags:
    Text Domain: fluida-child
    Fluida WordPress Theme - Copyright 2015, Cryout Creations - http://www.cryoutcreations.eu
    This theme, like WordPress, is licensed under the GPL.
    */

    e functions.php con all’interno

    <?php
    add_action( ‘wp_enqueue_scripts’, ‘carica_stili_parent’ );
    function carica_stili_parent’ () {
        wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    
    }
    ?>

    Qualcuno sa dirmi perchè non funziona? o dove ho sbaglaito?
    Grazie mille

Stai visualizzando 1 risposte (di 1 totali)
  • Moderatore Guido Scialfa

    (@wido)

    Ciao @mrpress01,

    Strano tu non abbia avuto qualche errore durante il caricamento della pagina, in linea di principio hai un errore nella definizione della funzione ovvero aggiungi un carattere “quote” primad delle parentesi () in function carica_stili_parent’ () { Secondariamente controlla che il child del tema sia attivo e che effettivamente dentro al file style.css del tema ci sia del css.

    A parte questo sembra ok come da documentazione https://codex.wordpress.org/it:Temi_Child

    • Questa risposta è stata modificata 6 anni, 5 mesi fa da Guido Scialfa.
Stai visualizzando 1 risposte (di 1 totali)
  • Il topic ‘Aiuto creazione child theme Fluida’ è chiuso a nuove risposte.