Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
paky50 Friend
paky50
- Join date:
- March 2015
- Posts:
- 94
- Downloads:
- 0
- Uploads:
- 63
- Thanks:
- 22
- Thanked:
- 1 times in 1 posts
January 19, 2016 at 5:37 pm #857751Hi,
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
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 19, 2016 at 7:23 pm #858158Hi,
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
-
AuthorPosts
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
Jump to forum