Results 1 to 6 of 6

Thread: unhooking or removing default theme-action.php actions using child theme

  1. #1
    Thread Starter
    Veteran almightyeric's Avatar
    Join Date
    Aug 2011
    Location
    Nothern CA, USA
    Posts
    416
    Thanks
    56
    Thanked 19 Times in 16 Posts

    unhooking or removing default theme-action.php actions using child theme

    The ClassiPress file, includes/theme-actions.php, contains function definitions and calls to add_action().
    For example, the file contains this code:

    PHP Code:
    add_action'appthemes_after_post_content''cp_do_loop_stats' ); 
    My question is:
    In a child theme, how can I remove this action and add my own action (i.e. a function I define) instead?

    I tried doing the following in my child theme's functions.php file:

    PHP Code:
    remove_action'appthemes_after_post_content''cp_do_loop_stats' ); 
    ...but it does not appear to me to have had any effect on the behavior of the site. The stats are still displayed.

  2. #2
    serno's Avatar
    Join Date
    Apr 2013
    Location
    Denmark
    Posts
    31
    Thanks
    22
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Veteran ejikoala's Avatar
    Join Date
    Sep 2009
    Location
    United States
    Posts
    345
    Thanks
    6
    Thanked 19 Times in 15 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Was this post helpful? Click the "Thanks" button below.

  4. #4
    Thread Starter
    Veteran almightyeric's Avatar
    Join Date
    Aug 2011
    Location
    Nothern CA, USA
    Posts
    416
    Thanks
    56
    Thanked 19 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Expired Customer brazz's Avatar
    Join Date
    Feb 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    talent's Avatar
    Join Date
    Jul 2011
    Location
    United Kingdom
    Posts
    3,494
    Thanks
    74
    Thanked 553 Times in 501 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...


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Removing the price tag when using a child theme in Classipress
    By jeffagogo in forum ClassiPress General Discussion
    Replies: 2
    Last Post: October 16th, 2013, 04:06 AM
  2. theme-actions edits for Child Template
    By davidzack in forum ClassiPress General Discussion
    Replies: 2
    Last Post: August 6th, 2013, 02:41 PM
  3. child theme - functions - theme actions
    By pauro in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: January 3rd, 2012, 07:56 AM
  4. [SOLVED] style-default.css into Child Theme
    By cgervereau in forum JobRoller General Discussion
    Replies: 16
    Last Post: July 11th, 2011, 07:54 PM
  5. Child Theme - logout redirection to default theme issue
    By cgervereau in forum ClassiPress General Discussion
    Replies: 3
    Last Post: September 1st, 2010, 02:48 AM