Problem with a comment on a post

Discussion in 'WordPress' started by kojokroavi, Aug 24, 2012.

  1. kojokroavi

    kojokroavi Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    Before I do that, should i back up the files in question?, If that does not work is it not destroy the site?.
     
    kojokroavi, Aug 26, 2012 IP
  2. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #22
    You can easily revert all changes back, but if you backup your theme first, you surely won't ruin anything. :)
     
    Devtard, Aug 26, 2012 IP
  3. kojokroavi

    kojokroavi Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Well I made the change, but I guess it did not work, the link has a green circle around him has changed, but what I was signing a big red circle did not, still see it.Here is a screenshot:



    http://www.siz.co.il/my/ixzmgdgzqwjm.png
     
    kojokroavi, Aug 26, 2012 IP
  4. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #24
    You are right. Try this version, it should work now just fine:


    
    
    <script type="text/javascript">
    <!--
        function toggle_visibility(id) {
           var e = document.getElementById(id);
           if(e.style.display == 'block')
              e.style.display = 'none';
           else
              e.style.display = 'block';
        }
    //-->
    </script>
    
    
    <a href="[B]#foo[/B]" onclick="toggle_visibility('foo');">Leave a comment!</a>
    
    Code (markup):

    
    
    <div id="foo" [B]style="display:none;"[/B]> <?php comment_form(); ?> </div>
    Code (markup):
     
    Devtard, Aug 26, 2012 IP
  5. kojokroavi

    kojokroavi Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #25
    Well, it seems that it works.
    I would like to thank you for the help.You helped me a lot.
    Thank you.

    avi.
     
    kojokroavi, Aug 26, 2012 IP
  6. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #26
    No problem, I am happy that I can be useful. :)
     
    Devtard, Aug 26, 2012 IP