Home › Support › Image Store › resizing secure image gallery id
Tagged: resize, seccure image
-
AuthorPosts
-
February 6, 2014 at 7:02 pm #56854DuddlebugParticipant
how would you go about resizing the secure image gallery id and password boxes where the client adds their gallery id and password box. it seems like it to big for my lay out and I would like to fix the size to be smaller so it will fit.
I also like to know how I can go about changing the words ( To view your images please enter your login information below) to something else
February 8, 2014 at 9:54 am #56858Xpark MediaKeymasteryou 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 );
February 23, 2014 at 4:09 pm #56961DuddlebugParticipantFebruary 24, 2014 at 5:01 am #56965DuddlebugParticipantFebruary 24, 2014 at 5:31 pm #56971DuddlebugParticipantSorry I do not know why my website address will now show. http://www.annadecarlophotography.com
February 26, 2014 at 10:10 pm #56983Xpark MediaKeymasterTo hide the message use
.message.login{ display:none}
this will hide the message and you can add your own directly in the page.Not sure what other display changes you need but a screenshot of what you want will help.
-
AuthorPosts
- You must be logged in to reply to this topic.