How to make an WordPress element sticky? [on hold]

I’m trying to make an element sticky on my article.

This is the element- Name: WP-Review

<div Class=sticky-review>
<?php echo do_shortcode(“[wp-review]”); ?>
</div>

I tried CSS- position: fixed; but that makes the element sticky for the whole site and appear even out of the template part on my article.

I use the element on my comments template. I want its appearance just like basic WordPress sidebar but for comments, not the post content. My Post content width is 100%. while comments width is 70% and the element is 30%.

I have no Idea if CSS or jQuery will do the trick and how? Can anyone Help me?

Read more here:: How to make an WordPress element sticky? [on hold]

Leave a Reply

Your email address will not be published. Required fields are marked *