-
AuthorPosts
-
pavit Moderator
pavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 1, 2012 at 10:54 am #175668Customize your 404 page in only three stepsIn this little tutorial i will explain how to customize your 404 Page in only three steps for templates released before March 2012 – For Joomla 2.5
To make this customization you need these three files – error.php – error.css – 404.png
Those three files can be downloaded from the ja_puresite quickstart files
1) Copy in your folder /templates/your_template_name/ the file error.php
2) Copy in your folder /templates/your_template_name/css/ the file error.css
3) Copy in your folder /templates/your_template_name/images/ the file “404.png” *
* You can use another customized image instead of this one
7 users say Thank You to pavit for this useful post
2009tas Friend2009tas
- Join date:
- September 2014
- Posts:
- 28
- Downloads:
- 55
- Uploads:
- 4
- Thanks:
- 18
- Thanked:
- 1 times in 1 posts
April 4, 2012 at 9:14 pm #447366Hi Pavit,
How to change:
1. the 404 word inside the 404.png.
2. Article not foundThank you.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
April 5, 2012 at 6:33 am #447416Hi 2009tas
The 404 code in the file error.php is managed by this line of code
[PHP]<div class=”bug-code”><?php echo $this->error->getCode(); ?></div>[/PHP]
to change the message you can simply change the line of code as you prefer.
Example :
[PHP]<div class=”bug-code”>Your Message </div>[/PHP]
The “Article not found” instead is managed in the same file by this line of code
[PHP]<div id=”errorboxheader”><?php echo $this->error->getMessage(); ?></div>[/PHP]
to change the message you can simply change the line of code as you prefer.
Example :
[PHP]<div id=”errorboxheader”>Your message for content not found</div>[/PHP]
3 users say Thank You to pavit for this useful post
2009tas Friend2009tas
- Join date:
- September 2014
- Posts:
- 28
- Downloads:
- 55
- Uploads:
- 4
- Thanks:
- 18
- Thanked:
- 1 times in 1 posts
April 5, 2012 at 12:09 pm #447476Hi Pavit,
That was awesome. Thank youpranavpatil19 Friendpranavpatil19
- Join date:
- November 2011
- Posts:
- 64
- Downloads:
- 0
- Uploads:
- 14
- Thanks:
- 18
- Thanked:
- 2 times in 1 posts
May 6, 2012 at 7:54 pm #451705can i add ja-orices error.php – error.css – 404.png file ,i like ja orices theme
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
May 7, 2012 at 4:57 am #451762<em>@pranavpatil19 318014 wrote:</em><blockquote>can i add ja-orices error.php – error.css – 404.png file ,i like ja orices theme</blockquote>
I think you are referring to the Ja_Ores theme if is so the answer to your question is Yes you can customize the 404 page for the Ja_Ores for joomla 2.5 version.
pranavpatil19 Friendpranavpatil19
- Join date:
- November 2011
- Posts:
- 64
- Downloads:
- 0
- Uploads:
- 14
- Thanks:
- 18
- Thanked:
- 2 times in 1 posts
May 7, 2012 at 6:13 am #451772<em>@pavit 318078 wrote:</em><blockquote>I think you are referring to the Ja_Ores theme if is so the answer to your question is Yes you can customize the 404 page for the Ja_Ores for joomla 2.5 version.</blockquote>
i want to ask you,i use ja -karnoos and other two template,but i want to add error.css – 404.png file .for taht template can i use a-orices error.php – error.css – 404.png file -
AuthorPosts
This topic contains 8 replies, has 3 voices, and was last updated by pavit 12 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum