Move categories, tags and author from left to bottom

January 2013 WordPress Theme
GK User
Thu Jan 17, 2013 11:21 am
n.jpg


See the marked area in the image, I don't want any thing on the left. I want all the information at the bottom of the post. How can it be done.
User avatar
Senior Boarder

GK User
Thu Jan 17, 2013 3:36 pm
Hi,

In the content-*.php files you have to move line:

Code: Select all
<?php gk_post_meta_sidebar(); ?>


after this line:

Code: Select all
<?php the_content(); ?>


of course you have to adjust the CSS styling of this part to your needs.
User avatar
Administrator

GK User
Sun Feb 24, 2013 5:42 am
Can I show only tags at the bottom of the article?
User avatar
Senior Boarder

GK User
Sun Feb 24, 2013 7:33 am
Yes, of course, but then you have edit function gk_post_meta_sidebar function in the gavern/helpers.layout.fragments.php to this form:

Code: Select all
function gk_post_meta_sidebar($attachment = false) {
   global $tpl;
   $tag_list = get_the_tag_list( '', __( ', ', GKTPLNAME ) );
?>
<?php if(!(is_tag() || is_archive() || is_home() || is_search() || is_page_template())) : ?>
<aside class="gk-post-meta">
   <ul>   
      <?php if($tag_list != ''): ?>
      <li class="tags">
         <p><?php _e('Tagged under:', GKTPLNAME); ?></p>
         <?php echo $tag_list; ?>
      </li>
      <?php endif; ?>
   </ul>
</aside>
<?php endif; ?>
   <?php
}


or even:

Code: Select all
function gk_post_meta_sidebar($attachment = false) {
   global $tpl;
   $tag_list = get_the_tag_list( '', __( ', ', GKTPLNAME ) );
?>
<?php if(!(is_tag() || is_archive() || is_home() || is_search() || is_page_template())) : ?>
<aside class="gk-post-meta">
    <?php if($tag_list != ''): ?>
   <p><?php _e('Tagged under:', GKTPLNAME); ?></p>
   <?php echo $tag_list; ?>
    <?php endif; ?>
</aside>
<?php endif; ?>
   <?php
}
User avatar
Administrator

GK User
Tue Sep 24, 2013 5:06 pm
What if I want to hide both tags and categories?
User avatar
Senior Boarder

GK User
Wed Sep 25, 2013 7:20 am
Then you have to open file gavern/helpers/helpers.layout.fragments.php and in function gk_post_meta_sidebar remove these fragments:

Code: Select all
<?php if(get_post_type() != 'page' && $param_category) : ?>
<li>
   <?php _e('Category:', GKTPLNAME); ?>
   <?php echo get_the_category_list( __(', ', GKTPLNAME )); ?>
</li>
<?php endif; ?>


and:

Code: Select all
<?php if($tag_list != '' && $param_tags): ?>
<li class="tags">
   <p><?php _e('Tagged under:', GKTPLNAME); ?></p>
   <?php echo $tag_list; ?>
</li>
<?php endif; ?>
User avatar
Administrator

GK User
Sat Nov 16, 2013 5:23 pm
I have resolved it.
User avatar
Senior Boarder


cron