Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • jreimer Friend
    #187028

    Hello,

    How can I remove the automatic image alignment on the front page?

    Thanks,
    Dan.


    1. image-alignment
    Ninja Lead Moderator
    #490929

    Right now its difficult to guess the issue and give solution to you with only the screenshot

    If you don’t want to publish URL of your site on the forum, you can pm me it. I shall check it for you

    Ninja Lead Moderator
    #490971

    I have checked the issue on your site. The following step will help you to update image alignment on the front page

    Open templates/ja_travel/css/template.css file

    From

    .blog-image { left: 4px; position: absolute; text-align: right; }

    Change to

    .blog-image { left: 4px; position: absolute; text-align: right; display: none !important;}

    Remember to clear cache from Admin area.

    Let me know the result

    jreimer Friend
    #491050

    This removed the images completely….so it didn’t work. I just want to remove the re-alignment. On some of the other templates I had to remove something from the /html/com_content/featured/default.php file…can I remove something from there to fix this?

    jreimer Friend
    #491051

    Fixed it.

    Removed:

    <?php
    //Get out all images
    $regex = "/<img[^>]*>/";
    $image = '';
    //print_r($this->item);die();
    if (preg_match_all($regex,$this->item->introtext, $matches)) {
    $this->item->introtext = preg_replace ($regex, '', $this->item->introtext);
    $image = implode ("n", $matches[0]);
    }

    ?>

    From default_item.php

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

This topic contains 5 replies, has 2 voices, and was last updated by  jreimer 11 years, 7 months ago.

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