Home › Forums › WordPress Plugins › Hide My WP › Hide Custom CSS
- This topic has 5 replies, 2 voices, and was last updated 6 years, 6 months ago by
Suman M..
-
AuthorPosts
-
January 20, 2019 at 4:13 pm #25224
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
-aJanuary 21, 2019 at 4:53 am #25228Hi,
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..
January 22, 2019 at 3:45 pm #25260Hi 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
-aJanuary 22, 2019 at 8:43 pm #25263Is 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..
January 23, 2019 at 8:59 am #25271No, 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
-aJanuary 24, 2019 at 7:00 am #25281Hi, 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?
-
This reply was modified 6 years, 6 months ago by
-
AuthorPosts
You must be logged in to reply to this topic.