Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10441

    Dear Support-Team,

    we have setup a multilinugual website with your theme and now ran into a problem with cufon font replacement in chinese. Therefore we’d like to selectively switch off the replacement whenever the country code is set to chinese. We undestand that getting there some loop should check whether the language is set to zh, en, de or pt and then triggers “a switch” to set cufon on or off.

    We use qTranslate for displaying multilingual content which in our setting simply adds an ?lang=zh to the relevant url of the page.

    Any ideas to that?

    #68067

    please try the following:

    open the file includes/admin/register-styles.php

    at line 68 remove the last array



    array(
    'elements' => '.cufon_headings',
    'key' => 'cufon',
    'value' => avia_get_option('font_heading')
    ),

    now at the very bottom of the page add this code snippet:


    $language = $_GET;

    if($language != 'zh' )
    {
    $avia_config[] = array(
    'elements' => '.cufon_headings',
    'key' => 'cufon',
    'value' => avia_get_option('font_heading')
    ),
    }

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Selective Cufon Replacement’ is closed to new replies.