Bring Your Business to Life › Support › Image Store › resizing secure image gallery id › Reply To: resizing secure image gallery id
February 8, 2014 at 9:54 am #56858
Keymaster
you can change the size of the fields using css if you have worked with css. you want to add this to your child theme so you don’t lose the changes when you update your theme or image store.
If you need help with the css rules please provide a link to your site.
add this code in your child theme or into a plugin, and change the wording “To view your images please enter your login information below”. You canl also change the html if you know how.
function theme_change_imstore_login_user_form( $form, $gallery ){
$gallery_label = "ims-galbox-{$gallery->ID}";
$password_label = "ims-pwdbox-{$gallery->ID}";
$nonce = wp_create_nonce( 'ims_access_form' );
$output = '<form action="' . get_permalink( $gallery->ID ) . '" method="post">
<p class="message login">' . __( "To view your images please enter your login information below:", 'ims' ) . '</p>
<div class="ims-fields">
<label for="' . $gallery_label . '">' . __("Gallery ID:", 'ims') . '</label>
<input type="text" id="' . $gallery_label . '" name="' . $gallery_label . '" /><span class="linebreak"></span>
<label for="' . $password_label . '">' . __("Password:", 'ims') . '
</label> <input name="' . $password_label . '" id="' . $password_label . '" type="password" />
<span class="linebreak"></span>
<input type="submit" name="login-imstore" value="' . esc_attr__("log in", 'ims') . '" />
<input type="hidden" name="_wpnonce" value="' . esc_attr( $nonce ) . '" />
' . apply_filters( 'ims_after_login_form', '' ) . '
</div>
</form>
';
return $output;
}
add_filter( 'ims_login_form', 'theme_change_imstore_login_user_form', 50, 2 );