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.

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.

Saturday, 29 March 2014

CSS3 and HTML5 Social media icons

Just Follow these steps and make your Own buttons Using CSS3
------------------------------HTML---------------------------------
<html>
<head>
  <meta charset="UTF-8" />
  <title>CSS3 and HTML5 Social media icons</title>
</head>
<body>
  <div class="wrapper">
  <a class="icon facebook" href="#"><span class="zocial-facebook"></span></a>
  <a class="icon twitter" href="#"><span class="zocial-twitter"></span></a>
  <a class="icon linkedin" href="#"><span class="zocial-linkedin"></span></a>
  <a class="icon youtube" href="#"><span class="zocial-youtube"></span></a>
  <a class="icon flickr" href="#"><span class="zocial-flickr"></span></a>
  <a class="icon email" href="#"><span class="zocial-email"></span></a>
  </div>
</body>
</html>

----------------------------------CSS-------------------------------
import url(http://weloveiconfonts.com/api/?family=zocial);

/* zocial */
[class*="zocial-"]:before {  font-family: 'zocial', sans-serif;}

body{  background: url("http://subtlepatterns.com/patterns/cloth_alike.png") repeat scroll 0% 0% transparent;}
.wrapper{  width: 325px;  height: 50px;  position: absolute;  top: 50%;  left: 50%;  margin-left: -162px;  margin-top: -25px;}

.icon{  display: inline-block;  position: relative;  color: #bdbdbd;  width: 50px;  height: 50px;  text-align: center;  font-size: 1.47em;  line-height: 2em;  background-color: #fff;  -moz-border-radius: 50%;  -webkit-border-radius: 50%;  border-radius: 50%;  box-shadow: 0px 3px 0px #bdbdbd, 0px 3px 10px #bababa;  -webkit-transition:background-color 250ms ease 0s;  transition:background-color 250ms ease 0s;}

.zocial-facebook{margin-left: -8px}
.icon.facebook:hover{background-color: #4986c7;}
.twitter:hover{background-color: #4cb6e8;}
.linkedin:hover{background-color: #29a0cc;}
.youtube:hover{background-color: #a32929;}
.flickr:hover{background-color: #c257ad;}
.email:hover{background-color: #d5b120;}

a{  text-decoration: none;}
.icon:hover{  color: #fff;  box-shadow: 0px 3px 0px #686868, 0px 3px 10px #7e7e7e;}
.icon:active{  box-shadow: inset 0px 1px 4px #3d3d3d, 0px 0px 0px #bdbdbd;  top: 3px;}

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

Wednesday, 19 March 2014

Transfer Skype History to Another Computer


Make sure that Skype is not running on your computer. Both the old and the new.

Go to Windows Start and in the Search/Run box type %appdata%\skype and press Enter or the OK button. This will open a window with a Skype folder. Within this folder locate a subfolder with name corresponding to your Skype name. Open this folder. You will find there a file with name main.db. It may have just have a name “main” if your PC is setup to not show extensions for known file types but you will still see description “Data Base File” in the Type column. Copy this main.db file to any removable storage, like e.g. an USB flash drive or CD and transfer it to the corresponding folder on your other PC. You will now be able to see the whole call history from the old Skype installation on the new installation.

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

Thursday, 30 January 2014

Pagination in wordpress

Pagination in wordpress

First of all download this plugin

https://codex.wordpress.org/Pagination

than paste this code in any template where you want to show all the posts


<?php 


// the query to set the posts per page to 3

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$args = array('posts_per_page' => 3, 'paged' => $paged );
query_posts($args); ?>
<!-- the loop -->
<?php if ( have_posts() ) : while (have_posts()) : the_post(); ?>
  <!-- rest of the loop -->
  <!-- the title, the content etc.. -->
<?php endwhile; ?>
<!-- pagination -->
<?php next_posts_link(); ?>
<?php previous_posts_link(); ?>
<?php else : ?>
<!-- No posts found -->
<?php endif; ?>


if you want to show the post of specific category than replace this code in above code at line 2. 

$args = array('cat' => '7','posts_per_page' => 3, 'paged' => $paged );

NOTE : cat=>7 will be any Number ( ID of specific category)

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


Wednesday, 29 January 2014

Use two skype account at a same time..

How to run  Multiple instances of a software

Today i going to share an interesting information with you guys.how two use two skype accounts at a same time.

first login your first skype account with ordinary method for second account follow these steps

go to the command prompt 
than press 
win key + r
a dialog box will open than paste this line as it is in dialog box.
"C:\Program Files\Skype\Phone\Skype.exe" /secondary

[ Most of Computers have different Folder name like "Programs files (x86)" So replace that folder name in above path ]

Enjoy and give your feedback.

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



Thursday, 23 January 2014

Wordpress Search in Dr-wordpress

Wordpress Search : ( dr-wordpress.blogspot.com)

<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
    <div>
        <input type="text" value="" name="s" id="s" placeholder="Search Here..." />
        <input type="submit" id="searchsubmit" value="" />
    </div>
</form>

just copy and paste this code and put it in search box area.. and enjoy searching..:)


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

Friday, 10 January 2014

Get checkbox value in PHP

Get checkbox value in PHP



<form action="index.php" method="post">

 <input type="checkbox" name="language[]" value="php" />PHP<br /> 
<input type="checkbox" name="language[]" value="html" />HTML<br /> 
<input type="checkbox" name="language[]" value="java" />Java<br />
 <input type="checkbox" name="language[]" value="c++" />C++<br /> 
<input type="submit" value="send" />

 </form>


foreach($_POST['language'] as $value)
 {
    echo 'Checked: '.$value.' ';
 }

If you check all the checkboxes, this script will output: 

Checked: php
Checked: html
Checked: java
Checked: c++

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

Thursday, 9 January 2014

Online image Mapping.

Image mapping in HTML

Just go to this website and add your image
Than you have different options right there draw online mapping with associated link.
Online code will generate copy that code and use it like i mentioned below in this POST

http://www.maschek.hu/imagemap/imgmap

How To use code :

Example:
**********************************************************
This code will generate by Online Tool.

<MAP NAME=mymap>

<AREA HREF="/reference/" ALT="HTML and CSS Reference" COORDS="5,5,95,195">
<AREA HREF="/design/" ALT="Design Guide" COORDS="105,5,195,195">
<AREA HREF="/tools/" ALT="Tools" COORDS="205,5,295,195">

</MAP>

**********************************************************

<IMG SRC="sitemap.gif" ALT="Site map" USEMAP="#mymap" WIDTH=300 HEIGHT=200>

Put this line with proper name (Highlighted in red font) 
---------------------------------------------------------

HTML allows images in different documents to use the same MAP definition from just one file, but many browsers do not support this and require the MAP and image elements to be in the same document.
MAP was originally defined to take one or more AREA elements that specify the coordinates of a clickable region on the image. An example follows:

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


Wednesday, 8 January 2014

Interview questions for Software Developers

Interview questions for fresher Software developers

hi i found a website where lots of important queries were asked. Visit this link

For php

http://www.pcds.co.in/php-interview-questions-and-answer.php

for .net development

http://www.pcds.co.in/dot-net-interview-questions-and-answers.php

Android Interview Questions And Answers

http://www.pcds.co.in/common-android-interview-questions-and-answers.php

Here is the link of blog which helps You alot for preparing interview questions


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

Tuesday, 7 January 2014

Code For Download PDF format Using PHP

How to Download PDF Using PHP ( dr-wordpress.blogspot.com )

  1. Upload the file you want to make available for download to your web server. For example,
    dr-wordpress.pdf
  2. Edit a new PHP file in your web editor. For example:
  3. <?php
    header("Content-disposition: attachment; filename=dr-wordpress.pdf");
    header("Content-type: application/pdf");
    readfile("dr-wordpress.pdf");
    ?>
  4. Link to your PHP file as a download link. For example:
    <a href="huge_document.php">Download dr-wordpress (PDF) File</a>

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