I see that the widget appears only below the content and does not appear above it. Is there a way to place it both above and below the content?
I see that the widget appears only below the content and does not appear above it. Is there a way to place it both above and below the content?
Comments
Comment #1
nirmallimbu commentedCreate a region (custom hidden region: for eg. 'hidden_region') ; in *.info file
Drag the sharethis block to that region.
Now use this code to display it anywhere you like:
$blocks = block_list('hidden_region');
foreach($blocks as $bb=>$ww){
if($bb == 'sharethis_sharethis_block'){
$output .= render($ww->content['#markup']);
}
}
Comment #2
bsandor commentedYou can use Panels module and insert the block before and also after node content.
Comment #3
millionleaves commentedI had the links appearing in a Panel for a specific node type, and managed to get them showing both above and below the body without too much trouble.
However, it seemed that the links were not aware of the individual node they were being displayed on, i.e. the numbers reported for tweets and shares were those for the site itself, not the individual nodes.
After some failed fiddling about with different options I ended up reverting to outputting the ShareThis links as part of the node links, and having them appear below the node.
Has anyone else had this issue and if so, how did you fix it?
Comment #4
xenophyle commentedIs this a duplicate of #2050875: ShareThis in a block AND on node(s)?
Comment #5
vladimirausIssue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳