Hello Bettina!
When a new post is loaded during infinite scroll, an iframe is loaded including again the head scripts that we defined in the ANALYTICS/JS CODES section
When loading the head scripts again, some inconsistencies with advertisements occur
Thank you very much! We made the change and everything looks fine!
We made this change, but we noticed a certain instability in the database, is there any other way to make the “Post Settings” available to people with the “contributor” permission?
We updated to the latest version of the theme in a separate environment and running the Newspaper in version 12.2 and WordPress 5.7.1 we still don’t see the option when editing the post. The plugin code responsible for displaying this field is basically the same, I believe it is not an update issue, but the type of permission required in this version where the necessary capabilities do not satisfy the user with the collaborator role, in the theme code it is described that to be able to view the options it is necessary to have the ability to publish posts and if we are going to see the capabilities of the collaborator type users we see that it does not have “publish_posts” permission (https://wordpress.org/support/article/roles -and-capabilities/#contributor), for this reason I changed the source code so that the field appears for people with the “Contributor” role, can you help us find an alternative so that it is not necessary to change the file that controls this permission in specific?
Hello Anamaria!
We see on plugins files some restrictions to this section (“Post Settings”), the specific file that controls this functionality is “/wp-content/plugins/td-composer/legacy/common/wp_booster/wp-admin/content-metaboxes/td_templates_settings.php”, we changed line 75 where the code limits the permission level to see and edit this field in question if ( current_user_can('publish_post') ). We saw that wordpress users who are contributors do not have the permission specified in the code, we changed the code to if ( current_user_can('edit_posts') ), but this may have caused a certain instability in the database. Is there another alternative to be able to display the options other than the one I mentioned? https://drive.google.com/file/d/1v1ws-JwJ_rb2ILtnY2IjPlwHtV8sLjj4/view?usp=sharing -> print with an example of the functionality in question
Hi Calin, thank you for your reply.
I tried adding php code in the Cloud templates and tagDiv Composer, but it didn’t seem to work (we need to add PHP code as well).
We used the -child theme that was inside the Newspaper 11 zip file we got when the theme was purchased. How do we get the Newspaper 11 child theme?
-
This reply was modified 3 years by
r4you.
I tried both suggestions and the second one worked, thanks!