Tagged: widget
- This topic has 1 reply, 2 voices, and was last updated 5 years ago by
Steve.
Viewing 1 reply thread
-
AuthorPosts
-
-
January 5, 2017 at 7:11 am #7710
nirjhorParticipantWhenever I add this widget to multiple widget areas, the later ones doesn’t save at all.
Am I doing somethoing wrong.Here is my code for my piklist widget:
social-link-form.php
<?php piklist('field', array( 'type' => 'text', 'field' => 'widget_title', 'label' => 'Title' )); piklist('field', array( 'type' => 'group', 'field' => 'social_media_container', 'label' => '', 'fields' => array( array( 'type' => 'group', 'field' => 'single_social_media', 'label' => '', 'add_more' => true, 'fields' => array( array( 'type' => 'select', 'field' => 'social_icon', 'label' => 'Social Media', 'columns' => 4, 'choices' => array( '' => 'Select', 'facebook' => 'Facebook', 'twitter' => 'Twitter', 'linkedin' => 'LinkedIn', 'google+' => 'Google+', 'behance' => 'Behance', 'pinterest' => 'Pinterest' ) ), array( 'type' => 'text', 'field' => 'social_link', 'label' => 'Link', 'columns' => 8, ) ) ) ) )); ?>social-link.php
<?php /* Title: Social Links */ ?> <div class="footer-social-item single-footer"> <ul><?php foreach($settings['social_media_container']['single_social_media'] as $social_list) { echo '<li><a target="_blank" href="'.$social_list['social_link'].'"><i class="fa '.$social_list['social_icon'].'"></i></a></li>'; } ?></ul> </div> -
January 17, 2017 at 5:18 pm #7727
-
-
AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.