test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • spiralgr Friend
    #209067

    Hello again as you can see in English language the last module in section-2 in home page has always bold text . Why is that happening?

    Ninja Lead Moderator
    #578229

    I solved the problem directly on your site with the solution below

    Open templates/ja_hotel/html/layouts/joomla/content/intro/default.php file

    find and change

    <?php
    $max_length = $aparams->get('intro_limit');
    $s = $item->introtext;
    if (strlen($s) > $max_length) {
    $offset = ($max_length - 3) - strlen($s);
    $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
    }
    echo $s;
    ?>

    to

    <?php
    $max_length = $aparams->get('intro_limit');
    $s = strip_tags($item->introtext);
    if (strlen($s) > $max_length) {
    $offset = ($max_length - 3) - strlen($s);
    $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
    }
    echo $s;
    ?>

    You can check it again let me know if it helps

    Ninja Lead Moderator
    #644520

    I solved the problem directly on your site with the solution below

    Open templates/ja_hotel/html/layouts/joomla/content/intro/default.php file

    find and change

    <?php
    $max_length = $aparams->get('intro_limit');
    $s = $item->introtext;
    if (strlen($s) > $max_length) {
    $offset = ($max_length - 3) - strlen($s);
    $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
    }
    echo $s;
    ?>

    to

    <?php
    $max_length = $aparams->get('intro_limit');
    $s = strip_tags($item->introtext);
    if (strlen($s) > $max_length) {
    $offset = ($max_length - 3) - strlen($s);
    $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
    }
    echo $s;
    ?>

    You can check it again let me know if it helps

    Ninja Lead Moderator
    #743152

    I solved the problem directly on your site with the solution below

    Open templates/ja_hotel/html/layouts/joomla/content/intro/default.php file

    find and change

    <?php
    $max_length = $aparams->get('intro_limit');
    $s = $item->introtext;
    if (strlen($s) > $max_length) {
    $offset = ($max_length - 3) - strlen($s);
    $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
    }
    echo $s;
    ?>

    to

    <?php
    $max_length = $aparams->get('intro_limit');
    $s = strip_tags($item->introtext);
    if (strlen($s) > $max_length) {
    $offset = ($max_length - 3) - strlen($s);
    $s = substr($s, 0, strrpos($s, ' ', $offset)) . '...';
    }
    echo $s;
    ?>

    You can check it again let me know if it helps

    spiralgr Friend
    #578289

    Thanks, yes it is solved

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

This topic contains 5 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum