Skip Navigation

[Resolved] delete the black band at the top for users authenticated as subscribers, and so on…

This thread is resolved. Here is a description of the problem and solution.

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Luo Yang 5 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1189340

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

#1189570

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

#1189605

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/

#1190323

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?

#1190330

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

#1190444

Q2: Ok, I suggested New Feature for Toolset

Q3: Ok it's work!

#1190844

You are welcome

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.