• I wanted to make my blog loading faster so I removed most of images from my blog, in my blog submit comment button has an image and i removed that image from image directory and also removed image URL as you can see in below code:
    <p><input name="submit" type="image" src="<?php bloginfo('template_url')?>" id="submit" tabindex="5" value="Submit" />

    But the actual code is below
    <p><input name="submit" type="image" src="<?php bloginfo('template_url')?>/images/button_submit.gif" id="submit" tabindex="5" value="Submit Comment" />

    My problem is that in code I am using if I remove type=”image” submit link will not work, so I must have to use this but if I use this(type=”image”) there is an image and when I right click and view image I get a fatal error you can see below.
    Fatal error: Call to undefined function get_header() in /home4/techshal/public_html/wp-content/themes/BlueMania/index.php on line 1

    You will see this error only when you view image. For example you can visit this post

    I do not want to use any image for submit button link and do not want to get this error.
    Any suggestions are welcome.

Viewing 1 replies (of 1 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Try this instead:

    <p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />

Viewing 1 replies (of 1 total)
  • The topic ‘How to remove imgae from submit comment button?’ is closed to new replies.