- Posts: 20
COMMUNITY FORUM
[SOLVED] problem to override item.php
- Mohsen Babaei
-
Topic Author
- Offline
- Junior Member
I copied default k2 template files to templates/joomltemplate/html/com_k2/default.
I can override all file in this folder except item.php.
I changed the code in item.php and saved it. but nothing change in item page.
What is the problem?
I use k2mart too. do you thing i have to edit another file to override k2 item page?
thanks
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Mohsen Babaei
-
Topic Author
- Offline
- Junior Member
- Posts: 20
helloLefteris Kavadas wrote: Hi. Please ensure that the category of this item is setup to use the default template and not another one. If you need to override K2mart block then you need to take a look at K2mart documentation at www.joomlaworks.net/docs/k2mart
I am sure that category of this item is setup to default template but when i change item title h2 tag to h1 in default item.php and test it by webdeveloper tag is still h2.
I rename default folder in templates/joomltemplate/html/com_k2 and also in components/com_k2/templates to defalt1. category list disappeared in my site but item pages do not disappeared.
I think item.php load from another folder.
I use k2mart too.
i wonder if you help me
Regards
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
1. Ensure that you have the latest version of K2 installed ( 2.6.7 currently )
2. Ensure that you have supported version of Joomla!. Currently supported versions of Joomla! are 1.5.26, 2.5.18 and 3.2.2.
3. Check that the category of this item is not inheriting settings from another category.
4. Check that there is no menu link overriding the category setting.
5. Check that the changes you made to the file are applied ( the file is saved indeed and you don't get a save error )
6. Check the file permissions. They should be set to 644.
Please Log in or Create an account to join the conversation.
- Tracey
-
- Offline
- Senior Member
- Posts: 47
Joomla! v3.5.1
Gantry5 - Hydrogen Template
k2 v2.7.0
Please Log in or Create an account to join the conversation.
- Mohsen Babaei
-
Topic Author
- Offline
- Junior Member
- Posts: 20
hello and thanks for replayingLefteris Kavadas wrote: Since we have built several sites and never faced this issue, here are some steps that might help:
1. Ensure that you have the latest version of K2 installed ( 2.6.7 currently )
2. Ensure that you have supported version of Joomla!. Currently supported versions of Joomla! are 1.5.26, 2.5.18 and 3.2.2.
3. Check that the category of this item is not inheriting settings from another category.
4. Check that there is no menu link overriding the category setting.
5. Check that the changes you made to the file are applied ( the file is saved indeed and you don't get a save error )
6. Check the file permissions. They should be set to 644.
I have checked all of steps. but i still have problem.
May i send you admin and cpanel password in privet to check it?
Please Log in or Create an account to join the conversation.
- Mohsen Babaei
-
Topic Author
- Offline
- Junior Member
- Posts: 20
Hello I cleared joomla and browser cache but I have still problemTracey wrote: Hi, also try to clear your joomla and browser cache.
Please Log in or Create an account to join the conversation.
- Mohsen Babaei
-
Topic Author
- Offline
- Junior Member
- Posts: 20
I find the problem.
open this link:
getk2.org/community/New-to-K2-Ask-here-first/165347-SOLVED-Cant-override-itemphp#190755
Please Log in or Create an account to join the conversation.