-
AuthorPosts
-
November 25, 2016 at 1:25 pm #716813
Hi,
first of all I want to thank you for your awesome Theme Enfold.
But I have a problem:
I made a password protected page for a costumer. And now it looks like that:
http://www.directupload.net/file/d/4550/b3nkpp67_png.htmFor the moment, the whole header is missing. All I want is that the navigation is “display:none” but the logo should be on the left sideof course.
my php-code for functions is:
<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ //beitragspasswort add_filter( 'the_password_form', 'custom_password_form' ); function custom_password_form() { global $post; $label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID ); $o = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">' . __( "Bitte geben Sie hier das Zauberwort ein." ) . ' <br><label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" /> </form> '; return $o; } function sv_hide_header_footer_for_page() { if( is_page( 165 ) ) { ?> <style> header#header, div.footer-widgets { display:none; } </style> <?php } } add_action( 'wp', 'sv_hide_header_footer_for_page' ); function custom_password_cookie_expiry( $expires ) { return 0; // Cookie für eine Session } add_filter( 'post_password_expires', 'custom_password_cookie_expiry' ); ?>
What i’am doing wrong?
Thanks
- This topic was modified 8 years ago by fxkreative.
November 26, 2016 at 6:57 am #717147Hey fxkreative,
I think it might be easier to do that with CSS, could you post a link to the site in question so that we can take a closer look please?
Best regards,
RikardNovember 26, 2016 at 8:50 pm #717257Hi Rikard,
thanks for your reply.
Like you said, i fixed it with CSS yesterday on the late evining after an hour of research.
You can close the thread.
Thanks again
- This reply was modified 7 years, 12 months ago by fxkreative.
November 26, 2016 at 9:25 pm #717263Hi!
We are sorry we could not help faster.
Please let us know if we can do anything else for you.Thanks a lot
Cheers!
Basilis -
AuthorPosts
- The topic ‘Password Protected Page – Logo Missing’ is closed to new replies.