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

duncanc’s picture

Nice 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};

MrVictor’s picture

Oh, 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?

seanr’s picture

Version: 6.x-1.9 » 6.x-1.x-dev
Status: Active » Fixed

Fixed with IDs.

Status: Fixed » Closed (fixed)
Issue tags: -CSS, -hide, -id, -class

Automatically closed -- issue fixed for 2 weeks with no activity.

Issue tags: +CSS, +hide, +id, +