Child theme still invisible
-
Hello,
I checked everything but, I still can’t see the new “graphene-child” theme to activate!
Wordpress: latest version.
Thanks for your support.
The details:
style.css/*
Theme Name: Graphene Child
Theme URI: https://www.bakriassoumani.com/graphene-child/
Description: Graphene Child Theme
Author: Bakri
Author URI: https://www.bakriassoumani.com
Template: graphene
Version: 2.0.4
Text Domain: graphene-child
*/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
functions.php<?php
add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
function my_theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );}
?>For your functions.php try this:
function graphene_child_enqueue_styles() { wp_enqueue_style( 'graphene', get_template_directory_uri() . '/style.css', array( 'bootstrap', 'font-awesome' ) ); wp_enqueue_style( 'graphene-child', get_stylesheet_uri(), array( 'graphene' ) ); } add_action( 'wp_enqueue_scripts', 'graphene_child_enqueue_styles' );
as provided by Syahir in this thread: https://forum.graphene-theme.com/topic/new-graphene-theme-2-0-1/
Hello,
Thank you Mabul. I tried your proposal and Syahir one.
Unfortunately the mystery remains!I had issues with child theme maybe try Syahir code ? https://forum.graphene-theme.com/topic/new-update-problems-2/
I’m glad to say that the problem is finally solved.
Well, I decided to try a plugin to generate the child theme: Child Theme Generator. Within less than 2 minutes I got the solution. This is illustrated on my web site with a new head image.functions.php
<?php
/*This file is part of graphene-child, graphene child theme.All functions of this file will be loaded before of parent theme functions.
Learn more at https://codex.wordpress.org/Child_Themes.Note: this function loads the parent stylesheet before, then child theme stylesheet
(leave it in place unless you know what you are doing.)
*/function graphene_child_enqueue_child_styles() {
$parent_style = ‘parent-style’;
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’, ‘graphene_child_enqueue_child_styles’ );/*Write here your own functions */
style.css
/*
Theme Name: graphene child theme
Description: Write here a brief description about your child-theme
Author: Bakri
Author URL: https://bakriassoumani.com
Template: graphene
Version: 2.0.4
Text Domain: graphene-child
*//* Write here your own personal stylesheet */
.header_title, .header_desc {
text-align: left;
padding-left: 15px;
}Hello, I am thinking about using your theme for my corporate website. However, I have some questions; 1. Is it possible to use a subscribe button which is tied to Mailchimp? 2. I would like to show my services with pictures and shorth descriptions on the same page https://www.walgreenslistens.us/
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.