Public Post Preview not working with “Newspaper – News & WooCommerce WordPress” theme. The plugin generates links but it is not working. The generated URL is redirected to some other theme pages.
Hello @coinedition!
I’m glad that your account has been recovered. Please do not create the same topic in multiple locations in order to avoid multiple responses.
Unfortunately, we cannot provide support for untested plugins.
Thank you for your understanding!
I understand that you won’t provide support for third-party/untested plugins. Can you show us how to add a custom code (mentioned below) to the theme?
if (isset($query->query['_ppp']) and isset($query->query['preview'])){
return;
}
This code will fix our redirection issue. The redirection is caused by the theme and cloud library. Now I just added this code to the tdb_functions file in the td-clod-library plugin, but it is not a proper method and the change will get lost if the plugin updates.
PFA:- https://imgur.com/a/q4Tqgjw
So, how can I add that code without affecting the future update?
Hello @coinedition!
Save the code and replace it after the update. This won’t work with the child theme.
Thank you!
oh, so there is no option to update this without a plugin file edit? We need to add the code again if the plugin is updated, right? Kindly add a new option in the theme to create small functional changes without the core file edit.
Will there be any issues in the future with the theme and the code we suggested?
Please let us know your thoughts
Thank you
Hello @coinedition!
We can not ensure that the code won’t create problems in future.
We will take in consideration your query.
Thank you!
Okay. Since there are no options to add a custom code to the theme file, the only option available is to edit the core files, right? We will do that then since we need that functionality immediately.
Hello @coinedition!
Yes, you can edit the files. But please make a full backup before proceeding.
For customization and other services, you can contact our custom work team here: https://tagdiv.com/premium-customization-services/ and they can fully help you.
Thank you for understanding!