wordpress_add

Tuesday, 26 August 2014

Add Readmore text in wordpress post..


Just paste this text in Function.php file

//Read More Button For Excerpt
function themprefix_excerpt_read_more_link($output) {
    global $post;
    return $output . ' <a href="' . get_permalink($post->ID) . '" class="more-link" title="Read More">Read More</a>';
}
add_filter( 'the_excerpt', 'themprefix_excerpt_read_more_link' );



second step is to use  the_excerpt() insted of the_content();


Subscribe us for Important Knowledge of word press.Your's suggestions are most welcomed..

Wednesday, 4 June 2014

Solution of "Checkout Redirect not working" in wordpress

Some time you get this kind of error when you update plugin of toWooCommerce 

{"result":"failure","messages":"
\n\t\t\t
Action failed. Please refresh the page and retry.<\/li>\n\t\t\t
Sorry, your session has expired. Return to homepage →<\/a><\/li>\n\t\t\t
First Name<\/strong> is a required field.<\/li>\n\t\t\t
Last Name<\/strong> is a required field.<\/li>\n\t\t\t
Address<\/strong> is a required field.<\/li>\n\t\t\t
Town\/City<\/strong> is a required field.<\/li>\n\t\t\t



==========================Solution==========================
Method 1:
Create and new page named as "Thankyou" from admin-panel and put this short code in it [woocommerce_thankyou]
than publish that page with default template
than its works fine if it is not working than Go to
 WooCommerce plugin >> setting >> pages
than add thankyou page in thanks field and save it than your issue will resolved.

Method 2:

sometimes this issue seen when WOoCom pulgin conflict with other plugins, So try to deactivate plugin one by one than you will identify that plugin which create conflict.

Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Menu Navigation Code which supports all browser

Navigation Code which supports all browser (IE6 - IE11)

=====CSS====

.menu {
height: 45px;
background-color:#9D2522;
color:#9D2522;
float:left;
width: 100%;
margin-top: 2%;
}
.menu ul, .menu li {
margin: 0px;
padding: 0px;
list-style: none;
}
.menu li {
height: 45px;
float: left;
font-size: 15px;
font-family: MyriadPro-Regular;
}
.menu li a {
text-decoration: none;
display: block;
color: #FFF;
padding: 16px 39px 12px 39px;

}
.menu li a.first {
background-image: none;
}
.menu li a:hover {
background-color:#3c0d0a;
text-decoration:none;
}

=====HTML====

 <div class="menu">
    <ul>
    <li class="first_li"><a href="#" class="first">Menu 1</a></li>
            <li><a href="#">Menu 2</a></li>
            <li><a href="#"> Menu 3</a> </li>
            <li><a href="#">Menu 4</a></li>
            

    </ul>

  </div><!--Nav-->

Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Monday, 2 June 2014

Skype call through HTML code

Easy code to add Skype call in website??


<a  href="callto://+********">Call me on Cell number</a>

<!---Just replace "*" With you phone number This the method to call on cell phone using skype [ MUST have Skype credit ]---->

<a  href="skype:********?call">Call me On skype id </a>


<!---Just replace "*" With you Skype name than user call you directly on your skype id  ---->



Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

Monday, 28 April 2014

Dropdown menu using CSS

Dropdown menu using CSS       

  <style>
ul#menu, ul#menu ul.sub-menu {
padding: 0;
margin: 0;
width: 52%;
position: absolute;
top: 68px;
font: normal 18px 'Trebuchet MS', Arial, Helvetica;
display: inline-block;
height: 24px;
left: 39%;
}
ul#menu li, ul#menu ul.sub-menu li {
    list-style-type: none;
    display: inline-block;
text-decoration: none;
}
/*Link Appearance*/
ul#menu li a, ul#menu li ul.sub-menu li a {
text-decoration: none;
padding: 5px;
display: inline-block;

}
ul.sub-menu li a {
width: 100%;
background-color: black;
text-decoration:none;
}
ul.sub-menu li{
background-color: black;
width: 164%;

}
/*Make the parent of sub-menu relative*/
ul#menu li {
    position: relative;
}
#menu li a:hover{
background: url(../images/hover_menu_link.gif) repeat-x left bottom;
color: #f51a1c;
}
/*sub menu*/
ul#menu li ul.sub-menu {
    display:none;
    position: absolute;
    top: 30px;
    left: 0;
    width: 100px;
}
ul#menu li:hover ul.sub-menu {
    display:block;
}
</style>
==========================:HTML:===========================
<li><a href="#">Indoor Range</a>    
                    <ul class="sub-menu">
                              
                        <li><a href="#">member</a></li>
                        <li><a href="#">non member</a></li>
                        <li><a href="#">About</a></li>
                        <li><a href="#">Contact</a></li>
                        
                                </ul>
                    
                    
                    </li>

Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.