How to keep read more button off category page ?

March 2014 WordPress Theme
GK User
Mon Jun 16, 2014 7:29 pm
This is what I have at the moment:

Image



I would like the READ MORE button to be gone like you have on your demo like this

Image
User avatar
Expert Boarder

GK User
Tue Jun 17, 2014 7:27 am
Hello,

Please edit News2/content-archive.php file and replace this fragment (around line 36)

Code: Select all
<a href="<?php echo get_permalink(get_the_ID()); ?>" class="readon btn"><?php _e('Read more', GKTPLNAME); ?></a>

with:

Code: Select all
<?php if (is_front_page()) : ?>
<a href="<?php echo get_permalink(get_the_ID()); ?>" class="readon btn"><?php _e('Read more', GKTPLNAME); ?></a>
<?php endif; ?>


This fix will be added in the next theme update, thanks for your feedback.
User avatar
Moderator

GK User
Wed Jun 18, 2014 7:00 am
Thank you for the fix,

do you mean I'll lose all the little fixes I did on my own since I'm not using a Child Theme ? I tried to apply the Chlid Theme yesterday but all hell broke loose on the front end. Is there instructions somewhere on how to apply a Child Theme for News2 or any other theme. I must have missed that in the documentation.

Thank you again for your kind help.
User avatar
Expert Boarder

GK User
Wed Jun 18, 2014 7:07 am
User avatar
Expert Boarder

GK User
Wed Jun 18, 2014 7:11 am
Hi,

Did you check this article about the child themes?
http://www.gavick.com/documentation/wor ... ld-themes/

If you are not using Child theme and do modifications, you'll have to update manually each file, during the theme update. (every update has changelog with list of the changed files).

Of course if you add only css modifications into css/override.css, there's no problem, you'll have to copy this file, update theme, then restore override.css file.

If you want to use child theme, activate in in your Dashboard -> themes section (if you didn't copy any files into your News2-Child directory, all files are loaded from News2 (parent).
Remember about the directory structure, e.g if you want to change content-archive.php file copy it into News2-Child directory, make your changes and now this file will be loaded from the News2-Child, rest files from News2. Copy only files which you want to change.
User avatar
Moderator


cron