Latest posts

Insert Ads In The Post Content After 1st Paragraph in WordPress

How to Insert Ads In your Post Content After 1st Paragraph in WordPress
There are many ways to insert adsense or other advertisement in your WordPress post/page content, you can insert it before the content or after the content, but how to insert your ad in the post? I mean after the first paragraph, or after the second paragraph.

First open your single.php file and look for the content code that would look something like this:

<?php the_content(); ?>

Then you can replace that code with the codes below:

<?php
$paragraphAfter= 2; //display after the first paragraph
$content = apply_filters('the_content', get_the_content());
$content = explode("</p>", $content);
for ($i = 0; $i <count($content); $i++ ) {
if ($i == $paragraphAfter) { ?>
<div>Insert Ads Here</div>
<?php }
echo $content[$i] . "</p>";
} ?>

You may change the number of paragraphs by changing $paragraphAfter line.

Remove The WordPress Comment URL Links

If you want to remove the WordPress comment url links, you can add the following code to the functions.php

function dobeweb_remove_comment_fields($fields) {
    unset($fields['url']);
    return $fields;
}
add_filter('comment_form_default_fields','dobeweb_remove_comment_fields');

How to Use TimThumb with WordPress Featured Images

The TimThumb is one of the most popular resizing web images script, a lot WordPress themes use this simple easy tool to crop the images, especially the WordPress magazine themes.

Usually, a lot WordPress theme use TimThumb resizing the first images in the post, however, with the developing of the WordPress, a featured images feature comes out, more people want to use the TimThumb to crop the featured images in the post.

If you want to re-size the WordPress featured image use timthumb, use the following code in the loop.

<?php
$image_id = get_post_thumbnail_id();
$image_url = wp_get_attachment_url($image_id);
?>
<img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php echo $image_url; ?>&w=400&h=300&q=100" alt="<?php the_title();?>" />

You can use the code replace the feature image code in the loop:

 <?php the_post_thumbnail( 'thumbnail' ); ?> 

Best CSS Button Generators – No CSS Button Tutorials Needed

Usually, the designers use images to search, form submit buttons, with the developing of the CSS 3, for some basic buttons, there is no need to use images, the CSS can do the work.

Here are top 3 CSS Button Generators, which are really easy to use:

3. CSS3 Button Generator – http://css3button.net/

css3 button generater

css3 button generater

2. Button Maker – http://css-tricks.com/examples/ButtonMaker/

button maker

button maker

1. CSS Button Generator – http://www.cssbuttongenerator.com/

css button generater

css button generater

I love the CSS Button Generator best. CSS Button Generator will create beautiful css buttons for you to use on your web pages without the need for any images. When you have styled your button to your liking, simply click on the generated button to get your css style code. And there are a lot schemes ready.

If you want to style the image buttons, here are some great css button tutorials for you.

PremiumPress Themes August Coupon Code

Great new for all, anyone who buy premiumpress.com premium WordPress themes in Auguest will get 30% – 40% off! Limited time off, if you are going to buy their themes, take your time.

The founder of premiumpress.com MARK FAIL just sent us some limited time PremiumPress Themes Coupon Code for dobeweb.com readers, here are the details:

If you want to the ShopperPress wordpress theme, DirectoryPress wordpress theme and WordPress ClassifiedsTheme, you can get 40% off in August use the PremiumPress Themes coupon code; click here to view to coupons

If you are going to buy AgencyPress, ComparisonPress, RealtorPress, ResumePress, AuctionPress, ShopperPress, DirectoryPress, Classifiedstheme, CouponPress, EmployeePress and MoviePress, you can get 30% off use the PremiumPress Themes discount coupon code. click here to view to discount codes.

We have collected all the coupon code here.

Pages:«1234567...168»