Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @mtosh

    The CSS does not affect files in the wp-content/uploads directory, so that approach won’t work. Generally, you must restrict directories using a .htaccess file or a plugin. Try using the Prevent files/folders access plugin.

    Thread Starter mtosh

    (@mtosh)

    Hello, @ghernkadence,

    Thank you much for your quick reply!

    I did try that plugin, but it did not prevent access to the image URL in ‘wp-content’.

    I learned about and then uploaded the download-able image to the Woo Commerce-protected directory. For the product image, I used the Easy Watermark plugin to add a watermark to the image as it is uploaded to the WP Media Library.

    Thanks again for your assistance and for a theme that is trouble-free and very customizable.

    Sincerely,
    Michael

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS Code Ineffective For Images In “wp-content”’ is closed to new replies.