-
AuthorPosts
-
January 12, 2016 at 12:31 pm #845491
Hi,
for the homepage, the featured articles:
Is it possible for the big leading article on the top left to show more text?
thx
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 13, 2016 at 8:52 am #846471Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 13, 2016 at 3:28 pm #846765Hi
Go to templates/ja_magz_ii/html/com_content/featured/default_item.php
Find this code`
$this->item->introtext = substr(($this->item->introtext), 0, 200);
Increase the value from 200 to 400 . save and check.
January 14, 2016 at 10:01 am #847597Thanks!
But there’s still something strange: even when I increase the value to 1000, it keeps cutting off the last word and puts dots in its place ( now I’ve manually typed "…" at the end of the article so it doesn’t remove the last word).Also another question regarding the same section: In the article some words are , and there are also different paragraphes, but it seems to automatically remove those elements. Can I do something about this?
thx
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 14, 2016 at 10:21 am #847632Hi
go to the same file
find this code$this->item->introtext = substr(($this->item->introtext), 0, 200); $this->item->introtext = substr($this->item->introtext, 0, strrpos($this->item->introtext, ' ')) . " ..."; echo $this->item->introtext;
replace it with
$this->item->introtext = substr(($this->item->introtext)); echo $this->item->introtext;
Let me know if it helps
January 15, 2016 at 7:22 am #848440Hi,
No, I get this: Warning: substr() expects at least 2 parameters, 1 given in /home/joomla10/public_html/tuinhuizenfabrikant2/templates/ja_magz_ii/html/com_content/featured/default_item.php on line 77
my original code looks like this btw:
$this->item->introtext = substr(strip_tags($this->item->introtext), 0, 200); $this->item->introtext = substr($this->item->introtext, 0, strrpos($this->item->introtext, ‘ ‘)) . " …"; echo $this->item->introtext;
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 15, 2016 at 2:51 pm #848742Hi
i replaced this code<?php $this->item->introtext = substr(($this->item->introtext), 0, 400); $this->item->introtext = substr($this->item->introtext, 0, strrpos($this->item->introtext, ' ')) . " ..."; echo $this->item->introtext; ?>
into this
<?php $this->item->introtext = ($this->item->introtext); echo $this->item->introtext; ?>
And its working fine at my local system .
If it not solve issue , you post your site details via private reply . I will fix it directly on your site .January 19, 2016 at 7:58 am #852592Yes it works! Thanks Pankaj.
A last question concerning these adjusted php-files:
Will these modifications be kept when updating the template? Is there something like php overrides, like the custom.css we have for the stylesheets?Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
January 19, 2016 at 8:09 am #852637Hi
You need to save the custom changes , it can be override on template update .
Try to make override in /local folder if its not work you need save changes and apply them again when they override ..
Path : /ja_magz_ii/local/html/com_content/featured/default_item.phpAuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 9 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
leading article homepage
Viewing 10 posts - 1 through 10 (of 10 total)