Stop Float From Moving COMPLETELY
-
Hey folks,
This plugin is great and just want I’m looking for except from the fact that I can’t figure out how to stop the floated image from moving. Basically, I want it to stay in the ONE place and NOT follow you down the page as you scroll. If you click on the site link below you’ll see the “Sonic Collectors’ logo, which is the floated image, and where it is now. I want it to stay there, even when visitors scroll down the page.
In THIS thread, samhagin said the following;
By default,whether FIXED or FLOAT, the item is always visible, if however you want it to stay at one place, you can add this code after the shortcode in HTML mode
<script> jQuery(document).ready(function(){ jQuery('#wp-float-post-19').css('position','absolute'); }); </script>
wp-float-post-19 is the unique id assign to the item
I tried putting that code after the HTML on the WP Float Options page, but it didn’t work. I also tried to see if the ID of the float on my site was different from the one samhagin suggested. Using the Inspect Element option in Chrome it looked like the ID of my float was
5-wpf-id
. I tried again with this but it still didn’t work.So, any suggestions for instruction on how to get the image to stay exactly where it is would be greatly appreciated.
Cheers.
Site URL – https://soniccollectors.com/
- The topic ‘Stop Float From Moving COMPLETELY’ is closed to new replies.