• I am new to css and coding for wordpress, and I’ve come across a problem. When I add a custom image for a button, and a button that links to somewhere it creates a problem.

    The problem I face is if I upload it to themes.wordpress.com, question marks appear instead of the buttons, and in demo mode they don’t appear and break the template.

    So what is the correct way to add a custom image button, and a button that links to somewhere for wordpress?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I upload it to themes.wordpress.com

    You seem to be in the wrong forum…
    WP.com has its own support forums.

    Thread Starter WalletStation

    (@dkn)

    I’m not asking for themes.wordpress.com support. I just would like to know the correct way to do it, so other people won’t run into this problem when I upload it to other sites.

    1. If you have your own theme – you don’t upload it to themes.wordpress.com. Period.
    2. Since you mentioned wp.com > I’ve sent you to the right forum.
    3. Explain what are you doing and where.

    Thread Starter WalletStation

    (@dkn)

    I’ll just ask at a css and html forum. I just wanted to know if there was anything special I had to do with wordpress.

    Don’t ask general questions. We don’t have time for that.
    Ask a specific, well explained question and you will get quick and precise replies. It is that simple.

    Thread Starter WalletStation

    (@dkn)

    Well I couldn’t find a better place to ask, so I’ll ask again.

    I made a mistake in my first post, this is for themes.wordpress.net and when I upload my theme the search button and regular button are an X. I would like to fix this problem, because I don’t want people who download the theme to have the same problem.

    For the search button I do:
    <input type=”image” src=”images/search.gif” id=”searchsubmit” value=”Search” alt=”” />

    For the regular button I do:
    <img src=”images/button.gif” width=”86″ height=”76″ border=”0″ alt=””/>

    Am I doing something wrong?

    Everything else in my template are backgrounds and I use css with them. I link to them with images/backgroundname.gif and they turn out fine.

    I think I understand the question

    <input type="image" src="images/search.gif" id="searchsubmit" value="Search" alt="" />

    ought to be:

    <input type="image" src="
    <?php bloginfo('url'); ?>/">images/search.gif" id="searchsubmit" value="Search" alt="" />

    try that on your won test site first and make sure it works.

    Thread Starter WalletStation

    (@dkn)

    Thanks alot! I had to use <?php bloginfo(‘template_directory’); ?> though. But I appreciate for leading me in the right direction.

    you’re welcome 🙂 glad I helped!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Buttons and Images’ is closed to new replies.