Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi there,
If you just want to change the layout to two/three columns, you no need to care about the template.php or profile_listing.tpl.php files. Just add this to your style.css file in your theme :
#profile .profile {
width: 45%;
margin-right: 10px;
float: left;
clear: none;
margin-bottom: 0px;
_word-wrap: break-word;
border: 1px solid #7F98A7;
margin-bottom: 1em;
_position: relative; /* avoid IE peekaboo bug */
}
Note:
- The "width: 45%", "clear: none" and "float: left" settings make it from one column to two
- Set width to 30% to get three columns
- Don't forget to remove the conflict profile css settings from the drupal/themes/your_theme_folder/style.css file first, especially the "clear: both" setting
Comments
For one specific profile type
How do you target one specific profile type, and how do you send, in the second column, one specific field?
Thanks.
Drupal in the snow