How to add theme to wordpress - wordpress

I downloaded the theme from w3layout.com. I installed wordpress and wampserver on my laptop. When i tried to uploaded downloaded theme to wordpress for further editing and customization it simply failed and showed following message.
"The package could not be installed. The theme is missing the style.css stylesheet.
Theme install failed."
link of the template - https://w3layouts.com/exchange-education-a-education-category-flat-bootstrap-responsive-web-template/
please help me to solve this problem as its very easy to do editing / customization with wordpress than doing it manually.
Thank you

Theme and Templates are not the same.
If you download a Theme from Wordpress Theme's Repo Then you will be able to simply unzip the file in the /themes/directory and activate it within the WP-Admin Dashboard.
A Template is simply a post or page template which is within a given theme.
The directory of a theme can vary but it could be located within the root of the theme or within a common /template/ directory.
Sorry if this does not help!

Related

How to solve 404 errror on page manualy created on wordpress theme folder?

I'm working on a wordpress project, I use a wordpress theme and i need to add my custom page to that theme. When i created file in theme folder and open it on browser, wordpress show 404 error. I think wordpress cant find my page. im confused
How you want to open your directory on your browser? like example.com/directory or example.com/wp-content/themes/theme-name/directory ?!
if you want example.com/directory you have to create your directory in your wordpress's root installation.

unable to access wp-admin after change default theme on wordpress

I installed a theme in my wp-admin and selected it as the default theme without configuration.
After that I removed it from c-panel; my site is fine, but I cant get in to my wp-admin because it says:
The theme directory "theme" does not exist.
Any ideas?
Do you have the deleted theme files with you ?
You can upload the theme back into the theme directory and login into your dashboard then change your theme from the admin. After that, you can delete your theme.
If you do not have the theme files with you, you will need to reinstall wordpress.
the problem is that you delete the active theme and wordpress can't loading it.
You have to select another theme for work properly.
Let me know.

Wordpress Custom Plugin Installable code

I have created my own custom plugin and when i just paste it in my plugin folder its working fine. now i wanted to make it installable so if anyone try to install in their project so they can install it with the given plugin upload menu in admin panel.
Copy the plugin_file_name.php in the folder /wp-content/plugins and its ready to work. But is better Create a folder and put in file.
Its very simple process to make your plugin installable. Just register 3 hooks in your plugin :
register_activation_hook(__FILE__, 'your_activation_function_name');
register_deactivation_hook(__FILE__, 'your_deactivate_function_name');
register_uninstall_hook(__FILE__, 'your_delete_function_name');
In your_delete_function_name function, please add code to remove the db changes you made and also code to remove your plugin directory.
Now just zip the folder of your custom plugin folder and its ready to be installed in any wordpress site. It worked for me as i am working in wordpress 4.6.

Wordpress - no themes

I have installed a fresh copy of wordpress on a windows XAMPP server. I configured the wp-config file and ran the install script. All is ok, and I am able to view my new wordpress site and login to admin area.
However - when I go to Appearance->themes - the current theme is set to TwentyTwelve and in the lower section the "Available Themes" does not show ANY themes.
After this I copied a new theme to the themes folder (which was working on a WP install on my test server at work) and that doesn't show up either.
Can anyone tell me how to make the other default theme (TwentyEleven) and more importantly my own built themes, appear as being available?
Thanks :)
Try to change the theme folder permissions to 777
style.css is very important for a theme.
You should check either style.css exists or not.
If No, try install wordpress again.
If Yes, then there might be the issue of File Permissions.
Set file permissions from below.
http://codex.wordpress.org/Changing_File_Permissions

How can I check the wordpress theme on my system?

I have doubt in using the wordpress theme. I had downloaded a wordpress theme for my website from wordpress.org. I need to know how do i test it. The theme name is "pagelines". When i run it on my server it shows me webpage not found. How will i be able to test it out.
Please help....
First of all you need to unzip the theme file you have downloaded and place in your themes folder then go to admin panel
admin ->appearance -> Themes
there the themes will be displayed
you can view the new theme here and activate the theme
now your theme will be enabled on your wordpress, you can check your home page
Have you read the Wordpress' Using Themes guide? Read this guide first http://codex.wordpress.org/Using_Themes. It will clarify a lot of your questions.

Resources