Keyword

Issue: Move created date of article by subtemplate

  • J Davies
  • J Davies's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 week ago #118718 by J Davies
Hello

I have recently put K2 onto my website and I am very impressed with the service. However I am having some issues with creating a sub template.

I have been following the OStraining.com youtube tutorial video:

www.youtube.com/watch?v=vprpuc5pLHI

and I have created the new folder for the sub template, installed the CSS4K2 plugin and I have been able to edit the CSS successfully with implementing a margin beneath the header and changing the title font sizes of the articles.

However, I am having problems with moving the location of the 'item created date' from above the title to below the author via editing the item.php file.

I have changed the code of the item.php file in the sub template folder from:
www.inferis.co.uk

I have searched the internet for a good couple of hours in an attempt to find a solution but without success.

I am new to PHP and CSS so please answer in layman's terms :blush:

Thank you in advance for any assistance you can offer on this matter.

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 1 week ago #118719 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Issue: Move created date of article by subtemplate
Hi,

Make sure that:
1- You have created the templates inside templates/yourtemplate/html/com_k2/tempaltes
2- You have selected the subtemplate in the category parameters.
3- Some K2 plugins override the subtemplate feature and have their own templates inside the plugin directory, so you have to edit the plugin template file.

Hope this can help.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.

  • J Davies
  • J Davies's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 week ago #118720 by J Davies
Hello,

Thank you very much for your speedy reply!

1. I have created the sub template folder in:

/templates/ijoomla06/html/com_k2/templates

2. I have selected the correct sub template in the category parameters. I can be sure of this because the .CSS file is being used from the sub template to adjust the font and header size on the article and is the new CSS file is noted in the source code below the default K2 CSS. However the edited item.php file is not being adhered to.

3. This was a fresh install of K2 onto my server yesterday. The only additional K2 plugin I have installed is the CSS4K2 plugin. Or are you referring to native K2 plugins that need to be disabled?

Thank you for your help.

Please Log in or Create an account to join the conversation.

  • J Davies
  • J Davies's Avatar Topic Author
  • Offline
  • New Member
More
11 years 3 days ago #118721 by J Davies
Does anyone know of a solution to this issue?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum