我很新的WordPress的,并没有PHP或CSS的经验...如何自定义WordPress中的Subscribe2按钮外观?
我想用Subscribe2插件在我的博客,连同iNove主题。当我添加的窗口小部件,在订阅/退订按钮,在“经典”的方式,这使得页面相当难看(博客是在:http://www.adlerr.com)呈现
alt text http://i29.tinypic.com/33boh14.jpg
如何自定义的外观按钮?我准备写一些PHP/CSS如果我得到正确的指导......
代码输出的按钮是在这里:
$this->form = "<form method=\"post\" action=\"\"><p>" . __('Your email:', 'subscribe2')
. "<input type=\"text\" name=\"email\" value=\"" . __('Enter email address...',
'subscribe2') . "\" size=\"20\" onfocus=\"if (this.value == '" . __('Enter email
address...', 'subscribe2') . "') {this.value = '';}\" onblur=\"if (this.value == '')
{this.value = '" . __('Enter email address...', 'subscribe2') . "';}\" /></p><p><input
type=\"submit\" class=\"button\" name=\"subscribe\" value=\"" . __('Subscribe',
'subscribe2') . "\" /> <input type=\"submit\" class=\"button\" name=\"unsubscribe\"
value=\"" . __('Unsubscribe', 'subscribe2') . "\" /></p></form>\r\n";
而且有按钮将适当stying here:右下角的“提交评论”按钮,即类“按钮”的:
alt text http://i31.tinypic.com/2jwfo9.jpg
的代码生成所述提交评论按钮是:
<input name="submit" type="submit" id="submit" class="button" tabindex="5"
value="<?php _e('Submit Comment', 'inove'); ?>" />
我该如何让订阅/取消订阅按钮看起来像“提交评论”按钮?
您的帮助非常感谢,谢谢。
按钮定义出现数万在插件的PHP代码倍。他们大多包括class =“button-primary”或class =“button-secondary”。有没有类定义的按钮定义,我添加了类=“按钮”,但它没有改变外观。 – 2009-08-24 07:38:44
您可以向我展示您的博客上正确设置了按钮的页面吗?我正在关注iNove主题所具有的按钮样式。 – 2009-08-24 07:46:36
我在关于页面上放置了3个按钮,类别为“按钮”,“按钮 - 主要”和“按钮 - 次要”。所有看起来都一样。怎么了? – 2009-08-24 08:20:33