Hide the TAGDIV COMPOSER button

Posted in: Newspaper
Post count: 74

Hello,

I only want to hide the TAGDIV COMPOSER button if the author’s permission. How should I set it?

https://drive.google.com/file/d/1a3yP5ymxrVAbNlhm2_7fgBkkyRBLQjOW/view?usp=sharing

Yukiy531

Post count: 35449

Hi,

If you use the last version of Newspaper v9.6.1 only the admin and editor can edit the cloud templates, and composer ( the changes will not be saved if is other type of user ), the rest or them can only to see the templates, you can make a test in this way and you’ll see how is working.

Thank you for your understanding!

Post count: 74

Hi,

For the editor only, can I hide the TAGDIV COMPOSER button?

Yukiy531

Post count: 35449

Hi,

Unfortunately our theme do not have a setting for this, sorry!
What I can do to help you is to provide you a custom code that need to be set in
wp-content/themes/Newspaper/functions.php
-> https://www.screencast.com/t/kEG62vKYdd
if(current_user_can('editor')){
?>
<style>
.tdc-panel-button, .edit_tdc_composer, #wp-admin-bar-tdc_edit {
display: none!important;
}
</style>
<?php
}

This code will hide the composer for editor.

Thank you for your understanding!

Post count: 74

Hello,
Thank you very much for your great help.

Yukiy531

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.