[How To] Hide the Image Paths for Elementor, Divi, Thrive and Other Builders

Hide My WP Ghost works well with all the WordPress builders. Once you save the page, Hide My WP Ghost Plugin will know what to do to hide the on-page paths and change them with the new one.

Hide My WP Elementor

All the builders have the option to add a background image for a section but some of them add the image path in the CSS file which is loaded statically by WordPress and Hide My WP Ghost doesn’t have the chance to rename the paths as it should.

There are two options to make it work:

  1. First option is to force all static CSS and JS files to load dynamically. This option will significantly slow down the website loading speed.
  2. The second option is to force the images to load with the new path while editing the pages. They will be saved with the new path in CSS by the builders. This option will not slow down the website loading speed.
    Note! Don’t change the customized upload path in Hide My WP Ghost in the future.

For the second option just add this line in wp-config.php file right after the line $table_prefix = …

define("HMW_FORCEPATH",true);

You can now edit the pages and add the background images in the builders again.


UPDATE 08 May 2019:
With Hide My WP Ghost 4.2 you can use the option to change the image paths in Elementor and Cache directory.
Just switch on Hide My Wp > Tweaks > Change Paths in Cache Files.
The paths will be changed in background and the loading speed will not be affected.

Feel free to contact us for feedback and suggestions here

5 Comments
    • Ups, this is what I’m getting in the wp dashboard:

      : Use of undefined constant ‘HMW_FORCEPATH’ – assumed ‘‘HMW_FORCEPATH’’ (this will throw an Error in a future version of PHP) in /homepages/22/d216915738/htdocs/clickandbuilds/Website3/wp-config.php on line 70

      Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d216915738/htdocs/clickandbuilds/Website3/wp-config.php:70) in /homepages/22/d216915738/htdocs/clickandbuilds/Website3/wp-includes/functions.php on line 6360

      Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d216915738/htdocs/clickandbuilds/Website3/wp-config.php:70) in /homepages/22/d216915738/htdocs/clickandbuilds/Website3/wp-admin/includes/misc.php on line 1310

      Warning: Cannot modify header information – headers already sent by (output started at /homepages/22/d216915738/htdocs/clickandbuilds/Website3/wp-config.php:70) in /homepages/22/d216915738/htdocs/clickandbuilds/Website3/wp-admin/admin-header.php on line 9

      what do do?

      • I see that the copy paste affected the line.

        Try replacing the line with: define(“HMW_FORCEPATH”,true);

        Note! You don’t need to add this line since 2019.

  • You can delete my comments.. the problem was another plugin. I added that line trying to fix the problem but disabling the other plugin did the trick so hidemywpghost is normal now.

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.