Do’s and Don’ts of WordPress Theme Customization

WordPress theme customization gives you an opportunity to add some extra features to your website. In website development, there is always more than one way to perform a job, however, these quick do’s and don’ts will show you which way to choose to get better results within stipulated time period.

Do and Dont of WordPress Theme Customization

Don’t Hack Parent Theme’s Code

This is the first and foremost thing to keep in mind. Do not ever alter or change the core! There are many bloggers who keep making the same mistake of changing the parent code. Constant updates of wordpress makes it difficult for a blogger or developer to keep the modifications made previously. With every update of wordpress, the modifications get lost. Also, the changes made in the core may lead to the failure of wordpress plugins or other important aspects.

Do Use Child Themes

One of the best ways to make changes in your wordpress theme is to create a child theme. It will allow you to make as many changes as you want in your wordpress theme while keeping the basic functionality alive and in proper working condition.

Wordpress Theme Customization-1
Do’s and Don’ts of WordPress Theme Customization

Don’t Use Inline Styles

Never use inline styles! This may seem convenient and easy at first, but you will definitely end up regretting. Inline styles have high preference and therefore, it will always win whether you have created external CSS style sheet or not. In addition, unlike external style sheets, inline styles are not easy to maintain. With infinite coding lines, you wouldn’t want to waste your time and effort on figuring out which inline style needs modification to get the required result.

Wordpress Theme Customization-2

In case you must put inline styles, use embedded style sheets in the <head> section instead. At least this way you can easily manage and modify them whenever you need.

Do Make Use of Core Options

WordPress comes with many options, plugins and functions, which are so easy to incorporate into your theme. Though these options don’t get used very often, they are a great way to enhance the functionality of your theme. One such example is of “date format”. You can simply incorporate it to users date or time format on comments.

Don’t Hardcode URLs

For some obvious reasons, don’t hardcore URLs. Make sure to use actions available in the coding.

Reasons why you shouldn’t hardcode URLs:

Plan on changing your domain name in the near future? If so, you’ll also need to change your hard-coded URLs.

If you are working on a local server and going to move it to server anytime soon, you should rather avoid hard-coding URLs.

You theme will break down if you are going to use it on another website.

Do use Enqueue function

Using enqueue function lets wordpress manage the queuing of all the files which are loaded at the right time. There are numerous reasons of avoiding the addition of resource into the init action. First of all, there is no way of checking whether or not a file has been loaded. Secondly, the scripts and styles will be loaded on every page when using in it. Also, it may lead to failure of some plugins.

Wordpress Theme Customization-3

Make wordpress customization easy with these tips.

Happy coding!

increase page views per visit wordpress

Getting the traffic every day is very hard and managing those traffic is very important. Many times visitors comes to your site but they do not visit the other pages of site. Here are some nice tips to increase page views per visit wordpress.

increase page views per visit wordpress

keeping busy the visitors on your site is important. Some blogger think getting the visitors on there website is easy but keeping busy the visitors is hard. If visitor comes to your site and without going to another site, visitor goes to another site or leaves the site then that is called bounce and It will not be helpful to increase the your site page views.

We do many tricks to increase the page views. If you are using wordpress for your website then you can use some nice wordpress plugins which will increase the page views per visitor. There are so many factors for increase the page views. I collected some nice wordpress plugins which will help you to increase the page views per visit.

Advanced Random Posts Widget

Advanced Random Posts Widget,increase page views per visit wordpress
increase page views per visit wordpress

This plugin will enable a custom, flexible and super advanced random posts widget. Allows you to display a list of the most random posts with thumbnail, excerpt and post date, also you can display it from all or specific or multiple category or tag. Using random post widget you can increase page views per visit wordpress.

Flare

flare,increase page views per visit wordpress
increase page views per visit wordpress

Flare is a simple yet eye-catching social sharing bar that gets you followed and lets your content get shared via posts, pages, and media types.
The Flare plugin isn’t in active development because we’ve created a hosted app version of Flare that works with virtually any website or CMS, including WordPress. Using flare wordpress plugin you can increase page views per visit wordpress.

GetSocial

GetSocial adds a lightweight and intelligent floating social media sharing box on your blog posts. Using getsocial plugin you can increase page views per visit wordpress.

Features:

  •     Floating social share box compatible with leading web browsers
  •     Out-of-the-box functionality like
  •         Twitter Tweet Button
  •         Facebook Like and Send button
  •         Google +1 Button
  •         Buffer Button
  •         Pinterest Button
  •         LinkedIn Button
  •         Stumbleupon Submit button
  •         Digg Submit button
  •         Your Own Button

nrelate Most Popular

The best way to display your most popular content from your website. Using most post popular widget you can increase page views per visit wordpress.

Installing this plugin is as simple as activating it, and you can leave the rest to nrelate. Once activated, the nrelate servers will immediately begin monitoring your website and start displaying your most popular content.

There are four ways to display popular content:
1. Automatically display before or after each post.
2. Use the [nrelate-popular] shortcode in your post.
3. Use our widget in any widget area in your theme
4. Place the nrelate_popular() function in your theme files.

nrelate’s style gallery allows you to customize the look of our plugin by choosing one of our set styles, or designing your own.
Check out the screenshots.

Advertising is also possible with the plugin. Ads come with the same display options as the popular content and are a great way to earn a little extra income from your blog.

Because all of the processing and analyzing runs on our servers and not yours, nrelate doesn’t cause any additional load on your hosting account (especially if you’re using shared hosting).

Post Ratings

Simple, developer-friendly, straightforward post rating plugin. Relies on post meta to store avg. rating / vote count. Using post rating plugin you can increase page views per visit wordpress.
What does this plugin do:

Allow your site users to rate posts (of any kind)
Display the average post rating, vote count or weighted (bayesian) rating within your posts
Display a widget with the top rated posts in your sidebar
Allow you to create your own rating formula

Why another rating plugin? Because the existing ones are either outdated, bloated with useless functionality, or just too buggy 🙂

SEO Smart Links

SEO Smart Links provides automatic SEO benefits for your site in addition to custom keyword lists, nofollow and much more. Using seo smart links you can increase page views per visit wordpress.

SEO Smart Links can automatically link keywords and phrases in your posts and comments with corresponding posts, pages, categories and tags on your blog.

Further SEO Smart links allows you to set up your own keywords and set of matching URLs. Finally SEO Smart links allows you to set nofollow attribute and open links in new window.

It is a perfect solution to get your blog posts interlinked or add affiliate links to other sites.

Everything happens completely transparent, and you can edit the options from the administration settings panel.

TW Recent Posts Widget

TW Recent Posts Widget is advanced version of the WordPress Recent Posts widget allowing increased customization to display recent posts from category you define. Using recent post widget you can increase page views per visit wordpress.

Output will depend on your settings, and you may define to set post title, post date, featured image and post excerpt.

If you set to display featured image, than you will be able to define image width and height in px.

If you set to display excerpt, than you will be able to define how many characters to print and also you may add custom read more text.

upPrev

upPrev,increase page views per visit wordpress
upPrev,increase page views per visit wordpress

Display cool, animated flyout or fade box with related content. Just like New York Times. Using upprev popup you can increase page views per visit wordpress.

When a reader scrolls to the bottom of a single post, page or custom post type, a button animates in the page’s bottom right or left corner, allowing the reader to select the previous or random available post or posts in the selected configuration:

Just previous
Previous in category
Previous in tag
Random
Related using YARPP (only post/pages)

WP Greet Box

This plugin lets you show a different greeting message to your new visitors depending on their referrer url. For example, when a Digg user clicks through from Digg, they will see a message reminding them to digg your post if they like it. Another example, when a visitor clicks through from Twitter, they will see a message suggesting them to twit the post and follow you on Twitter. You can also set a default greeting message for new visitors (not matching any referrer URLs) suggesting them to subscribe to your RSS feed. Having these targeted suggestions will help your blog increase exposure, loyal readership, and reader interaction. Best of all, this plugin is compatible with WPMU and various WordPress cache plugins (so you do not have to sacrifice speed). Using greet box you can increase page views per visit wordpress.
Features:

Show a different greeting message to your visitor depending on the referrer URL. You can add/edit/delete/disable these greeting messages as you choose.
Beautiful set of icons shipped along with the different default referrers.
Clickable icon in greeting messages with target=_blank option.
Greeting messages automatically get inserted into the top of your posts upon activation. There is no need to modify theme files.
Ability to auto-insert greeting message to the top or bottom of the post.
Greeting messages can be user closeable or not.
Ability to detect the visitor’s search keywords from major search engines and automatically display related posts under or above the greeting message.
Show a default greeting message even if the vistor does not match any of your configured referrer URL.
Show a default greeting message even if the visitor does not have javascript enabled.
Cache compatible mode makes use of AJAX to display greeting messages in the frontend. This makes WP Greet Box compatible with other caching plugins (such as WP Super Cache) and WPMU.
AJAX administrative interface that uses nonce verification to discourage hackers.
Ability to keep displaying the greeting message until after the user clicks close for the first time. After that, the greeting message will not show up for that user anymore.
Ability to set a timeout to forget a visitor so we do not keep nagging them with greeting messages.
Ablity to set rules to exclude some referrer URLs from seeing greeting messages. Regular expressions is also supported (but not required!).
Ultra customizeable greeting message box (with CSS) allowing you to prepend/append HTML around the greeting message box.
Ability to disable included CSS for manual CSS management.
Ability to disable included JS for manual JS management.
Available “greet_box_text” filter for other plugins to modify greeting message before outputting.
Ability to import and export all WP Greet Box Settings.
Currently the following referrers are installed by default, but you can easily.

My Comments: Above plugin will increase your page views by at-least 50% for sure. You just need to install above plugins in your wordpress site and add some widgets in sidebar or footer area. I tested the above plugins. I found above wordpress plugins are very promising.

how to show author in wordpress post

wordpress tutorial, how to show author in wordpress post. Many people want to read the author information after the article. This is good for seo also.

how to show author in wordpress post

You can show the author information in single page using following code. just open your single.php file and put following code after the  the_content() function.

<div id="author-information">
<div id="author-image">
 <a href="<?php the_author_meta('user_url'); ?>">
 <?php echo get_avatar( get_the_author_meta('user_email'), '150',
 '' ); ?></a></div>
<div id="author-bio">
<h4>Written by < ?php the_author_link(); ?></h4>

< ?php the_author_meta('description'); ?>
</div>
</div>
<!--Author information-->

Use following code in your css file

#author-information{float:left;width:auto;clear:both;}
#author-image{border:3px solid #CCC; float:left:width:160px;}
#author-bio{padding:5px;float:left;}
how to show author in wordpress post
how to show author in wordpress post

Create fixed side or top buttons in wordpress theme

We can easily introduce fixed side buttons in wordpress or any website. In this article I given code snippet for Create fixed side buttons in wordpress.

Create fixed side buttons in wordpress

Fixing the position of any document element using CSS this is very old technique but still  I am going to give you some good trick to show the twitter button or search buttons or add new button on bottom or sidebar.

Using following CSS code you can integrate the any button on sidebar.


#submit_news { background:transparent url(images/submit-news.png) no-repeat scroll 0px 0px; height:170px; left:0; position:fixed; top:180px; width:40px; }
div#submit_news:hover { background-position:-41px 0px; }
#submit_news a{ display:block; height:170px; width:40px; }

In this tutorial we are using the only one image as a button. As we know we are using the sprite image css here.

Open your header.php file from wordpres theme. and under body tag put following code.

<div id=”submit_news”><a href=”/submit-news” ></a></div>

First you need to create the submit news page in wordpress.

If you want to add the submit news button for your site you can download from here.

how to create a motion blur effect to text in photoshop

In this photoshop tutorial we will show, how to create a motion blur effect to text in photoshop. we given simple steps with screenshot and their detail.

how to create a motion blur effect to text in photoshop

Select a text write on workspace “motion blur”

how to create a motion blur effect to text in photoshop
how to create a motion blur effect to text in photoshop

Scale this shape by selecting edit >> transform >> scale &

Go to layer >> select type >> & select type

Now you can modify text

Now select filter >>  >> select distort

You can select any angle & distance I select this

It will look like this

I made some duplicate layer so can I design it

Now select layer >> duplicate layer

Give it name art_1

Put layer like this


You can also made like this