Great community. Great ideas.

Welcome to SEOChat, a community dedicated to helping beginners and professionals alike in improving their Search Engine Optimization knowledge.  Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: CSS and PHP Help?!

Results 1 to 4 of 4
Share This Thread →
  1. #1
    chrisjleys is offline Registered User SEO Chat Explorer (0 - 99 posts)
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    CSS and PHP Help?!

    Hello, I recently changed all the form submit buttons to images by changing their PHP file (nav-search.php and searchform.php) and by changing the style sheet from subscribe_box input[type=submit] to subscribe_box input[type=image]. My problem now is that I want to do this with my subscribe widget that came with my current theme. I can find it in my style sheet as:

    widget_subscribe_box input[type=submit]

    Although, I have no idea where the PHP file is so I can add the image url. For the other ones I added this to the PHP file:

    <input type="image" src="/wp-content/uploads/2012/04/fp-2011-search-btn-done.png" value="Search" alt="Search" />

    How can I do this?! Either by calling the image in my style sheet or finding the php file.

    Thank you!

  2. #2
    aleks70 is offline Registered User SEO Chat Explorer (0 - 99 posts)
    Join Date
    Apr 2012
    Posts
    10
    Rep Power
    0
    <input type="image" src="/wp-content/uploads/2012/04/fp-2011-search-btn-done.png" value="Search" alt="Search" />
    why?

    Certanly, this do it.
    <input type="image" src="<? echo $_REQUEST['image'] ?>" value="Search" alt="Search" />

  3. #3
    Ev0Lv is offline Guiding Star SEO Chat Explorer (0 - 99 posts)
    Join Date
    Jun 2012
    Posts
    13
    Rep Power
    0
    How does that work? If you request the 'image' would it automatically be called? I doubt.

  4. #4
    jlcpcnc is offline Contributing User SEO Chat Explorer (0 - 99 posts)
    Join Date
    Jun 2012
    Location
    NC
    Posts
    38
    Rep Power
    2

    The code is right!

    $imgfile1=<img src="file1" width="1024" height="768" alt="alt"> <input type="image" src="<? echo $_REQUEST['$imgfile1'] ?>" value="Search" alt="Search" />


    Something like that would do it

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

SEO Chat Advertisers and Affiliates