I need a "string" source + I need to make the theme RTL

This topic has 11 replies, 3 voices, and was last updated 9 years, 5 months ago ago by Jack Richardson

  • Avatar: ADDAUI
    ADDAUI
    Participant
    July 11, 2015 at 21:03

    Hi …

    I have two issues :

    first issue:

    I want to translate the strings to arabic I managed to translate most of the site to arabic
    but there is two strings that I can’t find their resources ..

    I am using Loco plugin to translate, I also looked in the default.po provided by the theme but I couldn’t find them

    1-Type  here ..

    the string “Type here..”

    2-Select Options

    the string “Select Options”

    please tell me where to find these strings !!
    ———————————————————-

    second issue :

    when I login as admin the site was RTL because I am using WP in arabic language ..
    here I am logged in as admin
    RTL

    however I wanted to test the site, So I made a test account but when I logged in with the test account the site became LTR and som content messed up ..
    LTR

    is there a way to force the theme to be RTL always ??

    10 Answers
    Avatar: ADDAUI
    ADDAUI
    Participant
    July 11, 2015 at 21:14

    sorry I should have mentioned
    the string “select options” that need translation ..
    is the one from the whishlist page !!

    there is the same string on the products page but it’s translated fine …

    Avatar: Eva
    Eva Kemp
    Support staff
    July 13, 2015 at 08:18

    Hello,

    1. “Type here…” text is present in the file wp-content/themes/classico/woosearchform.php.

    2. “Select options” text can be found in .po file of Wishlist plugin. You need translate it in wp-content/languages/plugins directory.

    3. Please provide us with wp-admin panel credentials for admin and test account.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: ADDAUI
    ADDAUI
    Participant
    July 13, 2015 at 12:52

    1- Thanks it works ..

    2- I’ll try it once I get to my ftp client ..

    3- see Private Content …
    (BTW the site is always RTL except when I log-in with a customer account)

    Thanks

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    July 13, 2015 at 17:51

    Hello,

    3. I’ve added this code in Global Custom CSS:

    .woocommerce-account.logged-in .content {
       direction: rtl;
    }

    Please check My Account page now.

    Regards,
    Eva Kemp.

    Avatar: ADDAUI
    ADDAUI
    Participant
    July 13, 2015 at 21:15

    that is awesome thanks …

    every thing is working properly now ….

    just two little questions…

    -the mega menu is very big and go out of the screen in small screen/dimension

    what CSS class/attribute should I change to make it less wide ???

    -in the contact me page I am trying to remove Website input label
    and the captcha-block ???

    how do i do that ?? I can’t find the template in the theme folder

    thanks again

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 14, 2015 at 07:17

    Hello,

    Sorry but I don’t see any issues with mega menu. Could you please show a screenshot?
    Are you resizing browser window or checking on different devices?
    If you’re resizing a browser then you need to reload a page.

    To remove “Website” field from contact form you need edit the file wp-content/themes/classico/framework/shortcodes/contact_form.php (line 42) and remove the code

    <div class="form-group">
     <p class="form-name">
     <label for="contact-website" class="control-label"><?php _e('Website', ET_DOMAIN) ?></label>
     <input type="text" name="contact-website" class="form-control" id="contact-website">
     </p>
     </div>

    To remove captcha you need comment or delete the code in the same file (line 16):

    $captcha_instance = new ReallySimpleCaptcha();
    $captcha_instance->bg = array( 190, 190, 190 );
    $word = $captcha_instance->generate_random_word();
    $prefix = mt_rand();
    $img_name = $captcha_instance->generate_image( $prefix, $word );
    $captcha_img = ET_BASE_URI . ET_CODE . 'tmp/' . $img_name;

    and the file wp-content/themes/classico/framework/theme-functions.php (line 804) comment the code $captcha_instance = new ReallySimpleCaptcha();

    Best regards,
    Jack Richardson.

    Avatar: ADDAUI
    ADDAUI
    Participant
    July 14, 2015 at 15:30

    I tested the mega menu on a 1280*720 monitor …
    and here is a screen shot after I resized the browser and refreshed the page …

    Avatar: Eva
    Eva Kemp
    Support staff
    July 15, 2015 at 12:30

    Hello,

    Please try to use this code in Global Custom CSS:

    @media only screen and (min-width: 992px) {.menu .item-design-full-width .nav-sublist-dropdown ul > li {
      float: right !important;
    }}

    Regards,
    Eva Kemp.

    Avatar: ADDAUI
    ADDAUI
    Participant
    July 16, 2015 at 22:54

    Thanks I fixed it by adding this code

    .menu .nav-sublist-dropdown {
    	right: -445px;
    }
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 17, 2015 at 07:06

    Hello,

    We’re glad you’ve managed to resolve the issue.

    Have a nice day.

    Best regards,
    Jack Richardson.

  • Viewing 11 results - 1 through 11 (of 11 total)

The issue related to '‘I need a "string" source + I need to make the theme RTL’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.