Nu ma declar vreun expert in creeare de teme sau copil tema in WordPress, in acest tutorial video putin incerc sa invat si pe altii ce stiu. Asadar iata tutorialul video.
Se creaza un nou folder cu numele genesis-child-html5 in care vor fi 2 fisiere. Style.css si funtions.php
In style.css avem urmatoarele coduri.
[codesyntax lang=”css”]
/* Theme Name: Genesis Child Html5 Theme URI: https://www.bucurion.ro Description: Copil tema pentru Genesis Author: Bucur Author URI: https://www.bucurion.ro Version: 1.0 Tags: Template: genesis */ @import url("../genesis/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */ body { background-color: #ccc; } .site-header { background-color: #0099ff; min-height: 160px; }
[/codesyntax]
In functions.php avem aceste coduri.
[codesyntax lang=”php”]
<?php /* * Genesis Child Html5 * */ //* Load the Genesis core files include_once( get_template_directory() . '/lib/init.php' ); //* Child theme Definitions define( 'CHILD_THEME_NAME', __( 'Genesis Child Html5', 'genesi-child-html5' ) ); define( 'CHILD_THEME_URL', 'https://www.bucurion.ro' ); define( 'CHILD_THEME_VERSION', '1.0' ); //* Add HTML5 markup structure //* http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5 add_theme_support( 'html5' ); //* Add HTML5 markup structure add_theme_support( 'genesis-responsive-viewport' ); ?>
[/codesyntax]
Pentru alte nelamuriri puteti comenta.