How to change sign-up fee text in WooCommerce Subscriptions

Try this:

function change_subscription_product_string( $subscription_string, $product, $include )
{
if( $include['sign_up_fee'] ){
$subscription_string = str_replace('sign-up fee', 'your text', $subscription_string);
}
return $subscription_string;
}
add_filter( 'woocommerce_subscriptions_product_price_string', 'change_subscription_product_string', 10, 3 );

Limit wordpress title to 25 characters

I will show you how you can limit the post titles on the wordpress. Please use below code and check the output

<?php if (strlen(get_the_title()) > 25) { echo substr(get_the_title(),0, 25 ).’…’; } else { echo get_the_title();} ?>

I hope this solution will work for you!!

How to fix empty dashboard issue in WordPress?

To fix the bug:

Open file /wp-admin/includes/screen.php
Find the following PHP statement: _help_sidebar; ?>
Replace it with the statement: _help_sidebar; ?>
Save your changes.

Reset wordpress default jquery for front site

Reset wordpress default jquery for front site. Use below code in template functions.php file and you’r done!

if( !is_admin()){
wp_deregister_script(‘jquery’);
wp_register_script(‘jquery’, (“http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”), false, ‘1.10.2’);
wp_enqueue_script(‘jquery’);
}

WordPress issue : Could not create upgrade directory

Today I got strange issue while update wordpress site. This gave me error like this “Could not create upgrade directory”.

Firstly I thought this was the issue of directory permission so I did set upgrade directory 777 mode but I was unsuccessful. Then tried to delete upgrade folder and created new one, for me that was still issue. Then I read the some articles on WordPress codex and this trick(delete and create upgrade directory) works for many people. But in the mine case this was not work. I started think about this issue and found the issue with ask apache module. This module was not giving permission to write anything on the directory.

Finally I deactivate ask apache module and upgrade my WordPress version as well as plugin and again I activated this plugin for security purposes. This technique worked for me very well.

Hope this method will work for other people.

How to include JQuery on your WordPress theme

WordPress comes with JQuery (It is used in the dashboard) so you don’t need to download a new copy of JQuery to your WordPress server.
For accessing JQuery on WordPress site, you need to paste below code on your header.php file within the and tags:

When you will add this JQuery automatically will be called in the website.

That’s all!!

WordPress Classifieds Plugins

Here I am posting usefull classified plugins.

1- Another WordPress Classifieds Plugin (AWPCP)
This plugin is Great for increasing retention to your site, adding revenue for your business, and creating customer interaction and this plugin includes much more options, it is highly configurable and customizable according to the needs of your website. You can can found the full feature list on plugin official WordPress website section. You can check AWPCP website for more information.

2- WP Classified
This plugin allows you to add a simple information & advertising blackboard or classified page in to your wordpress blog. The functionality is basic and very easy to use. Note that this plugin will greatly help you adding classifieds section as a feature for your website. It is not designed to make classified ads the primary resource of your WordPress based website. You can check WP Classified website for more information.

3- Your Classified Ads
Your Classified Ads is a plugin that adds classified ads to your WordPress blog.
Key features
Uses custom post types and custom taxonomies.
Multi-taxonomies searches
Powered by One Quick Post; which means : frontend posting, guest posting, geo-search ads, file upload, author’s notifications,…
BuddyPress compatible. (Soon : specific BuddyPress features)

For information check the plugin official page

Add sidebar to post view in Twenty Eleven theme

By default Twenty Eleven doesn’t display a sidebar on the post view page, but this can be added fairly easy. We have two options for it :

1- Doing it manual changes on the code.

For this open single.php and add near the bottom

<?php get_sidebar(); ?>

before

<?php get_footer(); ?>

and add the below code on the functions.php file for your theme

<?php
add_filter(‘body_class’, ‘blacklist_body_class’, 20, 2);
function blacklist_body_class($wp_classes, $extra_classes) {
if( is_single() || is_page() ) :
// List of the classes to remove from the WP generated classes
$blacklist = array(‘singular’);
// Filter the body classes
foreach( $blacklist as $val ) {
if (!in_array($val, $wp_classes)) : continue;
else:
foreach($wp_classes as $key => $value) {
if ($value == $val) unset($wp_classes[$key]);
}
endif;
}
endif; // Add the extra classes back untouched
return array_merge($wp_classes, (array) $extra_classes);
}

2- Option is to use simply Twenty Eleven Theme Extensions plugin
This plugin is Easy to use customizations for the default theme Twenty Eleven
add sidebars back into your blog pages, and quickly change individual color settings.

Plugin link is here : http://wordpress.org/extend/plugins/twenty-eleven-theme-extensions/

Google Custom Search WordPress Plugin

With wordpress Google custom search plugin, wordpress user can boost the search functionality for his websites/blogs.
WordPress has a relatively good search functionality but doesn’t match keywords that well. WordPress search functionality display results ordered by date and not by its relevance to the keywords.

Here is a very good Google custom search plugin I found on the Internet and used on this site.

Click for Google Custom Search plugin

This plugin is very flexible and you can configure the both the search box and the search results.
Google Custom Search widget’s search box can be displayed as either a widget or placed anywhere in the code.

The search results can be displayed in one of three formats.

As a pop-up resizable dialog.
Within the widget, under the search box.
Displayed anywhere in the code.