Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Ajay

    (@ajay)

    There might be a more universal solution to this if create a filter for the title and then you can write a function in your functions.php of your theme that will apply the filter.
    This will prevent you modifying the files.

    Instead of making the change you did earlier, replace line 90 of the latest version, add this:

    $title = apply_filters('crp_heading_title', $title);  // Apply filters so that this can be extended with custom functions
    if(!$is_widget) $output .= stripslashes($title);

    In your functions.php add:

    function crp_qtranslate($title) {
    if(function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) $title = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($title);
    return $title;
    }
    add_filter('crp_heading_title', 'crp_qtranslate');

    Please backup before you make the changes, since am not sure if this will definitely yield the result.

    Thread Starter fers

    (@fers)

    Perfect. Tried it and it works this way!
    Much more elegant and useful.

    Now the question is, will you apply this modification in your next release so that I don’t have to patch the plugin everytime you upgrade?

    Thanks!

    Plugin Author Ajay

    (@ajay)

    Great! That’s want I wanted to hear!
    I’ll implement this in the next release.

    I’ll mark this as resolved for now, but let me know if you have questions.

Viewing 3 replies - 16 through 18 (of 18 total)

The topic ‘CRP & QTRANSLATE’ is closed to new replies.