Help with Sections
- This topic has 4 replies, 2 voices, and was last updated 9 years, 3 months ago by
Anh Tran.
-
AuthorPosts
-
January 11, 2016 at 2:26 PM #2092
carassius
ParticipantI have an issue where my fields are not displaying correctly in the dashboard and hoping you may be able to shed some light on what is happening?
In this first image, you can see how the Contact Info section is hidden behind the Tasks section
And when I move it below the Tasks section, you can see how the fields are there but they break out of the section's div
January 11, 2016 at 3:02 PM #2094carassius
ParticipantI was able to fix with adding in some admin css, but that is a work around, not a solution to the problem
div#p52_contact_contact {
height: 300px;
}January 11, 2016 at 5:20 PM #2100Anh Tran
KeymasterCan you post your code? I guess the total of columns on some rows does not equal to 12, can you please check that (especially the last row)?
January 12, 2016 at 9:35 AM #2112carassius
ParticipantThey all have
'columns': 6
/*************************** * create contact metaboxes ***************************/ function p52_contact_before_meta_boxes( $meta_boxes ) { $prefix = 'p52_contact_'; // contact info meta box $meta_boxes[] = array( 'id' => $prefix . 'contact', 'title' => 'Contact Info', 'pages' => array('p52-contact'), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array( 'name' => 'Company', 'id' => $prefix . 'company', 'type' => 'text', 'columns' => 6 ), array( 'name' => 'Relationship', 'id' => $prefix . 'relationship', 'type' => 'select', 'options' => array( 'prospect' => 'Prospect', 'lead' => 'Lead', 'client' => 'Client', 'agency' => 'Agency', 'contractor' => 'Contractor', 'assitant' => 'Assistant', 'supplier' => 'Supplier' ), 'placeholder' => 'Choose your relationship', 'columns' => 6 ), array( 'name' => 'Phone', 'id' => $prefix . 'phone', 'type' => 'text', 'columns' => 6 ), array( 'name' => 'Email', 'id' => $prefix . 'email', 'type' => 'text', 'columns' => 6 ), array( 'name' => 'Address', 'id' => $prefix . 'address', 'type' => 'textarea', 'columns' => 6 ), array( 'name' => 'Postal Address', 'id' => $prefix . 'postal', 'type' => 'textarea', 'columns' => 6 ), ) );
January 15, 2016 at 3:43 PM #2137Anh Tran
KeymasterI was able to test your full code with the FTP details you just sent. However, it looks right in my localhost:
So strange :(. Can you check again, or please send me the URL of your website so I can have closer look?
-
AuthorPosts
- The topic ‘Help with Sections’ is closed to new replies.