Posts Tagged ‘line’

Most Important parts of web Design

When you take your business online, you are choosing to distribute your product line or services to the world. It is essential to make sure that your website is welcoming and gives visitors all of the information that they would require if they were in the market for your goods or services. more visit to :-www.instant-website-security.com If a person encounters a website that looks as if the information will be difficult to find or a site that is difficult to read due to the color scheme or various other reasons, that person will move on to another site containing the same or similar information. You will want potential customers to stay onyour website.
One of the is the layout of your page. The main page will be the page that most people will encounter first when visiting your website. This page should most importantly let people know what your company is and give a general explanation of what you have to offer the consumer. The main page will also contain links that will take visitors to other parts ofyour website that they will find relevant to the information they are seeking. Cluttering your main page with too much information is one of the most fatal flaws in web design.
Another important aspect of your webpage is making sure that it is easily found. Search engines have a process in which they frequently scan information all across the internet and collect information for their search results. This process is basically looking for what each webpage is about so that when internet users utilize the search, they will find exactly what they are looking for. Filling your webpage with content that is specifically designed to catch the attention of these search engines is extremely important.
A third aspect of web design that can make your webpage a success or a failure is ease of use. Many internet users want a site where they can find what they need quickly and without having to follow too many links. They want to easily see what you have to offer and be able to easily find your products, services or other information. If it takes a user too long to find what they want, they will most likely move on to another webpage that may be more user friendly than yours. more visite to :-www.instant-squeeze-page-mastery.com Drawing visitors to your website is only the first part of having a successful site. You want visitors to stay at your site and find what they are looking for.
Your webpage is your face to the world. Every person that visits your website will receive a first impression that will either cause them to look elsewhere or they will return to your site again and again.

Mastering Your WordPress Theme Hacks and Techniques

This is the first article in the four-part series, “Powerful guide to master Your WordPress”. Throughout this article, we’ll be focus on many WordPress Theme hacks, ideas, tips and useful tutorials you need to have ready in hand when developing WordPress websites.

We’ll keep this post updated during this month. As we’ll check your suggestions and feedback,
select the best, add them to this list and provide a direct link to the person who submitted
the suggestion.

So let’s get started and don’t forget to subscribe to our RSS-Feed to keep track on our next post in this series.

*
This is the Loop

1)The Loop is perhaps the most important thing one needs to understand when customizing WordPress theme. Any HTML or PHP code placed between where The Loop starts and where The Loop ends will be used for each post. When WordPress documentation states “This tag must be within The Loop”, such as for specific Template Tag or plugins, this is The Loop.



// the code inside the loop


o
Further Readings On The Loop

Wp9 in Mastering Your WordPress Theme Hacks and Techniques
1)Modifying Individual Posts In The Loop- Sometimes Clients request things like Google ads being displayed after post #2, the top post having a differently colored background, only displaying the title for a few posts. You can’t do any of this inside a single Loop, so here’s how to use multiple loops to display lists of posts differently.How to use multiple loops to display lists of posts differently.

2)Embed Google Ad in First WordPress Post- One of the more effective places to implement Google Adsense is after the first post, so you want to prevent your ad code from appearing after every single post, as WordPress would just loop and keep showing it. All you need to do is add this code inside the loop.


// Insert your Google AdSense code here

You can also publish the advertisement after the second post or the third etc. Just change:

“count == 1? to “count == 2?
*
Category Related Techniques

The first step in modifying what happens when someone visits a Category page is to figure out which of your theme’s files is going to be used to display the posts. This is known as the Template Hierarchy.

This diagram, tells us most of what we need to know about organization of WordPress themes.

Change the number of posts displayed in Category Page.

You will need to open index.php file and find the line below,

then add this line right below it:

Where number “4″ is the number of posts you want to be displayed on every category page.

Have a different template for specific Category

So, if you want to make the Category whose ID number is 7 look different from what it is currently (and different from other Category pages), just create a category-7.php template file (or whatever your category ID is) in your current theme folder and customize it as you please. WordPress automatically checks for this, and will use the file if it exists. Please notice how we added the “-” and after it the id number of the category.

Displaying single post pages differently in specific category

For example, if you have a category called “News” and a category called “Tutorials” and you want the Stylesheet of the “News” category to be style1.css, and the stylesheet of the “Tutorials” category to be style2.css. Lorelle provides a simple solution by following the directions below:

Open single.php file and delete all the content and add the following code

$post = $wp_query->post;
if ( in_category(‘9′) ) {
include(TEMPLATEPATH . ‘/single2.php’);
} else {
include(TEMPLATEPATH . ‘/single1.php’);
}
?>

In the most simple terms, the PHP code issues a query that says: Check the post. If the post is in category ID number 9, display single2.php. If not in category ID number 9, display single1.php.
o
Further Reading on Categories

1)What Every Blogger Needs to Know About Categories- You can help your users, improve your SEO, and gain absolute control over your content by implementing your own WordPress category solution!
*
Conditional Tags

Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches.

Styling different categories: If you want to use certain stylesheet for specific category, all you have to do is add the code below to the tag in your index.php file.

>Gallery >About >Submit

o
Further Reading on Navigation Menu

Wp5 in Mastering Your WordPress Theme Hacks and Techniques
1)Creating Two-Tiered Conditional Navigation in Wordpress- Here is a common navigational scheme, with parent pages on top and child pages (if they exist) on bottom.

2) Smarter Navigation Menu Mike Cherim has explained how to get a smarter navigation menu using Conditional tags by offering post titles, archive dates, and category names instead of generic terminology.

There are two WordPress template tags, the_content() and the_excerpt() used within the WordPress Loop to display the content of the post.

Post excerpt allows you to display only the first part of your blog’s post, a block of content instead of displaying the full post. While many don’t know the real reason behind and just use it to make things more aesthetic, displaying excerpt has got many advantages both in the SEO and traffic area.

The_excerpt() is used to force only excerpts to be seen on the multi-post pages. Also, HTML tags and graphics are stripped from the excerpt’s content.

So here is how it works when using in the post:
o 1) If the post uses both the_excerpt() tag and the explicit excerpt that is written in the textarea box on the write post panel,

Display the explicit excerpt

o 2) If the post uses the_excerpt() tag only,

Display 120 words of the post

And here is how it works when using in the post
o 1) If the post uses the tag to mark the ending post of the excerpt,

Display this excerpt

o 2) If the tag is not used,

Display the entire post

o
Further Readings on Post Excerpts

1) Display Post Excerpts Only in WordPress- A good way to ensure your posts don’t show up in suplemental results since Google can find them in various places – ensures that the excerpt is shown on all pages except the full post page.

2) Use the More Tag on Wordpress- Many readers prefer to have full posts on the homepage so that they can read the content right there, without needing to click around. A simple solution to accommodate both sides is to use the “more” tag on Wordpress.

3)Custom Excerpts for WordPress

4)Things you should know when using post excerpt- Things you should be knowing and setting up when using post excerpt is described in this article: why use post excerpt?, Different ways of displaying post excerpt, Displaying excerpt on the frontpage, archives and search results page and Displaying full post in feeds.
*
Custom Fields

WordPress has the ability to allow you assign custom fields to a post by adding extra information to the post which give your blog a lot of flexibility. Custom fields have a name and a value. The Key is the name of the custom field and the Value is the value you want to give to that name. You can display this information in posts, pages, sidebars, or anywhere on your site. WordPress remembers previously used custom field names and can be selected in the drop down list.
* Getting Custom Field Values

get_post_meta($post_id, $key, $single);
ID, ‘key name’,true) ?>

Where $post->ID to get a post’s ID, $key is a string containing the name of the meta value you want and $single can either be true or false. If set to true then the function will return a single result, as a string. If false, or not set, then the function returns an array of the custom fields.
* Adding Custom Field in a post

To illustrate, we’ll start with a very basic example— Lets assume you want to display the author name right below the title of the post and add a direct link to the author’s website. For starters, you’ll need to open a new post and add 2 custom fields with their respective values, see the image below.
Wp10 in Mastering Your WordPress Theme Hacks and Techniques Now you can display these information inside your template file as below:


ID, ‘author_name’, true); ?>


ID, ‘author_url’, true); ?>

Our Partners

Related