This topic has 4 replies, 2 voices, and was last updated 11 years by PatrickCelt.

  • Author
  • #3999
     PatrickCelt
    Participant

    Hi Guys,
    i have to use latin extended subset for special language characters.
    Where can i add the code from Google WebFont?

    eg. <link href=’http://fonts.googleapis.com/css?family=Libre+Baskerville:400,400italic&subset=latin,latin-ext&#8217; rel=’stylesheet’ type=’text/css’>

    Cheers!

    #4034
     SQadmin
    Keymaster

    Hi,
    Choosing the font from Sweetdate -> Styling options doesn’t render those characters correctly?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #4078
     PatrickCelt
    Participant

    No – there is still lack of special characters.
    I found framework/options/fields/typography/field_typography.php file.
    There is a short script:


    <script type="text/javascript">
    jQuery(document).ready(function() {
    var googlefontlink = "http://fonts.googleapis.com/css?family=<?php echo $this->value[$heading]['font']; ?>";
    if (jQuery("link[href*='<?php echo $this->value[$heading]['font']; ?>']").length === 0){
    jQuery('link:last').after('<link href="' + googlefontlink + '" rel="stylesheet" type="text/css">');
    }

    which is creating link to fonts.googleapis.com.
    I need to add here ( after + googlefontlink + ) additional parameter: &subset=latin,latin-ext
    I dont know javascripting much so im looking for advice,
    thanks

    #4119
     SQadmin
    Keymaster

    Hi,
    Please replace the contents of sweetdate/framework/classes/SQueen.php with https://archived.seventhqueen.com/files/SQueen.txt

    Then add to your sweetdate-child/functions.php:

    COPY CODE
    
    add_filter('kleo_gfont_extra_params','my_special_chars');
    function my_special_chars() {
    return '&subset=latin,latin-ext';
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #4267
     PatrickCelt
    Participant

    Works 🙂 thanks a lot guys

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

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?