Move Social Buttons From Top of Post To Bottom

Get help or discuss with other members about business Joomla! 3 and 2.5 template designed especially for your start-up projects on dedicated support forum.
GK User
Tue May 27, 2014 5:59 pm
Hi, can you tell me how to move the social buttons from the top of the post to the bottom? They currently appear above the Title.
User avatar
Fresh Boarder

GK User
Wed May 28, 2014 7:14 am
Hi,

You have to edit Startup/layouts/content.post.featured.php file and move this fragment:
(remove this fragment and add "?>" - php end tag.
Code: Select all

// variable for the social API HTML output
$social_api_output = gk_social_api(get_the_title(), get_the_ID());

?>

<?php if(is_single()) : ?>
   <?php if($social_api_output != '' ): ?>
      <?php echo $social_api_output; ?>
   <?php endif; ?>
<?php endif; ?>


into Startup/layouts/content.post.footer.php file - this file should looks like:

Code: Select all
<?php

/**
 *
 * The template fragment to show post footer
 *
 **/

// disable direct access to the file   
defined('GAVERN_WP') or die('Access denied');

global $tpl;

?>

<?php do_action('gavernwp_after_post_content'); ?>

<?php if(is_singular()) :   

   // variable for the social API HTML output
   $social_api_output = gk_social_api(get_the_title(), get_the_ID());
   ?>
   
   <?php if(is_single()) : ?>
      <?php if($social_api_output != '' ): ?>
         <?php echo $social_api_output; ?>
      <?php endif; ?>
   <?php endif; ?>   
   
   <?php if(gk_author(false, true)): ?>
   
   <footer>   
      <?php gk_author(); ?>
   </footer>
   <?php endif; ?>
<?php endif; ?>



User avatar
Moderator

GK User
Thu May 29, 2014 3:03 pm
Excellent. Thank you!
User avatar
Fresh Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.