I tried to hide an image with class="hide_phone" but both code above didn’t work.

<script type="text/javascript">
 $(document).ready(function($){
   $('.hide_phone').hide();
 });
</script>
<script type="text/javascript">
 $(document).ready(function($){
   $('.hide_phone').css('display','none');
 });
</script>

Why? I think they are ok writed… I put this javascript in header/footer of an wordpress ecommerce theme, after jquery call. Still dont work anywhere

Read more here: Javascript hide don’t work


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, ,

Wordpress related questions and answers: