By Christopher caruk on Thursday, 14 May 2015
Posted in General Issues
Replies 1
Likes 0
Views 650
Votes 0
Hello,

OK... creating a new question as requested.

I started here (http://stackideas.com/forums/sidebar-and-content-swap) and may use the CSS changes to reposition the sidebar and content areas but I would still like to know if there is something running that's changing the page.

I've modified the profile/default.php file so that the sidebar is AFTER the container block and placed the file in my template /html/com_easysocial/profile like this:

...
<div class="es-container">

<div class="es-content" data-profile-contents>
<i class="loading-indicator fd-small"></i>

<?php echo $this->render('widgets', 'user', 'profile', 'aboveStream', array($user)); ?>

<?php echo $this->render('module', 'es-profile-before-contents'); ?>
<div data-profile-real-content>
<?php echo $contents; ?>
</div>
<?php echo $this->render('module', 'es-profile-after-contents'); ?>
</div>

<div class="es-sidebar" data-sidebar>
...

See pictures.

I've also tried modifying the template directly, but the magic sidebar keeps moving after load.

When I look at the source, after the page has loaded es-sidebar appears before es-content rather than the other way around as in default.php. Is there some javascript in there that changes the position of these divs after the page has been loaded? I've found some code that seems to toggle the sidebar on and off but it does not seem to reorder attributes within the DOM.

This is easy to test for yourself... just change default.php in components\com_easysocial\themes\wireframe\profile and swap the positions of the es-sidebar of es-content divs and reload the page.. you will see the sidebar appear on the correct side and then flip over to the other side.

Thanks
Chris
Hello Christopher,

I am sorry for the delay of this reply.

Perhaps you can revert back the change that you have made and try apply the following css code inside your template file and see how it goes.

/* Switch the sidebar and main content sides */
body div#fd.es .es-container .es-content {
float: left;
width: 76%;
padding-right: 2%;
}

body div#fd.es .es-container .es-sidebar {
width: 24%;
float: right;
border-left: 1px solid #d7d7d7;
border-bottom: 1px solid #d7d7d7;
}


/* Very Small Phones */
@media (max-width: 480px){
body div#fd.es .es-container .es-content {
width:100%;
}
}
·
Friday, 15 May 2015 13:03
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post