Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • paky50 Friend
    #857751

    Hi,

    Why if i insert an image in my article, dont see it in frontend?

    I need to insert an image in my article so i can share on FB my artcile with her image.

    Many thanks


    1. screen1
    2. screen2
    Ninja Lead Moderator
    #858158

    Hi,

    This way will help you to show the image intotext

    Open templates/ja_jason/html/com_content/article/porfolio.php file

    find

    <div class="item-des">
    <?php 
      $text = preg_replace("/<img[^>]+\>/i", " ", $this->item->introtext);
      echo $text;       
    ?>
    </div>

    change to

    <div class="item-des">
    <?php 
        echo $this->item->introtext;
    ?>
    </div>

    About the image wants to show on FB, you need to make sure the article on your site must <meta property="og:image" content="THE LINK TO YOUR IMAGE"/> tag, you can have a look at more details here

    Regards

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

This topic contains 1 reply, has 2 voices, and was last updated by  Ninja Lead 8 years, 10 months ago.

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