1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Button in WP not showing

Discussion in 'HTML & Website Design' started by Burano, Apr 14, 2010.

  1. #1
    This is not showing up as a button on my wordpress site, it works as one (Submit comment shows as link), but how do I create the button within this code?

    <p>
    <p><a href="#" onClick="javascript:initGateway(); return false;">Submit your Comment</a>
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    </p>
    <?php do_action('comment_form', $post->ID); ?>

    Thanks!
     
    Burano, Apr 14, 2010 IP
  2. Burano

    Burano Peon

    Messages:
    367
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    anyone able to help me out?
     
    Burano, Apr 15, 2010 IP
  3. bratosab

    bratosab Active Member

    Messages:
    324
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Hello,

    I don't understand what you want to do here... to make a button you just have to use <input type="submit" value="Submit" name="button_name_here">

    Please explain I'll be glad to help.
    Best Regards.
     
    bratosab, Apr 16, 2010 IP
  4. brightyoursite

    brightyoursite Peon

    Messages:
    59
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    upload your theme file there,it use some js to post the form.so need know the details of the html structure and js
     
    brightyoursite, Apr 17, 2010 IP
  5. amaroks

    amaroks Peon

    Messages:
    242
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you can do this Only if Javascript is Enabeled :
    <span onclick="document.myform.submit()">Submit your comment</span>

    or with CSS :
    <input type="submit" value="Submit your comment" class="text_button">
    CSS:
    .text_button {
    border: none;
    background-color: transparent;
    padding: 0;
    text-decoration: underline; /* if desired */
    color: #00c; /* or whatever other color you want */
    }

    You better use the second one , normal submit button + css
     
    amaroks, Apr 17, 2010 IP
  6. Burano

    Burano Peon

    Messages:
    367
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks guys...it's not just a normal submit button I want. I want to keep the onclick ability so a gateway pops up when they hit the submit button. Right now I have it working wiht the gateway, but there is no button. just a link...
     
    Burano, Apr 18, 2010 IP
  7. rockstar12345

    rockstar12345 Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hello,

    I don't understand what you want to do here... to make a button you just have to use <input type="submit" value="Submit" name="button_name_here">

    Please explain I'll be glad to help.
    Best Regards.
     
    rockstar12345, Apr 19, 2010 IP
  8. Nordvind

    Nordvind Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    You can put your link in a div and update styles with something like
    #linkwrap{
    padding:1px;
    width:100px; /* Align width and padding of the block for your text */
    display:block;
    border:1px solid gray
    background:url(img/gradient.jpg) 0 0 repeat-x;
    }

    #linkwrap a{
    text-decoration:none;
    color:#202020;
    }

    Make a simple gradient image, with height similar to div's. That will probably look like a button. But gateways are really bad, mmmkay? :D
     
    Last edited: Apr 19, 2010
    Nordvind, Apr 19, 2010 IP
  9. javier.garcia.esteban

    javier.garcia.esteban Well-Known Member

    Messages:
    66
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    118
    #9
    <input type="submit"> also allows the onClick property, no need for a false button.
     
    javier.garcia.esteban, Apr 20, 2010 IP