Did you activate the child theme in your dashboard, or is the parent theme still active?
the child-theme.
I can see the php file-changes
the parent theme’s style.css loads twice;
change your lines for example to:
wp_register_style('child-theme',get_bloginfo('stylesheet_directory').'/style.css');
http://codex.wordpress.org/Function_Reference/get_bloginfo
or possibly use some code like this in functions.php of the child theme:
function justwritechild_setup() {
add_action( 'wp_enqueue_scripts', 'justwritechild_css_files', 99 );
}
add_action( 'after_setup_theme', 'justwritechild_setup' );
function justwritechild_css_files() {
wp_enqueue_style( 'justwritechild_style', get_stylesheet_directory_uri() . '/style.css' );
}
danke, thank you – thank you – thank you, merci, gracias
it works !!!!!!!!!
i have entered in functions.php
<?php
add_action(‘wp_head’,’load_parent_style’,0);
function load_parent_style() {
wp_register_style(‘parent-theme’,get_bloginfo(‘template_directory’).’/style.css’);
wp_enqueue_style(‘parent-theme’);
}
function justwritechild_setup() {
add_action( ‘wp_enqueue_scripts’, ‘justwritechild_css_files’, 99 );
}
add_action( ‘after_setup_theme’, ‘justwritechild_setup’ );
function justwritechild_css_files() {
wp_enqueue_style( ‘justwritechild_style’, get_stylesheet_directory_uri() . ‘/style.css’ );
}
but a little problem whith smartphone view
in the smartphone view is the header row on the left and the text-book letter for letter with each other
where can i find this error ?
for any css error in mobile view you should take a look in ../assets/css/media-queries.css
thank you for the quick response.
and thank you for the realey nice theme.
the media-queries.css is in the original theme.
and i have not worked on it.
what should i do ?
child theme – justwrite makes me crazy – child theme
the error persists even after deleting and reinstalling all themes
– i´ve deleted everything. theme and child-theme.
– i´ve reinstall the mother-theme
– i´ve created a new child-theme
– everything back to the beginning
and what happens?
– the mother-theme work, even in the smartphone
– the child-theme works on pc
but the view in the smartphone: the same error as before uninstall
– smartphonecache was empty
– smartphone is reboot
error – at least – isolated
if I remove the text from the functions.php
function justwritechild_setup() {
add_action( ‘wp_enqueue_scripts’, ‘justwritechild_css_files’, 99 );
}
add_action( ‘after_setup_theme’, ‘justwritechild_setup’ );
function justwritechild_css_files() {
wp_enqueue_style( ‘justwritechild_style’,
get_stylesheet_directory_uri() . ‘/style.css’ );
}
is in the child-theme again everything ok
but then I can no longer edit the child css
where is the solution ?
the style.css in the child theme needs to be empty to start with, and should only contain any styles which are intended to overwrite styles from the parent theme.
the style.css in my ‘experimental’ child theme of ‘justwrite’ looks like this:
/*
Theme Name: JustWrite Child
Template: justwrite
*/
/* =Theme customization starts here
-------------------------------------------------------------- */
.post-content h2.title { font-style: italic; }
the last line is just an example to change the post titles to italic.
the code of functions.php in the child theme is (as I posted already earlier):
<?php function justwritechild_setup() {
add_action( 'wp_enqueue_scripts', 'justwritechild_css_files', 99 );
}
add_action( 'after_setup_theme', 'justwritechild_setup' );
function justwritechild_css_files() {
wp_enqueue_style( 'justwritechild_style', get_stylesheet_directory_uri() . '/style.css' );
}
?>
thanks for help!
when I enter the registrations in the style.css and functions.php
I can edit the style.css – wonderful!
but
the smartphone view is shot to pieces.
is with them the smartphone view correct?
what can it be?
justwrite does not work on i-pad and smartphone
just write the theme seems to have a weakness.
I create a child-theme and the i-pod and smartphone view is destroyed.
if so, this theme is useless.
where is the solution?
Hey everyone… problem solved! See my last post here. Cheers!