Helix Ultimate social share option

Tag: |   Category:

Social share in Helix Ultimate came along with Voting/Rating option. If you disabled Voting, social share will disappear. If you want to take out social share from voting option follow below steps...

1. Go to your template folder and open content php file called ‘default.php‘ using any text editor [templates\[YOURTEMPLATENAME]\html\com_content\article\default.php]

2. Replace below code...

	<?php if($params->get('show_vote') && !$this->print) : ?>
		<div class="article-ratings-social-share d-flex justify-content-end">
			<div class="mr-auto align-self-center">
				<?php JHtml::_('jquery.token'); ?>
				<?php echo JLayoutHelper::render('joomla.content.rating', array('item' => $this->item, 'params' => $params)) ?>
			</div>
			<div>
				<?php echo JLayoutHelper::render('joomla.content.social_share', $this->item); ?>
			</div>
		</div>
	<?php endif; ?>

with

	<?php if($params->get('show_vote') && !$this->print) : ?>
		<div class="article-ratings-social-share d-flex justify-content-end">
			<div class="mr-auto align-self-center">
				<?php JHtml::_('jquery.token'); ?>
				<?php echo JLayoutHelper::render('joomla.content.rating', array('item' => $this->item, 'params' => $params)) ?>
			</div>
		</div>
	<?php endif; ?>
    
    <div class="helix_social_share_custom">
		  <?php echo JLayoutHelper::render('joomla.content.social_share', $this->item); ?>
    </div>

3. Add below CSS line at your custom.css

.helix_social_share_custom		{
	margin-bottom: 1rem;
	padding: 1rem 0;
	border-top: 1px solid #f5f5f5;
	border-bottom: 1px solid #f5f5f5;
}
.article-social-share {
    float: none;
}

How to disabled social share

After doing the above steps, if you want to disabled social share, go to Helix Ultimate template option > Blog > Details > Disabled Social Share.

Copyright © 2024 Siam Naulak.
magnifiercrossmenu