By Syabab on Wednesday, 21 August 2019
Posted in Technical Issues
Replies 4
Likes 0
Views 475
Votes 0
Hi,

Can you help me to make this module position, es-dashboard-aside, be on both right & left side?

Thanks for any help
Hey there,

You can copy the default.php file from JoomlaFolder/components/com_easysocial/themes/wireframe/dashboard/default/default.php and paste it at template override location which is at JoomlaFolder/templates/yourCurrentTemplate/html/com_easysocial/dashboard/default/default.php.

Take note that you need to create the folders manually if you don't see it.

After that, you can look for and copy & paste the following PHP code into the default.php which is from the template override location as shown in the screenshot https://take.ms/e5o6d:

<?php if (!$this->isMobile() && count($this->getModulesFromPosition('es-dashboard-aside-right')) > 0) { ?>
<?php $moduleContents = trim($this->render('module', 'es-dashboard-aside-right', 'site/dashboard/sidebar.module.wrapper')) ?>
<?php if ($moduleContents) { ?>
<div class="es-container__sidebar">
<?php echo $moduleContents; ?>
</div>
<?php } ?>
<?php } ?>
·
Wednesday, 21 August 2019 16:31
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks but seems like it is not working.
I've created that override folder, assigned some module to new position, es-dashboard-aside-right, but nothing happened.
·
Wednesday, 21 August 2019 18:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Opps...sorry...I've edited the wrong folder.

Now it is correct folder.

But seems like there's a margin or padding issue.
·
Wednesday, 21 August 2019 18:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

You can add the following code into that default.php which is from the template override location as shown in the screenshot:
https://take.ms/iZ0m5


style="margin-left: 20px;"
·
Thursday, 22 August 2019 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post