[ad_1]
I bought a theme on Envato, but I would like to hide/remove the name of if to make it more professionnal and white labeled as possible. I’d also wanted to make changes more strutured and avoid futures updates problem, so I started a child theme.
However, there is still some calls referring to the parent theme in the source code. The main CSS more particulary.
Do you guys know how can I change this?
Can I switch all CSS to parent child/directory? How can do this?
​
​
[ad_2]
To hide the theme name in WordPress, you can use one of the following methods:
Method 1: Edit the theme’s style.css file
1. Log in to your WordPress admin dashboard.
2. Go to Appearance -> Theme Editor.
3. In the Theme Editor, locate and click on the “style.css” file on the right-hand side.
4. Add the following line of code at the end of the file:
“`css
/* Hide theme name */
/*
Theme Name: My Custom Theme
*/
“`
5. Replace “My Custom Theme” with any desired name or leave it blank to hide the theme name completely.
6. Click the “Update File” button to save the changes.
Method 2: Use a child theme
1. Create a child theme for your current theme if you haven’t already done so. You can find detailed instructions on creating a child theme in the WordPress Codex:
2. Once you have a child theme set up, navigate to the child theme’s directory on your server.
3. Create a new file called “style.css” if it doesn’t exist already.
4. Add the following code to the “style.css” file:
“`css
/*
Theme Name: My Custom Child Theme
Template: parent-theme-folder-name
*/
“`
5. Replace “My Custom Child Theme” with any desired name or leave it blank to hide the theme name completely.
6. Replace “parent-theme-folder-name” with the actual folder name of your parent theme.
7. Save the changes.
By using either of these methods, you can effectively hide the theme name from appearing in the source code and other areas of your WordPress website.