Hi,
I add "Read more" button in article content and enabled it in item and category settings but "read more" not appear on my page. I'm also using K2 with Game's template.
Thanks for helping
Hi,
I add "Read more" button in article content and enabled it in item and category settings but "read more" not appear on my page. I'm also using K2 with Game's template.
Thanks for helping
hi Saguaros,
I've already check the setting in the menu item and it's ok. I think the "game" template cause this isssue because when i use protostar template "read more" button is present and works.
Thanks for helping
nadegea Hi,
You can go to file i.e. /templates/gk_game/html/com_k2/templates/default/category_item.php and add this code around line 146 :
<?php if ($this->item->params->get('catItemReadMore')): ?>
<!-- Item "read more..." link -->
<div class="catItemReadMore">
<a class="k2ReadMore" href="<?php echo $this->item->link; ?>">
<?php echo JText::_('K2_READ_MORE'); ?>
</a>
</div>
<?php endif; ?>
above this :
<?php if($this->item->params->get('catItemDateModified') && $this->item->created != $this->item->modified): ?>
Hi Aman204,
I add the code but this is not working
nadegea Hi
As also suggested by @saguaros, You may kindly share the site direct link to respective page in order to have closer look
Also, Can you add your admin details in edit fields in order to examine the relative issue
For reference, You can follow thread post (5 point) procedure.
Hi aman204,
I'm sorry but my site is under construction and not in line yet. I'm working on my own PC with the GK game quickstart J!3. I hope you will be able to help me.
nadegea I'm sorry but my site is under construction and not in line yet.
Sorry but I am afraid that it is merely impossible to review and debug if the relative code as suggested has been added right without taking closer look at the respective file and other references
You may update us by replying to this forum thread itself when the site will be online so as to take closer look thereon
Please aman204, the site must be in line on september, and every things must be done before that.
I bought your gk_game quickstart and the "read more" button doesn't work on it. Could you please, test this on your own machine and let me no ?
Thanks a lot for your help
nadegea You may also attach the specific file i.e. /templates/gk_game/html/com_k2/templates/default/category_item.php in zip format wherein edits have been proposed here in order to enable me to review the same or replace the attached file after unzipping it with your current one
Would suggest to take backup of your current file in case rollback needed whilst facing issues e.t.c
Here's the file
nadegea Hi
Had posted the solution after replicating the same on local install. Ref: Screenshot where the "read more" tab renders fine after adding the specific php code in template override file
I can see the code being added fine in respective attached file however, merely impossible to review, check and diagnose without having closer look by way of live site url.
You may also check if file permissions are set right for respective file/folder to be either chmod 777 or 755
hi aman204,
Great it's working with modules like : Tabs GK, News Show Pro GK or either, please just create menu Item type category Blog, put a article with a "read more" in this category and look ! Thanks
hi aman206, appologies ! It's works with the code you give me, i haven't clean the cache !
Thanks a lot