Ben Huson
Forum Replies Created
-
The next version of the plugin (version 2.0) will try to load a ‘password-protected-login.css’ from your theme folder if it exists.
So you can just add a ‘password-protected-login.css’ stylesheet file to your theme and place any style customisations in there.
Great. Thank you 🙂
True 🙂
You might need install the PHP widget so you can use the PHP code in there:
https://ww.wp.xz.cn/plugins/php-code-widget/If you want to do it in a widget you could just put a link to your home page with the query on the end. Eg
http://example.com/?password-protected=logout
<a href="http://example.com/?password-protected=logout">logout</a>Try changing the code to the following and see if this works:
function my_password_protected_is_active( $is_active ) { // Deactivate on front page if ( is_front_page() && ! isset( $_GET['password-protected'] ) ) { return false; } return $is_active; } add_filter( 'password_protected_is_active', 'my_password_protected_is_active' );Make sure you have just put the function and add_filter bit inside the existing php tags in your functions.php file.
ie. don’t copy the
<?phpand?>from the aboveDoes that fix your issue?
You could download and install this add-on plugin which will add some setting fields in the admin to customise some of the content on the page.
Or you could use the ‘password_protected_before_login_form’ and ‘password_protected_after_login_form’ filters:
https://github.com/benhuson/password-protected/wiki/DocumentationOr if you want to do lots of customisation you can make a copy of the ‘theme/password-protected-login.php’ file in the plugin at put it directly in your theme folder and customise that. Be careful not to change any of the functional PHP within that template and if the plugin is updated you may need to check wether changes have been made to that template and update your copy accordingly.
@quintinm You could follow the example above and put your styles in-between the
<style>tags.Thanks Daniel, I’ll try testing that configuration for registrations.
Hi.
This plugin uses the wp_list_pages() function to display pages.
There is currently a support ticket relating to this core WordPress function in Trac which does’t display private pages.
It would obviously be nice if this was fixed in WordPress but I have added an issue to the plugins issue list as a possible enhancement if a simple workaround can be implemented.
Ben
Forum: Plugins
In reply to: [Expire Users] Expire date field on admin's users listingCan you confirm if you click into a user’s profile the Expire date appears correctly there?
Are there any other details about your installation? Is it a MultiSite install?
Can you confirm if you click into a user’s profile the Expire date appears correctly there?
Are there any other details about your installation? Is it a MultiSite install?
You can add a style to your
<p>tag:<p style="text-align: center;">I have also recently created an add-on plugin that adds fields to the settings page for you to manage this content:
https://github.com/benhuson/password-protected-customizerForum: Plugins
In reply to: [BackUpWordPress] Database duplicates?I am also getting this issue too.
Pretty sure it wasn’t happening before upgrading to version 3.1.3?
Forum: Reviews
In reply to: [WP Subtitle] NOt show formThere was an issue where it would’t show the subtitle field until after you had saved a new post. This is fixed in more recent versions of the plugin.