Home Forums WordPress Plugins Hide My WP Hide Custom CSS

This topic is: not resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25224
    axxo
    Post count: 2

    Hi all,

    Two questions:

    1) I modified my theme using a lot of custom CSS. How can I avoid that this code is shown in the source code (because some CSS uses plugin and also “wp-” identifiers).

    When I copy it into “HMWP > Source Code > Internal CSS” nothing happens.

    2) How can I hide all CSS identifiers in the source code containing “wp-“? A lot of my plugins defined CSS classes like these.

    Many thanks
    -a

    #25228
    Suman M.
    Post count: 12480

    Hi,

    1) after you add the CSS code in HMWP > Source Code > Internal CSS, did you delete it from original location/file?

    2) actually it’s not recommended to rename css class names as it might break the site. But if you want to hide then add one replacement at a time in “replace in html” section under Replace Tools tab like below and check the site after each such replacement.

    wp-image ==> my-image

    • This reply was modified 6 years, 6 months ago by Suman M..
    #25260
    axxo
    Post count: 2

    Hi Suman,

    Many thanks for your swift reply.

    1) Yes, I have deleted it from the original file. Once I did that, all custom CSS changes on my site were not showing up anymore. Then I copied the same code to HMWP > Source Code > Internal CSS. But after saving nothing happed on the storefront. Any idea what the issue could be? Maybe a theme path issue?

    2) Clear to me.

    Many thanks
    -a

    #25263
    Suman M.
    Post count: 12480

    Is it a live site? Can you please add css code in HMWP > Source Code > Internal CSS, and remove it from the original file?

    Let us know. Also, generate debug report from HMWP start tab and post it here as private reply.

    • This reply was modified 6 years, 6 months ago by Suman M..
    #25271
    axxo
    Post count: 2

    No, I’ll put the site live later this week and let you know. Many thanks so far. I’ll reply here again.

    Another question:
    I would like to hide “wp-admin” all over in my source code. I already changed wp-login.php (under: General Settings) as well as under Permalinks & URLs) the Login URL as well as the wp-admin Path successfully. However, WP-ADMIN is still showing up in the source code. Then I tried under replace tools to replace the following url: OLD = /wp-admin/ NEW = /admin/

    Doing this, wp-admin is gone all over my souce code. However, some functionality stopped working when I do so. Any idea how to get rid of this without affecting site functionalities?

    Many thanks
    -a

    #25281
    Suman M.
    Post count: 12480

    Hi, first of all, make sure that you check the site’s page source in logged out state. Can you please send us the screenshot of occurrences of wp-admin in the page source?

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

You must be logged in to reply to this topic.