Unit 2 Wordpress
Unit 2 Wordpress
Setting up WordPress :
Step 1: Download and Extract
Setting up Database:
If your web server has phpMyAdmin installed, you may follow these
instructions to create your WordPress username and database. If you work
on your own computer, on most Linux distributions you can install
PhpMyAdmin automatically.
You can either create and edit the wp-config.php file yourself, or you can skip
this step and let WordPress try to do this itself when you run the installation
script (step 5). (you’ll still need to tell WordPress your database information).
(For more extensive details, and step by step instructions for creating the
configuration file and your secret key for password security, please see Editing
wp-config.php).
Return to where you extracted the WordPress package in Step 1, rename the
file wp-config-sample.php to wp-config.php, and open it in a text editor.
DB_NAME
The name of the database you created for WordPress in Step 2.
DB_USER
The username you created for WordPress in Step 2.
DB_PASSWORD
The password you chose for the WordPress username in Step 2.
DB_HOST
The hostname you determined in Step 2 (usually localhost, but not always; see some possible
DB_HOST values). If a port, socket, or pipe is necessary, append a colon (:) and then the relevant
information to the hostname.
DB_CHARSET
The database character set, normally should not be changed (see Editing wp-config.php).
DB_COLLATE
The database collation should normally be left blank (see Editing wp-config.php).
Now you will need to decide where on your domain you’d like your
WordPress-powered site to appear:
– In the root directory of your website. (For example, http://example.com/)
– In a subdirectory of your website. (For example, http://example.com/blog/)
• If you placed the WordPress files in the root directory, you should visit:
http://example.com/wp-admin/install.php
• If you placed the WordPress files in a subdirectory called blog, for example, you should
visit: http://example.com/blog/wp-admin/install.php
Top ↑
Setup configuration file
If WordPress can’t find the wp-config.php file, it will tell you and offer to try to
create and edit the file itself. (You can also do this directly by loading wp-
admin/setup-config.php in your web browser.) WordPress will ask you the
database details and write them to a new wp-config.php file. If this works,
you can go ahead with the installation.
Working of WordPress :
WordPress is a content management system that is used to write
blogs and to build websites for personal or for organizations on a
small scale. WordPress provides us with the ability to edit the content
later on after building or publishing the content. The content can be
edited, modified, deleted, and organized in one place with our own
requirements and feasibility. WordPress provides a different way of
maintaining the content, like a dashboard, where you can customize
what should be view or appear in this section. The content can be
divided on the basis of posts, media types, and pages. There are
different themes available to present the blog or website. WordPress
also provides the compatibility of different plugins to make the
content more readable and attractive to the users and developers as
well. WordPress work is written in PHP and MySQL. It means
WordPress Software needs these components to work on in a system.
PHP is a great language and is widely used and popular among
developers. MySQL is used in adding the content to the database and
store the files, which helps in accessing the content at a faster rate.
2. Websites
With the help of WordPress, the writers can develop their website and
get the website developed from the developers and can be managed
on the server. It can be hosted on a server. Word press also allows the
writer to manage multiple websites efficiently. The multiple websites
can be managed easily from a single dashboard, and writers can have
more than one admin panel to manage the different sites accordingly.
3. Responsive Websites
WordPress enables responsive websites, where writers can interact
and able to share their ideas and tips with others. WordPress provides
the feature of getting your own domain and share across while
sharing your website or blogs.
4. Contacts and Advertisement
WordPress provides an open platform to showcase its skills. It can be
used by the writers to start with and sharing the content across the
different people in the surrounding area. Even this helps in sharing
and advertising information across the globe. WordPress Software
helps in making contact with others, and people contacted writers
based on their work to write blogs or posts for their organization or
for the individuals. It becomes the independent platform for many of
the individuals to showcase their skills and get that rewarded by
getting good contracts, work from reputed organizations.
5. Easily Available
WordPress Software plugins help in establishing the post with the
internet in quick seconds. It makes the posts or blogs easily accessible
to your followers or clients within a very short time span and easily.
WordPress Dashboard:
The WordPress Dashboard is a first screen which will be seen when you log
into the administration area of your blog which will display the overview of the
website. It is a collection of gadgets that provide information and provide an
overview of what's happening with your blog. You can customize your needs by
using some quick links such as writing quick draft, replying to latest comment,
etc.
Dashboard Menu
The WordPress Dashboard provides navigation menu that contains some menu
options such as posts, media library, pages, comments, appearance options,
plugins, users, tools and settings on the left side.
Screen Options
The dashboard contains different types of widgets which can be shown or hidden
on some screens. It contains check boxes to show or hide screen options and also
allows us to customize sections on the admin screen.
Welcome
It includes the Customize Your Site button which allows customizing your
WordPress theme. The center column provides some of the useful links such as
creating a blog post, creating a page and view the front end of your website. Last
column contains links to widgets, menus, settings related to comments and also a
link to the First Steps With WordPress page in the WordPress codex.
Quick Draft
The Quick Draft is a mini post editor which allows writing, saving and publishing a
post from admin dashboard. It includes the title for the draft, some notes about the
draft and save it as a Draft.
WordPress News
The WordPress News widget displays the latest news such as latest software
version, updates, alerts, news regarding the software etc. from the official
WordPress blog.
Activity
The Activity widget includes latest comments on your blog, recent posts and
recently published posts. It allows you to approve, disapprove, reply, edit, or delete
a comment. It also allows you to move a comment to spam.
At a Glance
This section gives an overview of your blog's posts, number of published posts and
pages, and number of comments. When you click on these links, you will be taken
to the respective screen. It displays the current version of running WordPress along
with the currently running theme on the site.
5. Click Continue.
If either of those criteria is not met, the Everything option will be unavailable, and
the Content only option will be your only choice.
Above the import type selection, you will see a message explaining why
the Everything option is unavailable
the Everything option is unavailable with the message “You need to have Jetpack
installed on your site to be able to import everything. Install Jetpack.” If you see this
message, click the Install Jetpack option to install the (free) Jetpack plugin on your
self-hosted site.
Once all criteria are met, you will be able to select the Everything option.
8. If you agree, click Import Everything and then click Import and overwrite to
start the import process.
You will receive a notification when the import is finished. Then, you can review the
site to make sure it looks like what you expect.
Step (4) − Click on Choose File button to select the backup file from your system. After
uploading the sql file, select format as SQL .
Click on Go button.
Step (5) − Once you click on Go, you will get a message after the sql file is
uploaded successfully.
Upgrading WordPress :
Following are a few simple steps to update the version in WordPress.
Step (1) − Click on Please Update Now
You will get notifications in WordPress admin panel when there is a newer version
available for WordPress. Before updating, it is advised to keep WordPress backup.
Step (2) − After clicking on the update link. Click on Update Now button.
Note − While updating the version, if you get an error as
Fatal error: Maximum execution time of 30 seconds exceeded in C:\your wordpress
folder\wp-includes\class-http.php on line 1597
WordPress Settings :
General Setting - WordPress general setting is used to set the basic
configuration settings for your site. In the setting administration screen, it is a
default setting screen.
Following are the steps to access the general settings −
Step 1 − Click on Settings → General option in WordPress.
Step 2 − The General Setting page is displayed.
Following are the details of the fields on general settings page.
• Site Title − It displays the name of the site in the template header.
• Tagline − Displays a short sentence about your site.
• WordPress Address (URL) − It is the URL of WordPress directory
where your all core application files are present.
• Site Address(URL) − Enter the site URL which you want your site to
display on the browser.
• E-mail Address − Enter your e-mail address which helps to recover
your password or any update.
• Membership − Anyone can register an account on your site after you
check this checkbox.
• New User Default Role − The default role is set for the newly
registered user or members.
• Timezone − Sets the time zone based on the particular city.
• Date Format − Sets the date format as you need to display on the site.
• Time Format − Sets the time format as you need to display on the site.
• Week Starts On − Select the week day which you prefer to start for
WordPress calendar. By default it is set as Monday.
• Site Language − Sets the language for the WordPress dashboard.
Step3 − After filling all the information about general settings, click on Save
Changes button. It saves all your general setting information.
Writing Setting - The writing settings controls the writing experience and
provides options for customizing WordPress site. These settings control the
features in the adding and editing posts, Pages, and Post Types, as well as the
optional functions like Remote Publishing, Post via e-mail, and Update Services.
Following are the steps to access the writing settings −
Step (1) − To change writing settings, go to Settings → Writing option.
Step (2) − The Writing Setting page is displayed
Reading Setting - Reading Setting is used to set the content related to the
front page. You can set the number of post to be displayed on the main page.
Following are the steps to access the reading settings −
Step (1) − Click on Settings → Reading option in WordPress.
Step(2) − The Reading Settings page is displayed
Media Setting - It is used to set the height and width of the images which you're
going to use on your website.
Step (1) − Click on Settings → Media option in WordPress.
Step (2) − The Media Settings page is displayed
Step (3) − Once you are done with changes, click on Save Changes button to save
the permalink settings.
Account Setting - You can access your account settings by clicking on your
profile image in the top right corner and selecting Account Settings.
Account Information :
Email Address - This is the email address associated with your WordPress.com
account. Each WordPress.com account must have a unique email address, and email
addresses cannot be shared among accounts. That is, one email address cannot be
registered with multiple accounts. You can change your email address. You will be
sent a confirmation link to verify your email when you create a new account or
change your email address.
Primary Site - Your primary site is the website that appears first when you access
your WordPress.com account. From the dropdown option, you can choose which site
you want to be the primary site in your account. If you only have one site, there will
be no dropdown. Your website will be set as primary automatically. Only
WordPress.com sites on which your account is a user, or self-hosted WordPress sites
connected to your account via Jetpack can be set as the primary site.
Web Address - You can type the full URL of your main website or blog into
the web address field. The web address will be the link used with your Public Display
Name when you leave comments on WordPress.com sites. Changing your web
address will not affect the link on existing comments; it will only change the link for
future comments you leave.
Add Pages - Adding pages is similar to adding posts in WordPress. Pages are
static content and often do not change its displayed information.
Following are the simple steps to add pages in WordPress.
Step (1) − Click on Pages → Add New
Step (2) − You will get the editor page .The editor page has two tabs, Visual and
Text. You can insert text in either of these. Here, we'll study about inserting text
into Visual format.
Following are the details of the fields on editor page of the Add New Page.
Title
It is used to write the title of the article, which is later displayed on the page.
Permalink shows the potential URL for the page below the title. The URL generates
as per the given title.
WYSIWYG Editor
It is a WYSIWYG Editor, which is similar to a word processor interface where you
can edit the contents of the article.
Following are the options present of WYSIWYG editor −
• Bold Button − Used to bold your font.
• Italic − Used to italicize the font.
• Word Strike − Strikes through the content.
• Bullet List − Adds bullets to content.
• Number List − Adds numbers to the list of the content.
• Blockquote − Quotes the text.
• Horizontal Line − Creates a horizontal line between sentences.
• Left Align − Sets the content on the left side of the page.
• Right Align − Sets the content to the right side of the page.
• Justify − Justifies the content of the page.
• Add Link − Adds a link to your content.
Following are the fields present in the Insert/edit link.
• URL − Enter URL you want to link.
• Link text − Insert text you want to enter into the link.
• Open link in a new window/tab − Open your link page into the new
tab or window. Check the box as required.
• Or link to existing account − Links to an existing content page by
selecting the page from the given list. When you click on existing page
then you get a link created in the URL section .
Text Insertion
For writing the content of an article.
Publish
To publish the page to the user on the website.
Page Attribute
Page attributes module allows you to select the parents for your particular page.
You can also set order of the pages.
• Parent − Allows you to select parent page.
• Order − Sets the order of the page.
Add Category - Category is used to indicate sections of your site and group
related posts. It sorts the group content into different sections. It is a very
convenient way to organize the posts.
To access the Category section, follows the mentioned steps −
Step (1) − Click on Posts → Categories option in WordPress.
Step (2) − The Categories page is displayed
Following are the details of the fields on Categories.
• Name − Enter the unique name of categories.
• Slug − A word chosen to describe your post. It is specified in the tags
URL.
• Parent − By selecting the parent category from dropdown, you can set
the particular category as sub-category or can keep it as None.
• Description − Add brief description of your category. It is optional.
Step (3) − After filling all the information about Categories, click on Add New
Category button.
Step (4) − After clicking on Add New Category, the new created category will get
displayed on the right side of the page
Add Tags - Tag is a small information attached to the main content or post for
the purpose of identification. It tells the visitors what actually the post is about. If
the tag is mentioned properly then it helps to find the content very easily.
Following are the steps to Add Tags in WordPress.
Step (1) − Click on Posts → Tags in WordPress.
Step (2) − The Tags page is displayed
Internal Linking -
An internal link is a hyperlink that points to the other page on the same domain.
to yourwebsitename.com/products-q/
With the help of internal links, the users can easily navigate to your website as it
allows the relevant content to be connected on your website and will help in the
If you want to use a free tool, you’ll have to put more time and energy into adding
from WordPress Dashboard > Posts > All Posts. Click on Edit in order to edit the
post.
In the post editing screen, highlight the text on which you want to insert the link,
click the link icon and paste the internal link as shown below:
If you’re not sure what post you want to link to then just enter the keyword and
WordPress will search through your website and find the relevant content to link
to. Then click on the post you’d want to link and that’s it! You’re done!
Once you’ve added the link, click on Update as you would normally do or Publish
the post if it’s newly created to preview the changes. The internal link will then be
visible in your post and on clicking it, it will redirect you to that particular post.