hide theme's name

Posted in: Newsmag
Post count: 56

hellow,

please let me know if there is any way i can hide from the css them name of the theme.

Thank you

Post count: 9544

WordPress allows you to rename the theme folder, and you can rename theme in CSS but to hide the “td” classes you’d have to rename them and edit all the modules, includes, functions, templates to remove them.

You might google how to change the WordPress theme folder as this is pretty common knowledge.

I do that for our sites to change the name for our network, such as /themes/ournetwork/

Post count: 56

thank you for your answer. i have change the names of the files already the programs such as the “which wordpress theme is that” cannot “see” my theme nam. But if i click inspectelement when iam at my site i can see the theme name…

Post count: 9544

Make sure you change the “name” of the theme in the style.css file, which will also appear in the appearance > themes panel. Basically you might do:

a) change theme folder /Newspaper/ >> /mysitename/ (be sure not to name same as a category or post!)
b) in your style.css, change the “name” of the theme (which populates the appearance data)

(might have to ‘reselect’ the new theme name in appearance > settings — might delete some settings, be sure to backup!!)

c) use something like mod_pagespeed or other system which removes all “comments” from HTML (plugin, CDN, etc.)
d) view page source in text editor, do search for old theme name
e) clear all caching on server/CDN, browser, if not done so already

That would change the “basic” name of the theme in the HTML to your new theme name.

Again, this won’t change the name of modules, plugins (e.g., speedbooster, td social plugin, etc.), or CSS elements with “td_classname” …

However it would fix things like

/wp-content/themes/mynewname/style.css

to show /mynewname/ in place of orig theme name.

  • This reply was modified 10 years by simchris.
Post count: 6535

Hi

Thanks @Chris!

@Kortris
to remove the theme name from page source you need to edit the td_wp_booster_functions.php file and remove the indicated line: http://screencast.com/t/mygbQc6FiBhttp://screencast.com/t/7jsHzDdm

Thanks!

Post count: 56

hi thank you all for your answers,

i just have to delete this line or i have to replace it with something else?

  • This reply was modified 10 years by Kortris.
Post count: 9544

You can just remove it – or put blank space there 🙂

Post count: 56

hellow ,

I have follow your instructions but the theme name is still be viewable http://www.screencast.com/t/mdIp2kUNmG

Post count: 6535

Hi

Please edit td_config file and change the theme name as you want: http://screencast.com/t/0VDtshmQhhttp://screencast.com/t/E9whzSq6c

Thanks!

Post count: 56

thank you

Post count: 56

Hello, the solutions provided are still working in the newest version?

Thank you

Post count: 9544

Should be.

Post count: 6535

Hi

Yes the above solution will work on new theme version.
Thanks!

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newsmag’ is closed to new topics and replies.