Developers Desire!
Wednesday, June 14, 2017
How to Give Author/Users the right to embed in WordPress
The capability you are after is called
unfiltered_html
. Some options:- Modify author capabilities in your theme
functions.php
. This is saved in the DB, so you can access a page, make sure it works then remove it from yourfunctions.php
file. A better option would be to run it on theme activation. See this page on WP Codexfor options: function add_theme_caps() { // gets the author role $role = get_role( 'author' ); // This only works, because it accesses the class instance. // would allow the author to edit others' posts for current theme only $role->add_cap( 'unfiltered_html' ); } add_action( 'admin_init', 'add_theme_caps');
Thursday, April 14, 2016
How to Add a Category in WordPress Blog
To add a category in WordPress blog you must have to follow the steps mentioned below :
- Login to your WordPress account exp : http://www.yoursite.com/wp-admin Press Enter to login to your website.
2. Now you can see your dashboard as like in the image :
3. Now you have to hover on post tab and simply you can find the categories option over there. Exp:
4. Now simply click on the categories option you can see the the option to add new category, by entering the name and slug of the category you can simply add the new category to your blog. Exp:
5. Now you can categorize your each blog post using different categories you have. Exp:
So these are the simple steps to add a category and assign a particular category to each blog post.
Steps to Create a WordPress Blog Post
Steps to create a new blog post in wordpress :
- Log in to wordpress dashboard: Login to wordpress dashbord account using URLhttp://yoursite.com/wp-admin.

- Click Post tab : Now click to post tab to add a new post to your blog or website.
- Click ti Add New Sub Tab : Now go to sub tab of all post to add new post.
- Start filling in the blanks: enter your post title in the upper field, and enter your post body content in the main post editing box below it.
- As needed, select a category, add tags, and make other selections from the sections below the post. (Each of these sections is explained below.
- When you are ready, click Publish.
That’s it.
Tuesday, November 11, 2014
Introduction: What is WordPress?
Introduction: What is WordPress?
What is WordPress?
WordPress is a Content Management System as well as a free blogging tool is used for creating a blogging website.Any one can easily create a free blogging/ business website using WordPress, even if you don’t have a basic knowledge of programming language you can easily create a website using WordPress.
Thursday, September 11, 2014
Bold Italic and Underline tag in html
Bold:
To make a text bold in html we have to use bold <b> element, it is an inline element it means you can use it within the line and the effect of this tag is also applicable on the same line. The contents placed in between <b> bold tag is looks bold if you use this tag.
To make a text bold in html we have to use bold <b> element, it is an inline element it means you can use it within the line and the effect of this tag is also applicable on the same line. The contents placed in between <b> bold tag is looks bold if you use this tag.
Example:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <b>Bold</b> Tag.</p>
</body>
</html>
Output:

Italic:
To make a text italic we have to use <i> tag, it is also an inline element.
Example:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <i>italic</i> Tag.</p>
</body>
</html>
Output:

Undeline:
To make a text underline we have to use underline tag (<u>) it is also an inline element.
Example:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<p>This is a Paragraph with <u>Underline</u> Tag.</p>
</body>
</html>
Output:

Friday, September 5, 2014
What is CSS?
What is CSS?
1 Vote
CSS stands for Cascading Style Sheet.
What CSS does?
CSS allows you to create rule’s that specify how the content of an element should appear.For example, you can specify that the background of the page is white, all paragraphs should appear in gray using the Arial typeface, or that all level one headings should be in a blue, italic, Times typeface.
We can use CSS in three way to our html page.
Inline CSS style: In this type of CSS style we have to embed style within the HTML element.
Example:
<h1 style="color:blue">Blue Heading</h1>
Internal CSS Style: In this type of CSS style we have to write CSS styles in the head section of the html page.
Example:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>CSS Style</title>
<style type="text/css">
h1{
Color:Blue;
}
</style>
</head>
<body>
<h1>Blue Heading</h1>
</body>
</html>
Output:
External Style Sheet: In this type of CSS we have to create a external page for style and save it with .css extension then embet it to the html page in the head section.
Example:
/*Cascading Style Sheets*/
h1{
color:red;
}
style.css the name of the external style sheet and we have to link this page to html page where we want to apply this style.
Example:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>External Style</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<h1>Blue Heading</h1>
</body>
</html>
Output:
Subscribe to:
Posts (Atom)