Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #3110667
Table of Contents blocked with Copy Protection plugin
Closed

Comments

  • vanessa_ball started the conversation

    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?

  •  2,488
    PenciDesign replied

    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 replied

    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. 

  •  2,488
    PenciDesign replied

    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 privately
  •   vanessa_ball replied privately
  •  2,488
    PenciDesign replied

    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.


  • vanessa_ball replied

    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?

  •  2,488
    PenciDesign replied

    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

    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?

  •  2,488
    PenciDesign replied

    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

    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.

  •  2,488
    PenciDesign replied

    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

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

  •  2,488
    PenciDesign replied

    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

    YAY - this works. Thank you!