Home › Forums › WordPress Plugins › Hide My WP › HMWP not hides Coming Soon plugin page
- This topic has 8 replies, 2 voices, and was last updated 11 years, 1 month ago by dface.
-
AuthorPosts
-
November 18, 2013 at 2:08 pm #422dfacePost count: 16
Hello,
I have installed “Ready! Coming Soon plugin” http://wordpress.org/support/plugin/coming-soon-maintenance-mode-ready
When i changing my webpage in coming soon mode, HMWP does nothing, so this temporary page reveals wordpress elements.
How to resolve this issue?
Thank You !
November 21, 2013 at 6:44 pm #427HassanPost count: 955Hi-
This is a known problem. HMWP need to know your current theme. When you use a coming soon/maintenance plugin it filter your current theme and this confuse HMWP.
You usually can fix this problem using Replace URLs. Add something like below to Replace URLs box:
wp-content/plugins/coming-soon-maintenance-mode-ready/==/coming-soon/
PS:
We can’t do it by default because there are many coming soon plugins.November 21, 2013 at 7:58 pm #431dfacePost count: 16This reply has been marked as private.November 21, 2013 at 9:06 pm #435HassanPost count: 955I uses this method for some other plugins and it works.
If you guess correctly you should find a htaccess file within the plugin directori(es)
Maybe the coming soon theme folder is somewhere other than plugin directory root.
Which URLs do you see in the source code of coming soon page? (e.g. for styles and images)
November 21, 2013 at 9:20 pm #438dfacePost count: 16This reply has been marked as private.November 23, 2013 at 9:39 pm #441HassanPost count: 955Well, in fact Replace URL works itself what doesn’t work is replacing old URLs with new ones. This means the plugin run very soon so it doesn’t allow to any other plugin like HMWP catch it and change its code !!
I checked out the plugin source code. It has relatively a complex structure.
Anyway, this is my last idea. None of following were tested but may work. Use your file manager or a FTP program to open this file: wp-content/plugins/coming-soon …/modules/coming soon/mod.php
Find this line at the top of the code.
add_action('plugins_loaded', array($this, 'doCominSoonPage'));
And replace it with:
add_action('after_setup_theme', array($this, 'doCominSoonPage'));
Try it, if it doesn’t solve the problem do it reverse. Back your previous changes and open hide-my-wp.php in hide-my-wp directory then replace this line:
add_action('after_setup_theme',array(&$this, 'ob_starter') , 0);
with this one:
add_action('plugins_loaded',array(&$this, 'ob_starter') , 0);
Update topic with your result.
November 23, 2013 at 11:19 pm #448dfacePost count: 16This reply has been marked as private.November 24, 2013 at 10:20 pm #450HassanPost count: 955As I said it has a relatively complex structure and finding a solution may need lots of trials and errors.
I personally suggest to change this plugin and use lots of other free coming soon themes/plugins. If you’re a code you may also change plugin’s template (manually replace codes with final URLs).
It located here:
wp-content / plugins / coming-soon-maintenance-mode-ready / modules / csp_tpl_standard / views / tpl / csp_tpl_standardCSPHtml.php
Sorry but this is all I know 😐
November 25, 2013 at 12:13 am #451dfacePost count: 16This reply has been marked as private. -
AuthorPosts
You must be logged in to reply to this topic.