I have a simple problem but I don't have a solution the links section on my website is below the content. Where in my case links for flag content, social bookmarking and email a friend are located. I want this information above the node content.

Nick Eberle
AsktheSwami.com

Comments

mitchmac’s picture

Your theme will have a node.tpl.php file that likely has something like:

<?php if ($links): ?>
      <div class="links"><?php print $links; ?></div>
<?php endif; ?>

You can experiment with where this snippet is located in your node.tpl.php or manipulate the links CSS class to relocate it.

A handy module for finding information about the various elements of the rendered page is the Theme developer module, part of the Devel module. Check out this screencast to learn more about the Theme developer module.

nickeberle’s picture

All fixed thank you for pointing me in the right direction. Sorry for being lazy ;D

aww’s picture

Thank you- I was looking for this also.

smokisergi’s picture

Sorry for revive this post... I want to move the translation link below "submited by..."

This is my code of node.tpl.php

 <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>

  <?php print $user_picture; ?>

  <?php print render($title_prefix); ?>
  <?php if (!$page): ?>
    <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
  <?php endif; ?>
  <?php print render($title_suffix); ?>

  <?php if ($display_submitted): ?>
    <span class="submitted"><?php print $submitted ?></span>
  <?php endif; ?>
  
  <div class="clearfix">
      
	  <div class="clearfix">
      <?php if (!empty($content['links'])): ?></div>
      <?php endif; ?>
  
   <div class="content clearfix"<?php print $content_attributes; ?>>
    <?php
      hide($content['comments']);
      hide($content['links']);
      print render($content);
    ?>
  </div>
  
   <div class="clearfix">
      <?php if (!empty($content['links'])): ?>
      <div class="links clearfix">
	  <?php print render($content['links']); ?></div>
    <?php endif; ?>
  
<div class="clearfix">
    <?php print render($content['comments']); ?>
  </div>

</div>

I have moved

<div class="clearfix">
      <?php if (!empty($content['links'])): ?>
      <div class="links clearfix">
	  <?php print render($content['links']); ?></div>
    <?php endif; ?>

Below

<?php if ($display_submitted): ?>
    <span class="submitted"><?php print $submitted ?></span>
  <?php endif; ?>

This has moved translation below "submited by...". But buttons "Read more" and "Comment" too... How i can separate translation link of "read more" and "comment" buttons?

Regards,

Sergio

bjste’s picture

I can't seem to find the solution on this either.
My language icons appears under the content and I want to move them to above the primary links, but I cant find the php where the language icon and link is printed...

Could anyone please help me out?