ez-toc-settings[exclude_css] not working
-
thanks for the great plugin
I think that the ez-toc-settings[exclude_css] switch does not work in the latest version and the CSS is being exported, so could you take a look?
-
Sorry for the inconvenience. We will check this scenario on our end and will get back to you.
I can confirm that I’m seeing the same issue.
@kylejlarson: As per forum guidelines, Please create a new topic on your issue. So that we will assist with your case individually there.
I hope that developers will fix that. But as a hotfix you can comment these lines in the table-of-contents.php file:
266 wp_register_style( ‘ez-toc’, EZ_TOC_URL . “assets/css/screen$min.css”,
267 array( ‘ez-icomoon’ ),
268 ezTOC::VERSION );And:
476 echo “<style>$css</style>”;
Sorry for the inconvenience. Can you please check once by rollback to the previous version and let us know back it is happening due to the update or any conflict?
I tested it locally and it was the same.
Freshly installed WordPress 6.1
no other plugins
Theme: Twenty Twenty-Three“Easy Table of Contents” is left as default
even if checked
<style>.ez-toc-container-direction … I’m worried about the following being written out————————
Easy Table of Contents 2.0.38■ Advanced / CSS : no check
<head>
<link rel=’stylesheet’ id=’ez-toc-css’ href=’/wp-content/plugins/easy-table-of-contents/assets/css/screen.min.css?ver=6.1.1′ media=’all’ />
<style id=’ez-toc-inline-css’>div#ez-toc-container p.ez-toc-title {font-size: 120%;}div#ez-toc-container p.ez-toc-title {font-weight: 500;}div#ez-toc-container ul li {font-size: 95%;}div#ez-toc-container nav ul ul li ul li {font-size: 90%!important;}</style><style>.ez-toc-container-direction {direction: ltr;}.ez-toc-counter ul{counter-reset: item;}.ez-toc-counter nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}.ez-toc-widget-direction {direction: ltr;}.ez-toc-widget-container ul{counter-reset: item;}.ez-toc-widget-container nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}</style>
</head></footer>
</body>■ Advanced / CSS : checked
<head>
<style>.ez-toc-container-direction {direction: ltr;}.ez-toc-counter ul{counter-reset: item;}.ez-toc-counter nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}.ez-toc-widget-direction {direction: ltr;}.ez-toc-widget-container ul{counter-reset: item;}.ez-toc-widget-container nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}</style></head></head>
</footer>
<link rel=’stylesheet’ id=’ez-toc-css’ href=’/wp-content/plugins/easy-table-of-contents/assets/css/screen.min.css?ver=6.1.1′ media=’all’ />
</body>————————
Easy Table of Contents 2.0.37■ Advanced / CSS : no check
<head>
<link rel=’stylesheet’ id=’ez-toc-css’ href=’/wp-content/plugins/easy-table-of-contents/assets/css/screen.min.css?ver=6.1.1′ media=’all’ />
<style id=’ez-toc-inline-css’>
div#ez-toc-container p.ez-toc-title {font-size: 120%;}div#ez-toc-container p.ez-toc-title {font-weight: 500;}div#ez-toc-container ul li {font-size: 95%;}div#ez-toc-container nav ul ul li ul li {font-size: 90%!important;}
</style><style>.ez-toc-container-direction {direction: ltr;}.ez-toc-counter ul{counter-reset: item;}.ez-toc-counter nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}.ez-toc-widget-direction {direction: ltr;}.ez-toc-widget-container ul{counter-reset: item;}.ez-toc-widget-container nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}</style>
</head></footer>
</body>■ Advanced / CSS : checked
<head>
<style>.ez-toc-container-direction {direction: ltr;}.ez-toc-counter ul{counter-reset: item;}.ez-toc-counter nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}.ez-toc-widget-direction {direction: ltr;}.ez-toc-widget-container ul{counter-reset: item;}.ez-toc-widget-container nav ul li a::before {content: counters(item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}</style></head></head>
</footer>
<link rel=’stylesheet’ id=’ez-toc-css’ href=’/wp-content/plugins/easy-table-of-contents/assets/css/screen.min.css?ver=6.1.1′ media=’all’ />
</body>————————
Easy Table of Contents 2.0.36■ Advanced / CSS : no check
<head>
<link rel=’stylesheet’ id=’ez-toc-css’ href=’/wp-content/plugins/easy-table-of-contents/assets/css/screen.min.css?ver=6.1.1′ media=’all’ />
<style id=’ez-toc-inline-css’>
div#ez-toc-container p.ez-toc-title {font-size: 120%;}div#ez-toc-container p.ez-toc-title {font-weight: 500;}div#ez-toc-container ul li {font-size: 95%;}div#ez-toc-container nav ul ul li ul li {font-size: 90%!important;}
.ez-toc-container-direction{direction:ltr}.ez-toc-counter ul{counter-reset:item}.ez-toc-counter nav ul li a::before{content:counters(item,”.”,decimal) “. “;display:inline-block;counter-increment:item;flex-grow:0;flex-shrink:0;margin-right:.2em;float:left}.ez-toc-widget-direction{direction:ltr}.ez-toc-widget-container ul{counter-reset:item}.ez-toc-widget-container nav ul li a::before{content:counters(item,”.”,decimal) “. “;display:inline-block;counter-increment:item;flex-grow:0;flex-shrink:0;margin-right:.2em;float:left}
</style>
</head></footer>
</body>■ Advanced / CSS : checked
<head>
</head></footer>
</body>Sorry for the inconvenience. Please go through the Help & Support tab from the settings panel if possible.
With or without checking “Prevent the loading the core CSS styles. When selected, the appearance options from above will be ignored.” in Advanced, the export of the following CSS cannot be controlled in version 2.0.37 or later.
I don’t want to write this out.<style>.ez-toc-container-direction {direction: ltr;}.ez-toc-counter ul{counter-reset: item;}.ez-toc-counter nav ul li a::before {content: counters( item, “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}.ez -toc-widget-direction {direction: ltr;}.ez-toc-widget-container ul{counter-reset: item;}.ez-toc-widget-container nav ul li a::before {content: counters(item , “.”, decimal) “. “;display: inline-block;counter-increment: item;flex-grow: 0;flex-shrink: 0;margin-right: .2em; float: left;}</style >
Thanks for sharing in detail. We will check thin scenario same at our end and get back to you immediately.
We have raised the ticket in our repository in GitHub: https://github.com/ahmedkaludi/Easy-Table-of-Contents/issues/330
We will fix this in our upcoming update and once it gets fixed then we will get back to you with an update.
Can you please check once the issue by upgrading the plugin:
https://github.com/ahmedkaludi/Easy-Table-of-Contents/tree/2.0.40The above one is the latest version, please download the link and test once and let us know back if the issue is happening or not.
Thank you.
I downloaded it from github and confirmed it works.Thanks for confirmation. It will be in next update and If any issues happening further then do let us know.
- The topic ‘ez-toc-settings[exclude_css] not working’ is closed to new replies.