Written by & Read more
March 2014 WordPress Theme
- GK User
- Sat Feb 06, 2016 10:53 am
Hi!
1. How to disable "Written by" on a post page:
2. How to disable "Read more" on a latest post page (like you have on a demo site of this theme)?
1. How to disable "Written by" on a post page:
2. How to disable "Read more" on a latest post page (like you have on a demo site of this theme)?
-
- Senior Boarder
- Joshua M
- Mon Feb 08, 2016 9:09 am
Hi,
Regarding your questions:
1. When you are editing your post page, you can disable "Show author:" option from "Post additional params" metabox.
2. Please edit News2/content-archive.php file and remove the following fragment:
Regarding your questions:
1. When you are editing your post page, you can disable "Show author:" option from "Post additional params" metabox.
2. Please edit News2/content-archive.php file and remove the following fragment:
- 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; ?>
-
- Moderator
- GK User
- Mon Feb 08, 2016 9:21 am
Is it possible to remove "Written by" at once on all pages?
-
- Senior Boarder
- Joshua M
- Mon Feb 08, 2016 10:09 am
Yes, please edit News/gavern/helpers/helpers.layout.fragments.php fiel and change this fragment
from gk_post_meta function, into:
- Code: Select all
if($params_aside) {
$params_aside = unserialize(unserialize($params_aside));
$param_aside = $params_aside['aside'] == 'Y';
$param_date = $params_aside['date'] == 'Y';
$param_category = $params_aside['category'] == 'Y';
$param_tags = $params_aside['tags'] == 'Y';
$param_author = $params_aside['author'] == 'Y';
$param_comments = $params_aside['comments'] == 'Y';
}
from gk_post_meta function, into:
- Code: Select all
if($params_aside) {
$params_aside = unserialize(unserialize($params_aside));
$param_aside = $params_aside['aside'] == 'Y';
$param_date = $params_aside['date'] == 'Y';
$param_category = $params_aside['category'] == 'Y';
$param_tags = $params_aside['tags'] == 'Y';
$param_author = false;
$param_comments = $params_aside['comments'] == 'Y';
}
-
- Moderator
4 posts
• Page 1 of 1