Results 1 to 5 of 5

Thread: Child functions.php error

  1. #1
    Thread Starter
    Expired Customer rlawrie's Avatar
    Join Date
    Jun 2013
    Location
    United Kingdom
    Posts
    29
    Thanks
    1
    Thanked 2 Times in 1 Post

    Child functions.php error

    I'm trying to unhoook an appthemes function and have just started to add the custom function (but am not unhooking the appthemes one yet or using my new one) but am receiving this error message on all pages now:

    Parse error: syntax error, unexpected '}' in /home/officeke/public_html/wp-content/themes/classipress-child/functions.php on line 49

    The code I have added to the bottom of my functions.php file is:

    Code:
    <?php 
    
    // use this custom code to remove the tags or no tags text from the bottom of adverts
    function cp_blog_post_meta_footer_custom() {
    global $post, $cp_options;
    	if ( ! is_singular( array( 'post', APP_POST_TYPE ) ) )
    		return;
    ?>
    
    <?php
    
    }
    
    ?>
    Strangely, if the code is this:

    Code:
    <?php 
    
    // use this custom code to remove the tags or no tags text from the bottom of adverts
    function cp_blog_post_meta_footer_housekeys() {
    global $post, $cp_options;
    	if ( ! is_singular( array( 'post', APP_POST_TYPE ) ) )
    		return;
    
    }
    
    ?>
    I don't get the error. The only difference is the removal of 2 lines of code:

    Code:
    ?>
    
    <?php
    Can anyone help please - I'm sure this is really simple!

    Thanks,

    Robin

  2. #2
    Thread Starter
    Expired Customer rlawrie's Avatar
    Join Date
    Jun 2013
    Location
    United Kingdom
    Posts
    29
    Thanks
    1
    Thanked 2 Times in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,100
    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)

  4. #4
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,499
    Thanks
    75
    Thanked 556 Times in 504 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  5. #5
    Thread Starter
    Expired Customer rlawrie's Avatar
    Join Date
    Jun 2013
    Location
    United Kingdom
    Posts
    29
    Thanks
    1
    Thanked 2 Times in 1 Post
    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. Replies: 8
    Last Post: July 1st, 2013, 06:00 AM
  2. Adding code in Child theme Functions.php shows Google Map error on Static page
    By spyridon07 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: June 30th, 2013, 09:27 AM
  3. Child theme functions
    By benkovic in forum Vantage General Discussion (Legacy)
    Replies: 10
    Last Post: May 8th, 2013, 07:15 AM
  4. [SOLVED] functions.php for child-theme
    By lunovis in forum Report JobRoller Bugs
    Replies: 2
    Last Post: November 15th, 2012, 08:14 AM
  5. directory functions for child themes
    By smitsc in forum Report Vantage Bugs (Legacy)
    Replies: 1
    Last Post: October 9th, 2012, 07:50 PM