You are on page 1of 19

Practical Assignment-04

NAME:NITORE MD FARHAN AYAZ AHEMAD


PRN: 2223100303
SUBJECT:WORDPRESS PRACTICAL ASSINGNMENT
CLASS:A2
_____________________________________________________________________________________
______________________________________________________________

Q1) How to install wordpress?


Ans:

WordPress - Installation
. Installing
WordPress on local server
WordPress can be installed using local servers like XAMPP, WAMPP, etc. We’ll assume that
your system already has installed a local server.
We have XAMPP server installed in our system. Now, we’ll see the installation of WordPress.
Creating Database
Open phpMyAdmin from the XAMPP server control panel.
Here, at the top you can see option Databases. Select it.

Installing WordPress on local server


WordPress can be installed using local servers like XAMPP, WAMPP, etc.
We’ll assume that your system already has installed a local server.
We have XAMPP server installed in our system. Now, we’ll see the installation
of WordPress.

Creating Database
1: The WordPress installation setup will ask you about your language preference in
the first step. Here you have to choose the language of your choice and press

Continue.

Step 2: The second stage provides the required information before proceeding.
Step 3: You must provide MySQL database connection credentials in this
installation step. It will ask to enter the information related to the MySQL
database. Here is the list of fields that the screen will be asking you to insert:
1. Database Name: This will be the name of the database that you have already
created in the MySQL database to use WordPress.
2. Username: It will be the user’s name data for your database.
3. Password: Here, you must enter your MySQL database's password.
4. Database Host: is where you have to insert the hostname; the default is
"localhost".
5. Table Prefix: is implemented to add prefixes in the database tables, which
help run multiple sites on the same database.
1. Password
2. Your Email address
Q2) add post in wordpress
Ans:
When you log into your WordPress website you’ll notice two options to add content –
posts and pages:

So, what exactly is the difference between them, and how do I know which to add my
content as?
A WordPress page is a static and rarely updated piece of content, usually timeless in its
purpose. Examples of WordPress pages are: about, contact, disclosure, terms &
conditions.
A WordPress post is usually part of a blog like we have here on Blogging Wizard. It’s
where we frequently publish and update content on an ongoing and continuous basis.

Understanding the WordPress block editor


Log into your WordPress site and you’ll see your WordPress dashboard. Then go
to Posts → Add New on the admin panel to the left.
A new post will appear, this will be where you enter all your content for your post using
the Gutenberg visual editor.
Q3) Add Heading, paragraph and list in post.
Ans:
Let’s have a quick overview of the WordPress editor and post settings. For the post
setting to appear you’ll need to click the gear icon top right:

 
Q4) Add Table, gallery and video in a post.
Ans: Method 1. Create Image Gallery Without a Plugin
To begin, select the page or post on which you’d like to add the image gallery.
You can use an existing post or create a new one, as we’ve done in this
example.

Then click on the Add block (+) icon and select the Gallery block.


Select the photos you’d like to add to the gallery,

Q5) Add featured image and Excerpt in post.


Ans:

Step 1: click on feature image on the right site and click on select feature Image

Step 2: select the picture you won’t to upload and update.


Q6) Add 3 categories to the posts. [about our college courses]
Ans:

Q7) show the steps of installing Astra theme to wordpress.


Ans: Login to your WordPress Dashboard.

Step 1: Go to Appearance > Themes > Add New


Step 2: Search for – Astra
Step 3: Install Astra
Step 4: Activate it
Q8) Add a page using Elementor plugins
Ans:
Installing plugins will provide extra functionality to your site. To install a plugin,
you just need to put the plugin file into your wordpress file. After installation, you
may activate it or deactivate it.
There are three methods from which you can install plugins.
o Installing plugin using search
o Installing plugin using uploading
o Installing plugin manually using FTP
Here, we'll discuss all three methods.
Installing plugin using search
This method is only available for the free plugins because search is applicable for
the WordPress directory only.
Login to your WordPress, and go to Plugins > Add New.

Q.9.Add a Heading, inner section, text editor and image in a page.


Ans. Header , WordPress in the page new than a deranging drop .
Save an image to download than a image option click and image upload .
Q.10 add shape divider,2btton (one of the button should be custom link)
google Map and box in a page
Ans:
Step:1 Step 1: Open the Page in Elementor Editor
First, create a new page or open an existing page using the Elementor editor.

Step 2: Drag and drop the Divider widget 


Next, drag and drop the Divider widget on your page section. Make sure to check
the “PP” icon on the top left corner of the widget.

Step 3: Choose Your Divider Type


Like every PowerPack widget, the Divider widget also consists of 3 tabs.

Content, Style, and Advanced tab.

In the Content tab, you’ll find an option to choose the Divider type for your page.

With the PowerPack Divider widget, you can add:

1. Plain Divider
2. Divider with custom text
3. Divider with custom image
4. Divider with icon
Plain Divider 

If you choose the Plain Divider option, further you get options to:

 Select the Direction of the divider. You can either create Horizontal


Divider or Vertical Divider as per your preference.
 Set the alignment of the divider to be Left, Center or Right.

Divider with Custom Text

If you don’t want to add simple-looking plain dividers, you can also add a divider with
custom text.
Divider with Icon

Want to go more creative with dividers? Create a stylish icon divider to enhance the look
of your web page.

Divider with Custom Image

Last but not least, the PowerPack Divider widget lets you use a custom image with a
divider.

As you can see, the PowerPack Divider widget’s Content Tab options are
straightforward. Next, move to the Style tab for divider customization options.

Step 4: Style Your Page Divider


In the Style tab, you get an option to choose the Divider style. You get four different
divider style.

Solid Divider with Custom Text

Dashed Divider with Custom Image

Double Divider with Icon

Other divider styling options depend on the divider type you chose in the Content tab.

For example, if you choose the Plain Divider type, you can style it by adjusting the
divider’s Height, Width, and Color.
If you create a divider with a custom text, you can customize the text by changing its
font, size, color, and more. The icon divider type allows you to adjust the icon’s
alignment to be left, center or right.
Q.11.Add star, ring,tab,counter,progress bar testimonial accordion in
page

Step 1: Create a New Plugin to Add Star Ratings


To add star ratings with custom fields, you should create a new plugin. In this way, it’s
more convenient each time you reuse this feature.

I name this plugin MB Rating Field.

First, we start building this new plugin with the directory structure .

In it, the mb-rating-field.php file has the following content

Then, activate this plugin in the list of installed plugins in the Dashboard.

Next, we are going to start building the function to create custom fields for the star rating
feature of this plugin, following these steps:

Step 2: Create a Field Type to Add Star Ratings


In this step, we will create a new field type called rating to add star ratings.

First, create a class named RWMB_Rating_Field for this rating field. Usually, if you want to
create a certain type of field, you should create a class with the syntax RWMB _ {$
field_type} _Field. You can see more details in this guide .

Step 3: Create Options to Add Star Rating for the Rating


Field
Once you have the rating field, you need to create options that allow website owners to
score stars (from 0.5 to 5 stars).

This rating class will inherit all the methods of the RWMB_Field class. In this rating field,
we must specify the content of the html method to output the HTML in the backend.

Q.12.Add 4 menus and 2 sub menus in page.


Ans: Creating Your First Custom Navigation Menu
To create a navigation menu, you need to visit the Appearance » Menus page in your
WordPress admin dashboard.

Note: If you don’t see the ‘Appearance » Menus’ option on your site and see only ‘Appearance »
Editor (Beta)’, then that means your theme has Full Site Editing (FSE) enabled. You can click
here to skip ahead to the FSE section below.

First, you need to provide a name for your menu, like ‘Top Navigation Menu’, and then click the
‘Create Menu’ button.

This will expand the menu area, and it will look like this:

Next, you can choose the pages you want to add to the menu. You can either automatically add
all new top-level pages, or you can select specific pages from the left column.

First, click the ‘View All’ tab to see all your site’s pages. After that click the box next to each of
the pages you want to add to your menu, and then click on the ‘Add to Menu’ button.
Once your pages have been added, you can move them around by dragging and dropping them.

This way you can change their order and rearrange them.

Note: All menus have their items listed in a vertical (top to bottom) list in the menu editor. When
you put the menu live on your site, it’ll either display vertically or horizontally (left to right),
depending on the location you select.

Most themes have several different locations where you can put menus. In this example, we’re
using the Astra theme, which has 5 different locations.

After adding pages to the menu, select the location where you want to display the menu and click
on the ‘Save Menu’ button.

Tip: If you’re not sure where each location is, try saving the menu in different places, then visit
your site to see how it looks. You probably won’t want to use all the locations, but you might
want to use more than one.

Here’s our finished menu on the site:

Adding Categories to WordPress Menus


If you’re using WordPress to run a blog, then you may want to add your blog categories as a
drop-down in your WordPress menu.

We do this on WPBeginner and have multiple categories like news, themes, tutorials, and more.

You can easily add categories to your menu by clicking the Categories tab on the left side of the
menus screen. You may also need to click the ‘View All’ tab to see all your categories.
Simply select the categories you want to add to the menu, and then click the ‘Add to Menu’
button.

The categories will appear as regular menu items at the bottom of your menu.

Next, you can drag and drop them into position. For example, we’re going to put all of these
categories under the Blog menu item.

Do you want to have a blog page on your site that’s separate from your homepage? If so, check
out our tutorial on how to create a separate page for blog posts in WordPress.

Here’s how different categories appear in the navigational menu on our demo site:

Adding Custom Links to Your WordPress Navigation Menus


Aside from categories and pages, WordPress also makes it super easy to add custom links to
your menu. You can use it to link to your social media profiles, your online store, and other
websites that you own.

You will need to use the ‘Custom Links’ tab on the Menu screen. Simply add the link along with
the text you want to use in your menu and click the ‘Add to Menu’ button.
Editing or Removing a Menu Item in WordPress Navigation Menus
When you add pages or categories to your custom navigation menu, WordPress uses the page
title or category name as the link text. You can change this if you want.

Any menu item can be edited by clicking on the downward arrow next to it.

You can change the name of the menu item here. This is also where you can click ‘Remove’ to
take the link off your menu altogether.

If you’re struggling with the drag and drop interface, then you can also move the menu item
around by clicking the appropriate ‘Move’ link.

Adding Navigational Menus in Full Site Editor (FSE)


The new full site editor allows you to customize your WordPress themes using the block editor.
It was released in WordPress 5.9 and enables you to add different blocks to your templates to
create a unique design.

However, the full site editor is still in beta and limited to specific themes that support it. We’ll
use the default Twenty Twenty-Two theme for this tutorial. For more details, you can see our
article on the best WordPress full site editing themes.

To add a navigational menu using the full site editor, you’ll first need to go to Appearance »
Editor from your WordPress dashboard. You can also click the ‘Customize’ button on the
Twenty Twenty-Two theme to open the full site editor.

You might also like