By applestalk on Friday, 11 November 2016
Posted in Technical Issues
Replies 5
Likes 0
Views 619
Votes 0
I want to use the EasySocial Toolbar as my main website menu. Is it possible to add custom links in the toolbar to point to other pages within the website and also change the Home button to the website's homepage?

EasySocial 2.0.3
You can modify on this file -> JoomlaFolder/components/com_easysocial/themes/YourCurrentThemeName/toolbar/default.php

Hope this help.
·
Friday, 11 November 2016 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Arlex.

I have found the file and was able to amend the Home button to the website index.php

As to ADDING IN new links, it appears to be more complex. This is a current link for POLLS...


<?php if ($this->config->get('polls.enabled')) { ?>
<li class="<?php echo $view == 'polls' ? 'is-active' : '';?>">
<a href="<?php echo ESR::polls();?>" class="es-navbar__footer-link">
<i class="fa fa-bar-chart"></i>
<span>
<?php echo JText::_('COM_EASYSOCIAL_TOOLBAR_POLLS');?>
</span>
</a>
</li>
<?php } ?>


What would the code be for a simple link to /social/ page (keeping the pipe "|" between links)?
·
Friday, 11 November 2016 20:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Do you mean you would like to add those link into your template index.php file?

if yes, you have to require this Easysocial main file into your template index.php file, so you can call ESR Easysocial class.


// Engine is required anywhere EasySocial is used.
require_once(JPATH_ROOT . '/administrator/components/com_easysocial/includes/easysocial.php');
·
Saturday, 12 November 2016 01:18
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Arlex,

That sounds as if it's getting away from what I thought it would be... just a simple link in the default.php file.

I will look for an alternative.
·
Saturday, 12 November 2016 01:30
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Saturday, 12 November 2016 13:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post