Skip to content
This repository was archived by the owner on Sep 18, 2019. It is now read-only.

Fix for date picker (and maybe more) #28

Open
andykillen opened this issue Sep 2, 2017 · 0 comments
Open

Fix for date picker (and maybe more) #28

andykillen opened this issue Sep 2, 2017 · 0 comments

Comments

@andykillen
Copy link

Perhaps customizer has been updated in the last 4 years since this set was made. There needs to be added

<?php echo $this->get_link() ?>

to each of the input html so that wordpress knows there is a change and the save button updates, and of course the data gets saved

example for date picker

<label>           
          <span class="customize-date-picker-control"><?php echo esc_html( $this->label ); ?></span>
          <input <?php echo $this->get_link() ?>  type="date" id="<?php echo $this->id; ?>" name="<?php echo $this->id; ?>" value="<?php echo $this->value(); ?>" class="startcamp_datepicker" />                    
        </label>

I'm not making a pull request as it seems to me clear that this is a dead project. I'm leaving this here so others can find out the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant