Jump to content

How to Hide "Quick Shortcuts" from Client Area Product Details Page


Davor

Recommended Posts

 I want to remove the "Quick Shortcuts" from:

Client Area > My Products & Services > Product Details 

I'm trying with this hook code, but no luck:

 

# remove the "Quick Shorcuts" from the Client Portal > Product Details
add_hook('ClientAreaPageProductDetails', 1, function($vars)
{
		return "<style>
		.cPanelQuickShortcutsPanel {display: none;}
		</style>"
});

 

QS.png

Link to comment
Share on other sites

For my reference in future or if anyone also needs this. Here is the hook that works:

 

# remove the "Quick Shorcuts" from the Client Portal > Product Details
add_hook('ClientAreaProductDetailsOutput', 1, function($vars)
{
		return "<style>
		#cPanelQuickShortcutsPanel {display: none;}
		</style>";
});

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
  • 1 year later...

On 9/21/2021 at 8:26 PM, Davor said:
For my reference in future or if anyone also needs this. Here is the hook that works:
# remove the "Quick Shorcuts" from the Client Portal > Product Details
add_hook('ClientAreaProductDetailsOutput', 1, function($vars)
{
return "
<style>
#cPanelQuickShortcutsPanel {display: none;}
</style>
";
});

Doesn't anyone have a solution other than  "display none"?  Anyone who knows some CSS and knows some Chrome Dev Tools will be able to make the section visible and then access the cpanel. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated