-
Author
-
October 4, 2013 at 05:17 #3831willianlima83Participant
Hi
There are any solution to keeping scroll bar on the last position when refresh the page?
🙂October 5, 2013 at 01:30 #3864SQadminKeymasterIt should act like that. I think only Chrome browser takes you at the top of the page then goes to the last location
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 5, 2013 at 03:01 #3884willianlima83ParticipantI think I didn’t explained the situation I want resolve.
When I click on menu on my profile page (wall, profile, account, friends, My pictures), it open a new page correctly but on the top.
Always I click on profile menu, the new page opened go to the top, then everytime I need to scroll down it to see the new page content because the space where the main picture is positioned is very big…
There are an solution for this situation, please?October 5, 2013 at 03:03 #3885willianlima83ParticipantWhen I click on a activity or comment, the page is always fixed on the same place… it’s verry good.. but on profile menu it not happen.. 🙁
October 5, 2013 at 17:57 #3900SQadminKeymasterI see what you are saying now. We will try and find a solution to this
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 7, 2013 at 22:21 #3947willianlima83ParticipantOk.. I’m waiting for this solution 😛
I know you are a genius… 🙂October 29, 2013 at 14:08 #5337SQadminKeymasterHello all 🙂
This code added to footer.php before the wp_footer() line will make the page open at the buddypress navigation level:COPY CODE<script> jQuery(document).ready(function() { jQuery("#item-nav .item-list-tabs a, #subnav a").each(function() { jQuery(this).attr('href',jQuery(this).attr('href')+"#item-nav"); }); }); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionOctober 29, 2013 at 16:48 #5355willianlima83Participantwow.. it works very well… thank you very much…
PS. This code works well without the Sticky Menu, because the Sticky Menu, if enabled, overrides the budpress menu..November 5, 2013 at 09:49 #5902SQadminKeymasterTo hide the top part when viewing your own profile please add this css to sweetdate-child/style.css or in WP admin – Sweetdate – Styling options – Quick css:
COPY CODE.my-account #profile {display:none;}
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionNovember 5, 2013 at 19:07 #5990willianlima83ParticipantThis code works… but I think is better a little buttom to hide this part on own profile, not hide it automatically… If you included this in a new update is better, but I think it’s not a big problem… It’s good for now..
Thanks..December 9, 2013 at 15:33 #7958topdogParticipantThanks for the code. It worked to refresh the screen back on the profile menu. However, the css code removes the profile altogether and I don’t want to do that automatically.
The problem is that the stickly menu is blocking the profile menu so visitors have to scroll up to see their option. But I don’t want to disable the sticky menu complete because it’s useful throughout the rest of the site.
How can I disable the sticky menu just on the profile page?
December 10, 2013 at 11:21 #8056AbeKeymasterYou can change it with this to have the nav visible
COPY CODE<script> jQuery(document).ready(function() { jQuery("#item-nav .item-list-tabs a, #subnav li a").each(function() { jQuery(this).attr('href',jQuery(this).attr('href')+"#main"); }); }); </script>
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 10, 2013 at 12:07 #8062topdogParticipantI tried the code but the sticky menu is still visible. I want the sticky menu to NOT appear when a user is on any profile page.
Maybe I’m placing your code in the wrong location. I tried it in the footer.php next to the other code in this thread and I tried it in the function.php but not response. Should I try another file?
December 11, 2013 at 15:00 #8115AbeKeymasterMy code wasn’t to remove the sticky menu, but to show the page a bit top so the navigation will appear and won’t be covered by the menu. Unfortunately there is no option to remove the sticky for a specific page
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 13, 2013 at 02:18 #8175AbeKeymasterTry with this css code to hide the sticky menu:
COPY CODE.bp-user .contain-to-grid.sticky.fixed { display: none; }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 16, 2013 at 03:46 #8306LKrParticipantThank you for sharing this code (to keep opening pages at the buddypress navigation level) – it works well with all tabs. But it does not affect if I click on the “Compose” message link (Messages–>Compose) – the Compose message page opens at the very top, still.
Is there any modification possible to this code that you proposed so that it works on these (second-level) links as well? Thank you!!
December 16, 2013 at 23:49 #8396AbeKeymasterHi, I have updated the code above https://archived.seventhqueen.com/forums/topic/keeping-scroll-bar-on-the-last-position-when-refresh#reply-8056
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.March 5, 2014 at 22:47 #11994AbeKeymasterHi, That will modify current structure pretty much. if you want to achieve that you should hire a developer to help you. Thanks
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.March 13, 2014 at 05:27 #12605AfrosteinParticipantHi Robert,
How do we get to the footer.php to apply this code you made:
<script>
jQuery(document).ready(function() {
jQuery(“#item-nav .item-list-tabs a”).each(function() {
jQuery(this).attr(‘href’,jQuery(this).attr(‘href’)+”#item-nav”);
});
});
</script>2nd Issue. When I click on that link for your “updated code” nothing happens. Still on this page.
Thanks.
March 16, 2014 at 00:35 #12759AbeKeymasterThis is that link https://archived.seventhqueen.com/forums/topic/keeping-scroll-bar-on-the-last-position-when-refresh/#post-8056
you add the code by connecting to your server by ftp in wp-content/themes/sweetdate
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.July 4, 2014 at 11:00 #21704ElectroMagneticParticipantHi Abe
I found the jquery worked well, but did not work on the Profile > edit > submenu items…as my client has a huge profile group an field section.
I added this into you jquery #profile-edit-form ul.button-nav li a and it seems to work well, but not sure if that is the correct way to approach the problem.
Please could you check this jquery below and let us all know if its good to go or if its just a hack! and you have a better solution to this.<script>
jQuery(document).ready(function() {
jQuery(“#item-nav .item-list-tabs a, #subnav li a, #profile-edit-form ul.button-nav li a”).each(function() {
jQuery(this).attr(‘href’,jQuery(this).attr(‘href’)+”#main”);
});
});
</script>Look forward to your input.
July 8, 2014 at 17:01 #22026AbeKeymasterThat is a good solution and it is fine to use it.
CHeersHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 3, 2014 at 13:04 #37462neelesh7ParticipantHi,
Is it possible to add to that script to not scroll back to top when saving changes?
December 3, 2014 at 14:39 #37491FDParticipantThat would be really nice to have a script or a way to reduce the “jumping” up and down while navigating site.
So my questions are:
1 – Is is possible to reduce the “jumping” up and down while navigating?
(To not scroll back to top and then down after saving changes or changing menu tab.)2 – Are there a way to make notifications open at the correct level so you don´t have to scroll down
to see the notification?December 5, 2014 at 00:17 #37703AbeKeymaster@neelesh7 not right now, we will think of something
@FD this is somehow the same thing on both questions but we will try to think of something to do that
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.December 5, 2014 at 00:38 #37712FDParticipant@abe Yes, that´s right. I was in hurry. It would be really nice if you could find a solution. 🙂
December 26, 2014 at 13:36 #40390wannabeParticipantThe whole profile part should be ajax in my opinion. is this on the roadmap?
December 28, 2014 at 20:30 #40479AbeKeymasterit is kind of hard @wannabe since is very much dependent on how Buddypress works
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.July 31, 2015 at 15:07 #70947topdogParticipantJust purchased the Kleo theme and added this code. It works for top level Buddypress profile menu item but not any sub-menu items.
Is it possible to extend the code to work sub-menu items?
August 3, 2015 at 16:38 #71338AbeKeymasterHi, I just updated the code here: https://archived.seventhqueen.com/forums/topic/keeping-scroll-bar-on-the-last-position-when-refresh#post-5337
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.August 3, 2015 at 17:17 #71359topdogParticipantCode works well. Appreciate the quick reply and fix. Thanks Abe!!!
August 3, 2015 at 17:25 #71367AbeKeymasterGlad to help 😉
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.July 18, 2017 at 16:11 #167818rishabh08ParticipantHi just purchased the theme, I’m facing same issue with the profile page. I know it’s buddypress but are there no hacks to make just the profile page ajax. Reloading each time on tab selection is making the UX a nightmare.
July 24, 2017 at 15:21 #168414AbeKeymasterHi, unfortunately BuddyPress doesn’t provide a simple way of enabling ajax for the navigation.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The topic ‘keeping scroll bar on the last position when refresh’ is closed to new replies.