Tag Archives | Php File

How to Install and Activate a WordPress Theme

How to Install and Activate a WordPress Theme

[This tutorial applies to WordPress blogs running in a self-hosted environment, meaning that you’ve installed WordPress on a web host of your own. It doesn’t apply to blogs hosted on free WordPress.com accounts.]

Installing a WordPress theme is very straightforward. WordPress themes available for download from various places on the Internet are typically packaged in .zip files (i.e. theme-name.zip). Installing a WordPress theme involves nothing more than unzipping the .zip file into the appropriate directory of your WordPress installation, and activating the theme from your WordPress administration console.

Structure of a WordPress Theme

In order for you to install your new WordPress theme correctly, you need to understand the basics of how the WordPress system interacts with themes. A WordPress theme needs three essential files in order to work correctly with the WordPress administration:

o An index.php file: This file is the controller of a WordPress blog. Most WordPress themes also have other PHP files that represent various sections of a WordPress page, but index.php is the only truly necessary PHP file.

o A style.css file: This file controls the look and layout of the WordPress-based website using style definitions. It also contains the information that is used in the Manage Themes section of WordPress to display the theme name, version, author, and description

o A “”screenshot”” image: This image is used to create preview of the corresponding theme in the Manage Themes section of the WordPress administration. It can be any of the common web graphics files (png, jpg, gif), but it needs to be named screenshot. For instance, screenshot.png, screenshot.jpg, or screenshot.gif.

If you’ve gotten your theme from a designer who knows what he’s doing, you don’t really need to worry about making sure the theme is set up correctly. If you’re not sure, you might just want to double-check that you’ve got the basic files needed to install your theme.

WordPress Directory Structure

The WordPress directory structure contains three folders in the root directory:

o wp-admino wp-contento wp-includes

Under the wp-content folder there is a folder called themes. Inside this folder is where you need to deposit the folder that contains your theme. Here’s an example. Say I’m installing a theme for a recipe blog. The theme is called Recipe, and its folder structure looks like this:

recipe-blog/ index.phpstyle.cssscreenshot.png

This theme would normally be packaged in a .zip file. To use the theme, I would need to unpackage the file, then upload it (probably using FTP) into my WordPress themes folder. If I have WordPress installed on my web server under a directory called blog, my directory structure would look like this:

/WordPress/wp-content/themes/recipe-blog/

index.php

style.css

screenshot.png

Activating a WordPress Theme

After I upload the theme to the correct directory, I can now go to my WordPress administration to activate it. After logging in to the WordPress admin section, I go to Appearances->Themes. I can see that my new theme is installed correctly and ready to be activated, because I can see it in under Available Themes on the Manage Themes page.

At this point, all I have to do is click on the Activate link associated with my new theme. My new theme is now active on my WordPress blog.

0

PHP Shopping Cart Benefits Your Website

PHP Shopping Cart Benefits Your Website

You are an Internet entrepreneur hoping to make it big in the online world of business. You realize that your website has to be functional, accessible to viewers and attractive to keep the attention of the viewer; but do you realize the benefits of having a PHP shopping cart on your website? A PHP shopping cart can allow the visitor to your website to perform many functional tasks such as adding to the cart, updating the cart when changes are made to the items in the cart and deleting unwanted items from the cart. The shopping cart should be set up in a familiar way and should have a textual message on each page to inform the visitor of how many items are in the cart to remind the visitor when they are browsing the site of the existence of the cart in this “non-physical” world where a virtual cart is not as visible as a real shopping cart would be in the real world.

You can make a PHP shopping cart very accessible to the website visitor by a link, such as “add to cart”, or a visible button located by each item on the web page. You can also have both button and textual message for each product on the page.

The PHP shopping cart has many traits that lends success for your business such as having the requisite information being sent to the cart, the ability to locate and execute a high compliance cart, and the ability to call an external PHP file. It is also possible to have the PHP shopping cart to have the option of paying via the popular Paypal service.

Most PHP shopping cart software programs come with complete ready-to-run PHP shopping carts that do not require any programming knowledge. The software is usually cost-effective and can be complement major ecommerce features. PHP shopping carts are usually easy design integration with any HTML editor and are usually accompanied by ready-to-use skin templates. PHP shopping carts are search engine friends, and gives the website owner the ability to accept online credit card processing. Most PHP shopping cart software allows for real-time shipping quotes and easy order notifications by email or SMS. If you are looking for a software program consider PHP shopping carts.

PHP shopping carts are flexible, fully functional that can easily be integrated into any ecommerce website. Look for one with custom template systems that will make the cart easy to set up with multiple payment gateways. When purchasing a PHP shopping cart make sure the in company you purchase the software from has free technical support, multiple currency support and offers multiple shipping configurations. You want total control over your shopping cart and having separate links from each product to the shopping cart will allow the customer to easily add products to the cart.

0