The functions.php file of my child theme not working
Hello,
I try to make changes on my ClassiPress theme , so I create a child from the tutorial theme :
http://docs.appthemes.com/classipres...r-classipress/
To get a workout I try to reproduce the examples in the tutorial including the one that is to change the width of images.
So I modify the child theme style.css file by adding :
Code:
.content_res img.attachment-ad-thumb {
max-width: 100px;
}
.post-block .post-right {
max-width: 433px;
}
.post-block img.attachment-medium {
width: 100px;
height: 75px;
}
And modify the functions.php file in the child theme by adding:
PHP Code:
function childtheme_landscape_thumbnails() {
add_image_size( 'ad-thumb', 100, 75, true );
}
add_action( 'appthemes_init', 'childtheme_landscape_thumbnails' );
But it does not work , an error message appears at the top of the site ( see screenshot) :
TP1.jpg
Could anyone help me please.
I really want to understand and then improve and make changes.
Thank you in advance ;
Driss