title: Jquery (or css) in php to show div to logged in users only (wordpress)
body: <p>Building a website on wordpress
  Trying to make a couple of divs visible to logged in users only. I've set display:none in stylesheet and here is how i'm trying to make it visible to logged in users. Not working though...</p>
  
  <pre><code>&lt;?php
  if ( is_user_logged_in() ) {
  ?&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  $(".single_add_to_cart_button").css('display','block');
  $(".add_to_cart_button").css('display','block');
  });
  &lt;/script&gt;
  &lt;? } ?&gt;
  </code></pre>
  
  <p>If anyone can think of other ways- it will be greatly appreciated as well</p>