Results 1 to 2 of 2

Thread: Best way to override jr_* functions

  1. #1
    Thread Starter
    jemcapon's Avatar
    Join Date
    Jan 2012
    Location
    New Zealand
    Posts
    83
    Thanks
    4
    Thanked 3 Times in 3 Posts

    Best way to override jr_* functions

    Hi,
    I would like to override the output of functions like jr_job_author(), jr_title() in a child theme. These functions are defined in 'includes/theme-functions.php' which is loaded with require() so I cannot override it in a child theme and none of the available hooks seem to allow me to alter the output of these functions either. I could override all templates that call these functions but this seems a somewhat backward-*** way of doing it.

    Is my only alternative here to alter the JobRoller core theme? I am hoping to avoid this (for the usual maintainability reasons).

    If so, can I suggest that these functions be wrapped in function_exists() checks in a future release so that they can be overridden in child themes.

    Thanks for your time,
    /Eoin/

  2. #2
    Senior Member thesiege's Avatar
    Join Date
    Aug 2011
    Location
    the Netherlands
    Posts
    122
    Thanks
    3
    Thanked 17 Times in 15 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. child themes css override
    By binh in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: May 22nd, 2012, 05:31 AM
  2. Still trying to override TEMPLATEPATH with STYLESHEETPATH
    By mcasdorph in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: May 17th, 2012, 09:50 PM
  3. [SOLVED] Child Theme: override the variables
    By einstein in forum ClassiPress General Discussion
    Replies: 3
    Last Post: March 25th, 2012, 05:04 PM
  4. Does membership override Ad expiry days? Thanks
    By nikthompson in forum Report ClassiPress Bugs
    Replies: 11
    Last Post: January 24th, 2012, 05:50 AM
  5. Reasoning behind putting everything into functions and sub functions?
    By rodeoramsey in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: November 16th, 2011, 12:05 PM