Skip to content
Public Ticket #22007

Table of Contents blocked with Copy Protection plugin

Conversation thread

vanessa_ball replied

Customer Reply

YAY - this works. Thank you!

PenciDesign Supporter replied

Staff Reply

Hi,

Please go to Appearance → Customize → Custom CSS: remove the following CSS code I've sent you before:

.wp-block-uagb-table-of-contents.uagb-toc__collapse .uagb-toc__list-wrap {
  display: block !important;
}

Regards,
PenciDesign.


vanessa_ball replied

Customer Reply

OK thank you for clarifying. Spectra is updated and the icon appears, however, the TOC will not collapse. 

PenciDesign Supporter replied

Staff Reply

Hi,

The Table of content you're using is an element of the Spectra plugin. Please check this plugin setting and update to the latest version then check again.

Regards,
PenciDesign.


vanessa_ball replied

Customer Reply

As previously mentioned, I don't use a TOC plugin. This is customised Table of Contents in Soledad. Please read the thread and let me know if there is a solution.

PenciDesign Supporter replied

Staff Reply

Hi,

I can make sure the latest theme update doesn't relevant to the TOC problem.

The problem is that your TOC plugin doesn't show the TOC icon on the heading, so you can toggle it to show/hide.

jWP6gIQ.png

Regards,
PenciDesign.


vanessa_ball replied

Customer Reply

The Table of contents (TOC) works fine with the Copy Protection before the last update.

The CSS code shows the TOC but is always open. Is there any way to allow this to collapse and open?

PenciDesign Supporter replied

Staff Reply

Hi,

In the front-end, the Table of contents (TOC) doesn't work because Copy Protection has disabled all the mouse events, so the TOC can't open when you've interactive.

You can force the TOC always display by adding the following CSS code to Appearance → Customize → Custom CSS:

.wp-block-uagb-table-of-contents.uagb-toc__collapse .uagb-toc__list-wrap {
  display: block !important;
}

Regards,
PenciDesign.



vanessa_ball replied

Customer Reply

I have cleared my cache, check on Chrome (updated), Safari & Firefox and it won't click on the front end. I have checked in the back end and still get the error. The only way I get the same as you is when I deactivate the Copy Protection plugin. How did you make it work without deactivating the Copy Protection plugin?

PenciDesign Supporter replied

Staff Reply

Hi,

I've logged in to your site, and all the Gutenberg blocks are working correctly without any issue, here is a screenshot:

OpgQiMl.png

Please check again.

Regards,
PenciDesign.


PenciDesign Supporter replied

Staff Reply

Hi,

Please send me your WordPress admin account in a PRIVATE reply. I'll log in and help you check it.

Regards,
PenciDesign.


vanessa_ball replied

Customer Reply

The Customised Table of Contents in Soledad is the problem. It was created whilst I had the Copy Protection installed and worked. Since the last update, I check the posts on the back end and there is an error with the block and will not work on the front end. 

PenciDesign Supporter replied

Staff Reply

Hi,

1. This problem is not relevant to the Soledad theme, so you should contact the author of the plugin you've installed to get an efficient solution.

2. Soledad theme already included the Table of contents features, you can try to use it by going to Appearance → Customize → Table of contents.

Regards,
PenciDesign.


vanessa_ball started the conversation

Conversation Start

I've just replaced my TOC plugin with the TOC block in all my blogs. Now I realise that this can not be used with the WP Content Copy Protection & No Right Click plugin as the TOC won't open.

Is there any code that can be added to make it work, or do I just need to go back to a plugin and go through all the blogs to delete the TOC block?

Want to join this conversation or access attachments? Sign in first.