- This topic has 38 replies, 13 voices, and was last updated 4 years, 8 months ago by Leo.
-
AuthorPosts
-
December 29, 2016 at 1:31 pm #258926BarnaB
Both,
the plugin overlapped the footer instead of stopping just above it. The jQuery didn’t do anything :/
December 29, 2016 at 7:50 pm #259007TomLead DeveloperLead DeveloperCan you try setting up the jQuery again and then link me to your site? It should work.
December 30, 2016 at 4:26 pm #259293BarnaBSorry didn’t had the chance but at the same time there was one more option i did try:
https://wordpress.org/plugins/mystickysidebar/
This free plugin did the trick and works great out of the box (after giving it the right # in options)
December 30, 2016 at 8:58 pm #259343TomLead DeveloperLead DeveloperAwesome π
February 9, 2017 at 11:38 am #276671RodolfoHi there! I’m using Sticky Menu Plugin.
If you go to “Advanced Settings” and fill the field “Push-up element (optional)” = “.site-footer”, it works!
Try it. Easier than jQuery.
February 9, 2017 at 12:55 pm #276710TomLead DeveloperLead DeveloperThanks for the tip, Rodolfo! π
March 31, 2017 at 2:03 am #299770BarnaBHi,
For those who still need this in the future, here is my handy tutorial on how to make a sticky sidebar:
May 11, 2017 at 3:03 pm #316906RaeI just wanted to say BIG THANKS to Tom for posting the GitHub link to the Sticky Kit… I implemented this on two client sites and it works great… no plugin required.
For those that tried downloading the master file from GitHub, like I did, be advised that you need to only need to upload the contents of the /dist/ folder to your child theme’s /js/ folder… not the whole contents of the .zip…
These two files are all you need: https://github.com/leafo/sticky-kit/tree/master/dist
May 11, 2017 at 10:45 pm #317038TomLead DeveloperLead DeveloperGlad you found it useful! π
May 29, 2017 at 5:57 am #325583GUILLARDHello,
Sorry for my English, I’m French…The Jquery method seems not working for me.
I have created a child theme, copy sticky-kit.min.js and sticky-kit.js in a js directory I have created.
Then put this in the functions.php:
add_action( ‘wp_enqueue_scripts’, ‘generate_custom_scripts’ );
function generate_custom_scripts() {
wp_enqueue_script(
‘custom-script’,
get_stylesheet_directory_uri() . ‘/js/sticky-kit.js’,
array( ‘jquery’ )
);
}and this to the footer (in GP Hooks) :
<script>
jQuery(document).ready(function( $ ){
$(“#left-sidebar”).stick_in_parent();
});
</script>Did I have done something wrong?
Regards.
Camille.May 29, 2017 at 9:40 am #325719TomLead DeveloperLead DeveloperDid you look at Barna’s post above?: https://generatepress.com/forums/topic/sticky-sidebar/page/2/#post-299770
May 30, 2017 at 12:39 am #325976GUILLARDYes, I have seen the video, but I didn’t want to add an extension.
I resolved my problem with putting a sticky menu on the left side instead of a sidebar.
Regards.July 12, 2017 at 3:54 pm #348439GillianHi Tom
I’m looking for a sticky sidebar menu. I had a look at the plug-in you suggested back in 2015 but it hasn’t been updated for nearly a year. Is there another plug-in which you would now suggest? (I know nothing about jQuery so that route is much more complicated for me)
Thanks
July 12, 2017 at 7:28 pm #348535TomLead DeveloperLead DeveloperI do believe this plugin still works very well: https://en-ca.wordpress.org/plugins/sticky-menu-or-anything-on-scroll/
July 23, 2017 at 12:58 am #353424KaleemNice video. Is there a way to selectively set any individual widget u like to sticky?
Example: you have on your right sidebar, widget A,B and C. And on your left sidebar, widget X,Y and Z.
You want to sticky widget B only on the right side. And that of left side, widget X and Z. is this possible?
thank you in advance. -
AuthorPosts
- You must be logged in to reply to this topic.