Shaikh Aaquib Wordpress Practical Assignment
Shaikh Aaquib Wordpress Practical Assignment
Shaikh Aaquib Wordpress Practical Assignment
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.
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.
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.
Step 1: click on feature image on the right site and click on select feature Image
Content, Style, and Advanced tab.
In the Content tab, you’ll find an option to choose the Divider type for your page.
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:
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.
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.
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
First, we start building this new plugin with the directory structure .
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:
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 .
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.
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.
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:
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.
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.