Jump to content
Sign in to follow this  
smitchell360

Box classes

Recommended Posts

smitchell360

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); ?>">
	
	

Share this post


Link to post
Share on other sites
cmunns

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

Share this post


Link to post
Share on other sites
jmcollett

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

Share this post


Link to post
Share on other sites
cmunns

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×