I'm trying to figure out if I've been hacked. I made a custom WordPress theme, named 'claremont'. Somehow it got replaced with a downloaded theme, also named 'claremont'. Does WordPress ever automatically do this?
I'm not running any plugins that I'd suspect would do this - just Gravity Forms, The Events Calendar, BBPress and addon plugins for those. Any ideas?
If you create a custom theme and that theme has the same name as the theme available in WordPress.org themes repository (and 'claremont' exists there: https://wordpress.org/themes/claremont/), and if the WP.org theme has the higher version number, WordPress will include this theme for the update.
But, in a normal case, themes are not auto updated, so you have either run the update without checking what is updated, or your WordPress is set to auto update themes too.
It is always a good idea to check theme name in WP.org before using it or add some unique identifier in the theme name to avoid name conflict issues.
Related
There are some plugins that I can override in my child theme (e.g. woocommerce, BuddyPress, bbpress, etc). Usually creating a folder named the same as the plugin in the child theme root and making changes there. However, that doesn't always work for ANY plugin. I'd rather not make any structural changes in the plugin itself since it will be all gone on a plugin update. But I made a copy of the plugin in the child theme and it didn't do anything. How can I do this so that I can still get all the functionality I need from the main plugin and still have my alterations prevail?
Suppose I've installed BE Theme in wordpress. If I change default theme name and other author info from style.css file, will I be able to get automatic updates later?
WordPress update system uses theme/plugin directory name/main file as slug for checking updates.
It means that you can change the values inside style.css and you'll still be able to check and perform updates (as long, as the name of directory stays unchanged).
On the other hand, there are two problems with such change:
These values will get restored after every update.
It's unethical. You're not the author of that theme and it's not your theme, so you shouldn't make your clients think otherwise. And if that theme is under GPL, then it's against its license.
But... You can (and you should) create a child theme and you can put whatever info you want in there.
I have updated my WordPress version. The style of the css is modified. I have a backup version. Should I take the oldest file for plugins and theme in order to resolve that issue?
you should have a child theme and put your custom css in the css-file from your child-theme.
Your child-theme would not touch from any update and your custom code is save
Taken from the WordPress Codex:
WARNING: The upgrade process will affect all files and folders included in the main WordPress installation. This includes all the core files used to run WordPress. If you have made any modifications to those files, your changes will be lost.
When you do any theme changes you should always put your changes in either a custom theme you have made yourself (so only you update it), or if you're using someone else's theme, create a child theme.
More information about child themes can be found here:
A child theme is a theme that inherits the functionality and styling of another theme, called the parent theme. Child themes are the recommended way of modifying an existing theme.
As for plugins, they don't work in the same way so you'll need to make sure that any plugins you change are your own otherwise you'll lose the changes when you update them.
Lastly, you can also use the WordPress Customiser (Appearance > Customize in the dashboard) if you don't want a child theme but want to insert custom CSS. That allows you to edit CSS safely within the dashboard and keep your changes safe even when you update things.
Hi i have installed drupal commerce kickstart. Initially it contains Demo store with default theme. Next i installed new free theme for my store. It still contains old theme's contents images and slides.
The new theme's contents and other effects are not coming.
What did i Missed?
You first need to clear the demo contents from the existing commerce kickstart installation. You could use Commerce Reset module, if not already exist, to clean it.
Regarding your new theme, have you installed the supported content types and content to show within the new theme? If you are using a free theme, i must say, you should read the theme instruction to setup this. Most free themes doesn't provide the dummy content with it and you need to create supported content types, views, blocks and then do the necessary configurations to make it works.
If you need further help please provide the theme link you are using to build your site.
I have created my own theme in WordPress. In that theme i'm using other plugins ( jQuery Photo slider ). Now I want to use this theme for a different website. Can i save plugins with the theme? First off, is this even possible?
This is my first attempt in WordPress.
You are not allowed to add plugins along with your theme, but you can always send a readme along with the theme, telling the user what plugins you want them to use, or you could just zip the plugins located in the plugin folder and make that as a custom extra choice to apply when using your theme.