Home Forums WordPress Plugins Hide My WP Hiding header comments in style.css

This topic is: not resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2836
    marklove
    Post count: 4

    I’ve been enjoying your Hide My WP plugin very much! But I have a question for you.

    I need to be able to hide wp when using certain themes and still be able to update the themes with no trouble. I have not been able to alter the header comments in the main style.css and child style.css without breaking the theme and/or causing difficulties when the theme is later updated.

    The style.css header comments in parent theme (and child theme when used), can be viewed in dev tools resource panel, and give all the wp theme info to the public. I spent all day trying different ways to do it but no luck yet.

    How can I configure your plugin to hide comments in the theme’s parent and child style.css?

    It would be preferable to leave the comments intact to avoid breaking the theme and/or preventing future updates?

    Will you please help me find a solution to this issue using your amazing plugin?

    #2840
    Suman M.
    Post count: 12478

    Hi, HMWP doesn’t physically change/rename any paths/directories and file content.

    For example:
    HMWP renames/masks “www.yourdomain.com/wp-content/themes/yourtheme/style.css” to something like “www.yourdomain.com/skin/main.css”. This main.css will have NO theme comments at top and visitors will not know what theme is it. But someone who knows the path “www.yourdomain.com/wp-content/themes/yourtheme/style.css” can know the theme details as nothing is changed by HMWP in style.css. So the theme updation will work as it is.

    #2845
    marklove
    Post count: 4
    This reply has been marked as private.
    #2849
    Suman M.
    Post count: 12478

    The original style.css file with comments on top will not be listed in resources panel after you have applied settings (to hide theme) in HMWP plugin, instead the file name you have specified in HMWP settings will be listed and without comments in top.

    If this is not the case in your website then please let us know your website details (as private message) so that we can have a look at it.

    #2851
    marklove
    Post count: 4
    This reply has been marked as private.
    #2853
    Suman M.
    Post count: 12478

    To remove theme name “sailent” from @import url(‘../salient/style.css’) in child css, you’ll have to rename parent theme directory and then change it in @import in child css. But before renaming theme directory, please confirm with theme provider if you can rename theme directory at any stage.

    And regarding theme comments in parent theme’s stylesheet file, that seems to be not remove by HMWP incase the child theme is used. We’ll be surely looking into this and hope to have this fixed in the upcoming versions of the plugin.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.