wordpress_add

Thursday, 20 November 2014

CSS hack For IE ,Internet Explorer hack

 Just replace your class or Id with #hash Don't delete the comments
 
#hack{
color:red; /* All browsers */
color:red !important;/* All browsers but IE6 */
_color:red; /* Only works in IE6 */
*color:red; /* IE6, IE7 */
+color:red;/* Only works in IE7*/
*+color:red; /* Only works in IE7 */
color:red\9; /* IE6, IE7, IE8, IE9 */
color:red\0; /* IE8, IE9 */
color:red\9\0;/*Only works in IE9*/
}
 

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

Wednesday, 22 October 2014

Change Css of Other element onhover

For example you have this structure
<div id="dr-wordpress">
                      <h1 id="web" > This is my Blog </h1>
</div>
If the web is directly inside the "dr-wordpress":
#dr-wordpress:hover > #web { background-color: yellow; }
If web is next to (after containers closing tag) the "dr-wordpress":
#dr-wordpress:hover + #web { background-color: yellow; }
If the web is somewhere inside the "dr-wordpress":
#dr-wordpress:hover #web { background-color: yellow; }

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

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.