Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our demo. We don`t offer theme customization.

Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
3. Check FAQ on Themeforest.
If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration.

NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.
Hide My WP
  • Hi,

    I've purchased the Hide My WP Plugin (source on CodeCanyon). I tried to install it on my website that used Doover Theme but there are some problems. Do you try the compatibility between these two plugins?

    Thank you for your attention.
  • 3 Comments sorted by
  • Please sign in to see answear!
  • And if I would to hide all references to WP? Can I do it in Doover Theme?
    - hide wp-content
    - rewrite static theme assets and plugins directory
    - rewrite /wp-content/themes/theme-name/css/ to /css/
    - rewrite /wp-content/themes/theme-name/js/  to /js/
    - rewrite /wp-content/themes/theme-name/img/ to /img/
    - rewrite /wp-content/plugins/ to /plugins/

    I've tried with this code in functions.php but don't work in this theme:
    function roots_flush_rewrites() {
      global $wp_rewrite;

    function roots_add_rewrites($content) {
      $theme_name = next(explode('/themes/', get_stylesheet_directory()));
      global $wp_rewrite;
      $roots_new_non_wp_rules = array(
        'css/(.*)'      => 'wp-content/themes/'. $theme_name . '/$1',
        'js/(.*)'       => 'wp-content/themes/'. $theme_name . '/js/$1',
        'img/(.*)'      => 'wp-content/themes/'. $theme_name . '/img/$1',
        'inc/(.*)'      => 'wp-includes/$1',
        'pl/(.*)'       => 'wp-content/plugins/$1'

      $wp_rewrite->non_wp_rules += $roots_new_non_wp_rules;
    add_action('admin_init', 'roots_flush_rewrites');

    function roots_clean_assets($content) {
        $theme_name = next(explode('/themes/', $content));
        $current_path = '/wp-content/themes/' . $theme_name;
        $new_path = '/css';
        $content = str_replace($current_path, $new_path, $content);
        return $content;

    function roots_clean_plugins($content) {
        $current_path = '/wp-content/plugins';
        $new_path = '/pl'; // or whatever you want for a new folder name
        $content = str_replace($current_path, $new_path, $content);
        return $content;

    function roots_clean_includes($content) {
        $current_path = '/wp-includes';
        $new_path = '/inc';
        $content = str_replace($current_path, $new_path, $content);
        return $content;


    add_action('generate_rewrite_rules', 'roots_add_rewrites');

    if (!is_admin()) {
      add_filter('plugins_url', 'roots_clean_plugins');
      add_filter('bloginfo', 'roots_clean_assets');
      add_filter('stylesheet_directory_uri', 'roots_clean_assets');
      add_filter('template_directory_uri', 'roots_clean_assets');
      add_filter('script_loader_src', 'roots_clean_plugins');
      add_filter('script_loader_src', 'roots_clean_includes');
      add_filter('style_loader_src', 'roots_clean_includes');
      add_filter('style_loader_src', 'roots_clean_plugins');

    // Root relative URLs in WordPress

    function roots_root_relative_url($input) {

      $output = preg_replace_callback(
          // if full URL is site_url, return a slash for relative root
          'if (isset($matches[0]) && $matches[0] === site_url()) { return "/";' .
          // if domain is equal to site_url, then make URL relative
          '} elseif (isset($matches[0]) && strpos($matches[0], site_url()) !== false) { return $matches[2];' .
          // if domain is not equal to site_url, do not make external link relative
          '} else { return $matches[0]; };'
      return $output;

    // workaround to remove the duplicate subfolder in the src of JS/CSS tags
    // example: /subfolder/subfolder/css/style.css

    function roots_fix_duplicate_subfolder_urls($input) {
      $output = roots_root_relative_url($input);
      preg_match_all('!([^/]+)/([^/]+)!', $output, $matches);
      if (isset($matches[1]) && isset($matches[2])) {
        if ($matches[1][0] === $matches[2][0]) {
          $output = substr($output, strlen($matches[1][0]) + 1);
      return $output;
    if (!is_admin() && !in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'))) {
      add_filter('bloginfo_url', 'roots_root_relative_url');
      add_filter('theme_root_uri', 'roots_root_relative_url');
      add_filter('stylesheet_directory_uri', 'roots_root_relative_url');
      add_filter('template_directory_uri', 'roots_root_relative_url');
      add_filter('script_loader_src', 'roots_fix_duplicate_subfolder_urls');
      add_filter('style_loader_src', 'roots_fix_duplicate_subfolder_urls');
      add_filter('plugins_url', 'roots_root_relative_url');
      add_filter('the_permalink', 'roots_root_relative_url');
      add_filter('wp_list_pages', 'roots_root_relative_url');
      add_filter('wp_list_categories', 'roots_root_relative_url');
      add_filter('wp_nav_menu', 'roots_root_relative_url');
      add_filter('the_content_more_link', 'roots_root_relative_url');
      add_filter('the_tags', 'roots_root_relative_url');
      add_filter('get_pagenum_link', 'roots_root_relative_url');
      add_filter('get_comment_link', 'roots_root_relative_url');
      add_filter('month_link', 'roots_root_relative_url');
      add_filter('day_link', 'roots_root_relative_url');
      add_filter('year_link', 'roots_root_relative_url');
      add_filter('tag_link', 'roots_root_relative_url');
      add_filter('the_author_posts_link', 'roots_root_relative_url');

    Any advice? It's important for me. I am ready even to paid your service.
    Thank you to your support.
  • Please sign in to see answear!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Multilingual WordPress Limuso Premium Wordpress Theme Kora Premium Wordpress Theme Bretheon Premium Wordpress Theme Tisson Premium Wordpress Theme Caffeine Responsive Wordpress Theme Pindol Premium Wordpress Theme Nollie Premium Wordpress Theme Almet - Responsive Multi-Purpose Theme