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

nirmallimbu’s picture

Create 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']);
}
}

bsandor’s picture

You can use Panels module and insert the block before and also after node content.

millionleaves’s picture

I 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?

xenophyle’s picture

vladimiraus’s picture

Version: 7.x-2.4 » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Closed (outdated)

Issue was inactive for more than 9 years. Closing.
Feel free to reopen if you feel that it is still relevant. ⏳