-
AuthorPosts
-
gringo211985 Friend
gringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
gringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
November 9, 2015 at 7:30 am #723313Hi @gringo211985,
Unfortunately, in order to achieve your goal (to make the layout like this), we will have to adjust almost everything for both desktop and mobile layout so I’m afraid that you might have to hire a developer to implement it for you.
Otherwise, we can guide you to add more positions and adjust the default layout a little bit.
1. To make the left / right sidebar sticky when scroll down, please open file templatesubertplsblocksmainbodytwo-sidebar.php then look for this line :
<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-3 col-md-pull-6 <?php $this->_c($vars['sidebar1']) ?>">
and update as below :
<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-3 col-md-pull-6 <?php $this->_c($vars['sidebar1']) ?>" data-spy="affix" data-offset-top="250">
the same for right sidebar :
<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-3 <?php $this->_c($vars['sidebar2']) ?>">
update as below :
<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-3 <?php $this->_c($vars['sidebar2']) ?>" data-spy="affix" data-offset-top="250">
the attribute data-spy=”affix” is to apply fixed position to this block and data-offset-top=”250″ indicate that the fixed position only applied when visitor scroll down 250px from top.
2. Next, open file templatesubercsscustom.css (if you don’t have this file, just create a new one) then add this code :
.t3-sidebar.t3-sidebar-1.affix {
top: 50px;
left: 0;
right: auto;
}
.t3-sidebar.t3-sidebar-2.affix {
top: 50px;
right: 0;
}This is only a basic step to achieve your goal, for further customization, you might have to adjust it by yourself.
1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
November 9, 2015 at 7:30 am #754021Hi @gringo211985,
Unfortunately, in order to achieve your goal (to make the layout like this), we will have to adjust almost everything for both desktop and mobile layout so I’m afraid that you might have to hire a developer to implement it for you.
Otherwise, we can guide you to add more positions and adjust the default layout a little bit.
1. To make the left / right sidebar sticky when scroll down, please open file templatesubertplsblocksmainbodytwo-sidebar.php then look for this line :
<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-3 col-md-pull-6 <?php $this->_c($vars['sidebar1']) ?>">
and update as below :
<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-md-3 col-md-pull-6 <?php $this->_c($vars['sidebar1']) ?>" data-spy="affix" data-offset-top="250">
the same for right sidebar :
<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-3 <?php $this->_c($vars['sidebar2']) ?>">
update as below :
<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-md-3 <?php $this->_c($vars['sidebar2']) ?>" data-spy="affix" data-offset-top="250">
the attribute data-spy=”affix” is to apply fixed position to this block and data-offset-top=”250″ indicate that the fixed position only applied when visitor scroll down 250px from top.
2. Next, open file templatesubercsscustom.css (if you don’t have this file, just create a new one) then add this code :
.t3-sidebar.t3-sidebar-1.affix {
top: 50px;
left: 0;
right: auto;
}
.t3-sidebar.t3-sidebar-2.affix {
top: 50px;
right: 0;
}This is only a basic step to achieve your goal, for further customization, you might have to adjust it by yourself.
1 user says Thank You to Adam M for this useful post
gringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
November 9, 2015 at 3:27 pm #723509Hi @adam M
That works to get the 2 sidebars sticky without them moving, thank you for the help.
Quick question, do you think it would be possible to use the block from Techzone for the left sidebar menu? That menu is near perfect to how I want and was thinking it may be possible to port it into Uber.
Thanks for the help, it’s much appreciated I’m sure I’ll get there with this.
Thanks,
Richardgringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
November 9, 2015 at 3:27 pm #754064Hi @adam M
That works to get the 2 sidebars sticky without them moving, thank you for the help.
Quick question, do you think it would be possible to use the block from Techzone for the left sidebar menu? That menu is near perfect to how I want and was thinking it may be possible to port it into Uber.
Thanks for the help, it’s much appreciated I’m sure I’ll get there with this.
Thanks,
Richardgringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
November 10, 2015 at 12:59 am #723540I have created a new layout file and have gotten this far,
(note; the sidebar-2 does show on the right hand side if you check the site)
I don’t suppose you guys could help me with a couple of things?
1. I need help to set the “position-0, sidebar-1, sidebar-2” to sticky/fixed position (I tried Adams previous fix, but it’s not working)
2. On mobile and small screens under 380px the layout seems to break. Above 380px and it works perfect see screenshot below,
Once I have figured out these bits I should be good to go on the styling, which hopefully I won’t need help with 🙂
The file that contains the layout is /tpls/blocks/mainbody/phanes-two-sidebar.php I would really appreciate if you guys could help me fix these bits and I will be forever in your debt 🙂
Thanks,
Richardgringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
November 10, 2015 at 12:59 am #754095I have created a new layout file and have gotten this far,
(note; the sidebar-2 does show on the right hand side if you check the site)
I don’t suppose you guys could help me with a couple of things?
1. I need help to set the “position-0, sidebar-1, sidebar-2” to sticky/fixed position (I tried Adams previous fix, but it’s not working)
2. On mobile and small screens under 380px the layout seems to break. Above 380px and it works perfect see screenshot below,
Once I have figured out these bits I should be good to go on the styling, which hopefully I won’t need help with 🙂
The file that contains the layout is /tpls/blocks/mainbody/phanes-two-sidebar.php I would really appreciate if you guys could help me fix these bits and I will be forever in your debt 🙂
Thanks,
RichardAdam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
November 10, 2015 at 8:05 am #723599Hi @gringo211985,
1. Yes, it’s possible to migrate the block on JA Techzone to your site but in my opinion, customize your current layout to add sidebar there is less complicated than migrate from another template.
2. Currently, the sidebar-2 was adjusted to stay on right side, you can try to switch position of sidebar-2 with main content in file templatesubertplsblocksmainbodytwo-sidebar.php but please note that, you will have to customized the template CSS rules to match with new layout as well.
3. Yes, indeed. As you customized the layout, you will have to adjust it for tablet / mobile layout too. If you don’t want to touch default style, you can write your own custom CSS rules in custom.css file as mentioned before for tablet / mobile layout.
4. I gave you an example about how to make any block as fixed position when scroll in previous reply already, so you might want to work around with it. I’m afraid that is all we can assist you now as such customization task is beyond our support scope. For further customization, you might want to hire a developer to do it for you if you’re not familiar with this task instead.
1 user says Thank You to Adam M for this useful post
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
November 10, 2015 at 8:05 am #754129Hi @gringo211985,
1. Yes, it’s possible to migrate the block on JA Techzone to your site but in my opinion, customize your current layout to add sidebar there is less complicated than migrate from another template.
2. Currently, the sidebar-2 was adjusted to stay on right side, you can try to switch position of sidebar-2 with main content in file templatesubertplsblocksmainbodytwo-sidebar.php but please note that, you will have to customized the template CSS rules to match with new layout as well.
3. Yes, indeed. As you customized the layout, you will have to adjust it for tablet / mobile layout too. If you don’t want to touch default style, you can write your own custom CSS rules in custom.css file as mentioned before for tablet / mobile layout.
4. I gave you an example about how to make any block as fixed position when scroll in previous reply already, so you might want to work around with it. I’m afraid that is all we can assist you now as such customization task is beyond our support scope. For further customization, you might want to hire a developer to do it for you if you’re not familiar with this task instead.
1 user says Thank You to Adam M for this useful post
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 10, 2015 at 4:26 pm #723666<em>@Adam M 501555 wrote:</em><blockquote>Hi @gringo211985 ,
. . . I’m afraid that is all we can assist you now as such customization task is beyond our support scope. For further customization, you might want to hire a developer to do it for you if you’re not familiar with this task instead.</blockquote>
If you decide to go this route, gringo, try posting your project on –> JOOMLANCERS
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 10, 2015 at 4:26 pm #754158<em>@Adam M 501555 wrote:</em><blockquote>Hi @gringo211985 ,
. . . I’m afraid that is all we can assist you now as such customization task is beyond our support scope. For further customization, you might want to hire a developer to do it for you if you’re not familiar with this task instead.</blockquote>
If you decide to go this route, gringo, try posting your project on –> JOOMLANCERS
gringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
November 10, 2015 at 4:41 pm #723668I thought it was better to learn rather than hiring a dev, that way in the future I don’t need to ask for help.
I did manage to finish the position layout, (see video for sneak peek)
I just have one little problem with CSS in the top menu if you wouldn’t mind helping where near the end of the video you will notice the header jumps and the background elements are visible, how can I fix that so there’s no jumping?
Thanks again for the help,
Richardgringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
November 10, 2015 at 4:41 pm #754160I thought it was better to learn rather than hiring a dev, that way in the future I don’t need to ask for help.
I did manage to finish the position layout, (see video for sneak peek)
I just have one little problem with CSS in the top menu if you wouldn’t mind helping where near the end of the video you will notice the header jumps and the background elements are visible, how can I fix that so there’s no jumping?
Thanks again for the help,
Richardgringo211985 Friendgringo211985
- Join date:
- May 2012
- Posts:
- 678
- Downloads:
- 197
- Uploads:
- 121
- Thanks:
- 77
- Thanked:
- 123 times in 27 posts
November 11, 2015 at 11:07 am #723817Hi guys,
I’ve managed to fix the layout now, I have all of the positions in place and I have fixed the header jumping issue by adding the following to my custom.css,
.uber-header.highlight-color {
border-color: #0089CE !important;
position: fixed;
}All I have to do now is my css styling to give it a nice look and once finished I may submit to site of the month, depending on how nice it looks 🙂
Thanks again Tom and Adam, you guys pointed me in the right direction and now I’ve learned a lot more about t3 and layouts using php, I also learned about the col-md-push setting too which is extremely important when creating layouts.
In all honesty it’s not that difficult once you’ve spent a lot of time researching and I’m not confident I can layout pretty much any grid format I want 🙂
Thanks,
Richard1 user says Thank You to gringo211985 for this useful post
-
AuthorPosts
This topic contains 33 replies, has 3 voices, and was last updated by Adam M 9 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum