Offset From The Top And Refresh Rate Added
-
Hello,
Thanks for making this great plugin, it was the only one that worked with my theme. However I noticed that the plugin was missing two essential settings, offset from the top and refresh rate.
I was in the process of adding offset from the top when I stumbled across Simon Barnett’s post in this topic which works perfectly so I added it and the refresh rate setting and want to share with the community so others can benefit from these additions.
Youdaman feel free to include my edit (refresh rate) if it passes your examination. Simon Barnett also said (in the thread linked above) it would be ok to include his addition as well.
I’m still fairly new to coding so if an experienced coder also wanted to take a look I would appreciate it.
Replace the code in sticky-element.php with this.
EDIT:
Realized I forgot to change the unit type from px to ms. This won’t affect anything but to make the change replace<td><input type="text" name="sticky_element_refreshrate" value="<?php echo get_option('sticky_element_refreshrate'); ?>" placeholder="e.g. 500" />px</td>
with
<td><input type="text" name="sticky_element_refreshrate" value="<?php echo get_option('sticky_element_refreshrate'); ?>" placeholder="e.g. 500" />ms</td>
- The topic ‘Offset From The Top And Refresh Rate Added’ is closed to new replies.