Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter sin.sfx

    (@sinsfx)

    HI,
    Tried directly in the theme folder, and yes, works !

    Chouby, my Thanks.

    Thread Starter sin.sfx

    (@sinsfx)

    HI,
    same directory as all others css.
    here is the declaration for path

    define(‘CSSPATH’, get_template_directory_uri() . “/css/”);

    and

    function load_js_scripts() {
    if ( !is_admin() ) {

    // CSS
    wp_enqueue_style(‘general-styles’, CSSPATH . ‘style.css’);
    wp_enqueue_style(‘superfish’, CSSPATH . ‘superfish.css’);
    wp_enqueue_style(‘tweet’, CSSPATH . ‘jquery.tweet.css’);
    wp_enqueue_style(‘flexslider’, CSSPATH . ‘flexslider.css’);
    wp_enqueue_style(‘lofslider’, CSSPATH . ‘lof-slider.css’);
    wp_enqueue_style(‘tip-twitter’, JSPATH . ‘poshytip-1.1/src/tip-twitter/tip-twitter.css’);
    wp_enqueue_style(‘tip-twitter-yellow’, JSPATH . ‘poshytip-1.1/src/tip-yellowsimple/tip-yellowsimple.css’);
    wp_enqueue_style(‘prettyPhoto’, JSPATH . ‘prettyPhoto/css/prettyPhoto.css’);
    wp_enqueue_style(‘skin’, CSSPATH . ‘skin.css’);
    wp_enqueue_style(‘lessframework’, CSSPATH . ‘lessframework.css’);
    //code mine
    if ( is_rtl() ) {
    wp_enqueue_style(‘rtl’, CSSPATH . ‘rtl.css’);
    }
    }

    Thread Starter sin.sfx

    (@sinsfx)

    Morning,
    I tried that, but the rtl.css didn’t loaded !
    i found a solution to load it, i used condition with is_rtl()

    if ( is_rtl() ) {
    wp_enqueue_style(‘rtl’, CSSPATH . ‘rtl.css’);
    }

    Im still confused, how to do it on the right way ?

    Thanks again Chouby

    Thread Starter sin.sfx

    (@sinsfx)

    HI Chouby,
    I Tried that, but the file (rtl.css) is always loaded for both languages.

    here is what i did :

    i declared in functions.php

    wp_enqueue_style(‘rtl’, CSSPATH . ‘rtl.css’);

    i created the file rtl.css at css folder of the theme

    (i tried also without declaration in functions.php, just created the rtl.css but didn’t loaded )

    i missed something maybe ?

    Thank you

    Thread Starter sin.sfx

    (@sinsfx)

    HI,
    Unfortunately i can’t change the actual theme, i’ll try the solution of conditional css within the header, maybe it’s the only solution.
    (i suggeste it for the next update of the plugin it will be helpful for us )
    For the widget text thx it solved my problem.
    Other question im using the moodle course list widget, the title is translated well but not the form’s login, any suggestion or solution to translate those input elements ?
    Thank you Chouby.

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