Jump to content


Photo
- - - - -

Box classes


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1 smitchell360

smitchell360

    Member

  • Members
  • PipPip
  • 14 posts

Posted 07 January 2011 - 05:09 PM

Add option to prepend the class of boxes so that we can style them more specifically.

CODE to add after line 84-ish in section.boxes.php

 
	'the_box_class'	=> array(
	     'version' => 'pro',
	     'type' => 'text',
	     'inputlabel' => 'Box Class Prepend (Optional)',
	     'exp' => 'These classes will be prepended to the box styles'
	)

CODE to add to NEW LINE 180 (assuming code above was added) of section.boxes.php

 
	
	<div class="dcol_<?php echo $perline;?> dcol box_<?php echo $post->ID; ?> <?php echo get_post_meta($post->ID, 'the_box_class', true); ?>">
	


#2 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 07 January 2011 - 06:44 PM

Thanks Scott I think a lot of people will find this useful

#3 jmcollett

jmcollett

    Advanced Member

  • Members

  • 47 posts

Posted 28 January 2011 - 10:18 AM

Please excuse my ignorance, but can you please indicate what this will do for the boxes?

#4 cmunns

cmunns

    Advocate

  • Members

  • 6537 posts

Posted 28 January 2011 - 09:07 PM

@ Martin, it allow you to style each box individually e.g. if you wanted one to have a different background color, etc.