Hi,
I wanted to hide the title & message displayed on the forward input form and I thought that would be a peace of cake with just css, display:none. But it turned out these form-items doesn't have any unique class or id.
Message subject:
(Your name) has forwarded a page to you from www.mysite.com
Message body:
(Your name) ha.....
A very easy solution is to add id or class to those two form-items (forward_page_subject and forward_page_message).
<?php '#attributes' => array('id' => 'forward-page-subject'); ?>
Another solution would be to add options to show/hide on the Forward preference page.
I could of course fix this by myself but an update will break it and I don't know how to make patches.. yet..
MrVictor
Comments
Comment #1
duncanc commentedNice idea, and could be extended to other parts of the form.
You can use this slightly clunky selector to hide the subject and body div's
form#forward-form > div > div#edit-recipients-wrapper + div.form-item + div.form-item,
form#forward-form > div > div#edit-recipients-wrapper + div.form-item + div.form-item + div.form-item
{ display: none};
Comment #2
MrVictor commentedOh, thanks. But is this compatible with all browsers? I know you could do it with some css3 selectors but then it wont work in all browsers, but these aren't css3 i reckon?
Comment #3
seanrFixed with IDs.