Thanks Luo,
I had not checked the
Custom access permissions for Toolset forms.
I would like to delete the black band at the top for users authenticated as subscribers and I would like to add the link to page register on the site in the login form.
in addition, I would like to insert a button with the logout in the main menu but I can not figure out how to do it.
Thank you
Good morning,
in addition to the 2 requests above, I would like to know how to make a LOGIN menu from the main menu in popup / modal mode.
Thank you
Hello,
Q1) I would like to delete the black band at the top for users authenticated as subscribers
The "black band" is called wordpress admin bar.
There isn't such a built-in feature within Toolset plugins, you might consider custom codes.
for example:
hidden link
Q2) I would like to add the link to page register on the site in the login form.
You can setup the link with HTML codes, for example:
<a href="<em><u>hidden link</u></em>">Regiseter</a>
Q3) I would like to insert a button with the logout in the main menu but I can not figure out how to do it.
There isn't such a feature within Toolset plugin, you might consider custom codes too, for example:
hidden link
hidden link
For other questions, please check new thread here, we prefer one question one ticket, that will help other users to find the answers.
https://toolset.com/forums/topic/i-would-like-to-know-how-to-make-a-login-menu-from-the-main-menu-in-popup-modal-mode/
Thanks Luo,
about the Q1, ok Thanks.
I did:
/ * Hide admin bar for certain roles * /
add_action ('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar () {
if (! current_user_can ('administrator') &&! is_admin ()) {
show_admin_bar (false);
}
}
Q2.
Regarding this I would like the link to be inside the login form and not outside. is not there a way?
Do I have to create a login form? how can I do?
Q3. my logout menu is in a submenu so I did this:
created a custom link nem main manu, insert this link: hidden link
then in the function.php I inserted
add_action ('check_admin_referer', 'logout_without_confirm', 10, 2);
function logout_without_confirm ($ action, $ result)
{
/ **
* Allow logout without confirmation
* /
if ($ action == "log-out" &&! isset ($ _ GET ['_ wpnonce'])) {
$ redirect_to = isset ($ _ REQUEST ['redirect_to'])? $ _REQUEST ['redirect_to']: 'https: //www.xxxxxx.xxxx';
$ location = str_replace ('& amp ;,', '&', wp_logout_url ($ redirect_to));
header ("Location: $ location");
die;
}
}
All right?
Q2) I assume you using shortcode [wpv-login-form] to display the login form, see our document:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-login-form
There isn't such a feature to display the link inside the login form
You can submit a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
Q3) That depends on yourself, does it work in your website?
I have searched it in google, seems the codes are recommended:
https://wordpress.stackexchange.com/questions/67336/how-to-log-out-without-confirmation-do-you-really-want-to-log-out/67342
Q2: Ok, I suggested New Feature for Toolset
Q3: Ok it's work!