Results 1 to 4 of 4

Thread: 2.9.2 Email Form Tweak - Changing Form Header

  1. #1
    Thread Starter
    jschodde's Avatar
    Join Date
    Apr 2009
    Location
    Anthem, AZ
    Posts
    154
    Thanks
    3
    Thanked 1 Time in 1 Post

    2.9.2 Email Form Tweak - Changing Form Header

    If you want to use the WP comments feature along with your ads AND use the email form, you might want to let your users know that the email form is DIFFERENT than the comments. I achieved this by simply adding the word "Privately" to the top of the email form. Here's how I did it:

    Step 1. Modify single.php line 142
    Original:
    New:
    Step 2. Modify theme stylesheet (e.g. blue.css) to move the email icon over to the left.
    Original:
    Code:
    #.email_form a{font-size:17px; font-family:'Arial','Trebuchet MS','Verdana',sans-serif; background:url(blue/email.png) 35px 3px no-repeat; font-weight:bold; display:block; text-decoration:none; text-align:center; color:#666}
    New (change 35px to 5px):
    Code:
    #.email_form a{font-size:17px; font-family:'Arial','Trebuchet MS','Verdana',sans-serif; background:url(blue/email.png) 5px 3px no-repeat; font-weight:bold; display:block; text-decoration:none; text-align:center; color:#666}
    For you experts reading this, please let me know if I missed something or if these changes will impact something else.
    Thanks,
    Jeff

  2. #2
    Veteran pointandstare's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    311
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: 2.9.2 Email Form Tweak - Changing Form Header

    change this:

    Code:
    #.email_form
    to

    Code:
    #email_form
    Also, if you're coding semantically then it really should be along these lines:

    Code:
    #email_form a {
       display:block;
       font-family:'Arial',Trebuchet MS,Verdana,sans-serif;
       font-size:17px;
       color:#666;
       font-weight:bold;
       text-align:center;
       text-decoration:none; 
       background:url(blue/email.png) 5px 3px no-repeat;
    }

  3. #3
    Thread Starter
    jschodde's Avatar
    Join Date
    Apr 2009
    Location
    Anthem, AZ
    Posts
    154
    Thanks
    3
    Thanked 1 Time in 1 Post

    Re: 2.9.2 Email Form Tweak - Changing Form Header

    Also, if you're coding semantically then it really should be along these lines:
    I agree, however the blue.css file I have had dozens of lines of code and I wasn't about to go through and format them

  4. #4
    Veteran pointandstare's Avatar
    Join Date
    Apr 2009
    Location
    London, England
    Posts
    311
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: 2.9.2 Email Form Tweak - Changing Form Header

    Of course not. I'd only advise such a change when you are creating/ changing new classes/ IDs.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)