I'm trying to make an element sticky on my article.
This is the element- Name:
<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?