![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I've added some additional "featured boxes" to the three default ones on the homepage – no problem there, everything works fine. But now I want to give the user the possibility to choose for every box wether or not it should be visible on the homepage. I've added Code:
'featured_top_left_visible' => 1 Code:
<p>Show box?<br/><input type="checkbox" name="<?php echo $settings; ?>[featured_top_left_visible]" value="<?php echo get_theme_mod('featured_top_left_visible'); ?>"
<?php if(get_theme_mod('featured_top_left_visible')) : ?>checked="checked"<?php endif; ?>><?php echo get_theme_mod('featured_top_left_visible'); ?> </p>
It seems that the value is somehow erased from the database once I uncheck the checkbox. Any hints or ideas? Thanks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| featured boxes | thewahm | General Discussion | 1 | 11-02-2009 08:48 PM |
| Text Boxes in place of Featured Content Boxes | IconicImagery | General Discussion | 5 | 08-05-2009 11:24 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us