Results 1 to 3 of 3

Thread: The functions.php file of my child theme not working

  1. #1
    Thread Starter
    driss33110's Avatar
    Join Date
    Oct 2013
    Location
    Bordeaux
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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'10075true );
    }
    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

  2. #2
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  3. #3
    Thread Starter
    driss33110's Avatar
    Join Date
    Oct 2013
    Location
    Bordeaux
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I create a child step-functions.php file?
    By rlawrie in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 18th, 2014, 11:52 AM
  2. [SOLVED] functions.php for child-theme
    By lunovis in forum Report JobRoller Bugs
    Replies: 2
    Last Post: November 15th, 2012, 09:14 AM
  3. theme-functions.php not working inside child theme folder
    By jobortunity in forum JobRoller General Discussion
    Replies: 6
    Last Post: November 6th, 2012, 04:24 AM
  4. [SOLVED] vantage theme functions.php file missing closing php tag?
    By bleem in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: August 2nd, 2012, 06:06 AM
  5. theme-functions.php no such file error message
    By byung in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: July 16th, 2011, 09:56 AM