<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tips and Tricks &#8211; Extreme Web Designs</title>
	<atom:link href="https://theextremewebdesigns.com/blog/category/tips-and-tricks/feed/" rel="self" type="application/rss+xml" />
	<link>https://theextremewebdesigns.com/blog</link>
	<description>Web Design and Web Development</description>
	<lastBuildDate>Tue, 06 Dec 2016 10:22:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>
<site xmlns="com-wordpress:feed-additions:1">156673191</site>	<item>
		<title>Flip Text Horizontally and Vertically Using CSS3 Easily</title>
		<link>https://theextremewebdesigns.com/blog/flip-text-horizontally-and-vertically-using-css3-easily/</link>
					<comments>https://theextremewebdesigns.com/blog/flip-text-horizontally-and-vertically-using-css3-easily/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 06 Dec 2016 10:22:33 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[flip text horizontally]]></category>
		<category><![CDATA[flip text vertically]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=4028</guid>

					<description><![CDATA[Ever wondered how to flip text horizontally and vertically without javascript? In this article, I will share easy ways to achieve the flip text effect just by using CSS/CSS3. Flip Text Horizontally Using CSS/CSS3 Let&#8217;s say that we have some text in a div and we would like to flip this text both horizontally. Let&#8217;s [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Ever wondered how to flip text horizontally and vertically without javascript? In this article, I will share easy ways to achieve the flip text effect just by using CSS/CSS3.</p>
<h2>Flip Text Horizontally Using CSS/CSS3</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=4028" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Let&#8217;s say that we have some text in a div and we would like to flip this text both horizontally. Let&#8217;s see how to do this.</p>
<pre class="lang:xhtml decode:true  " title="Horizontal Text Flip using CSS">&lt;style&gt;
.holder {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ddd;  
}

.horizontal-flip {
-moz-transform: scale(-1, 1);
-webkit-transform: scale(-1, 1);
-o-transform: scale(-1, 1);
-ms-transform: scale(-1, 1);
transform: scale(-1, 1);
}
&lt;/style&gt;


&lt;h2&gt;Horizontal Text Flip:&lt;/h2&gt;
&lt;div class="holder horizontal-flip"&gt;
1234567890
&lt;/div&gt;</pre>
<h2>Flip Text Vertically Using CSS/CSS3</h2>
<p>Now lets flip the same text vertically just by using CSS.</p>
<pre class="lang:xhtml decode:true " title="Vertical Text flip Using CSS3">&lt;style&gt;
.holder {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ddd;  
}

.vertical-flip {
-moz-transform: scale(1, -1);
-webkit-transform: scale(1, -1);
-o-transform: scale(1, -1);
-ms-transform: scale(1, -1);
transform: scale(1, -1);
}
&lt;/style&gt;


&lt;h2&gt;Vertical Text Flip:&lt;/h2&gt;
&lt;div class="holder horizontal-flip"&gt;
1234567890
&lt;/div&gt;</pre>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=4028" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h3>Simple, isn&#8217;t it?</h3>
<p>Do you know of any other ways to flip text using just CSS? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/flip-text-horizontally-and-vertically-using-css3-easily/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4028</post-id>	</item>
		<item>
		<title>WordPress Connection Information &#8211; Solution</title>
		<link>https://theextremewebdesigns.com/blog/wordpress-connection-information-solution/</link>
					<comments>https://theextremewebdesigns.com/blog/wordpress-connection-information-solution/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 20 Sep 2014 15:20:26 +0000</pubDate>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress ftp info]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=4002</guid>

					<description><![CDATA[If you are using WordPress for your blog or website, then there might be situations where the website/plugins upgrade is not as smooth as expected. Instead, the update asks for FTP info each and every time you want to upgrade plugins or your blog. This is not very helpful. In this article, I am going [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you are using WordPress for your blog or website, then there might be situations where the website/plugins upgrade is not as smooth as expected. Instead, the update asks for FTP info each and every time you want to upgrade plugins or your blog. This is not very helpful. In this article, I am going to share a very easy solution for this problem. Read on to find out more.</p>
<p><span id="more-4022"></span></p>
<h2>Stop WordPress From Asking FTP Information</h2>
<p>Ok, so let&#8217;s quickly look at what the problem is. Here is a screenshot of the screen that I am talking about:</p>
<div id="attachment_4004" style="width: 310px" class="wp-caption aligncenter"><a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2014/09/wordpress-connection-information-screen.png" class="broken_link"><img decoding="async" aria-describedby="caption-attachment-4004" class="wp-image-4004 size-medium" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2014/09/wordpress-connection-information-screen-300x151.png" alt="WordPress Connection Information Screen" width="300" height="151" /></a><p id="caption-attachment-4004" class="wp-caption-text">WordPress Connection Information Screen</p></div>
<p>You may be seeing a very similar screen if you try to upgrade your blog. Essentially, the screen states the following message:</p>
<blockquote><p><em><strong>Connection Information </strong></em></p>
<p><em>To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.</em></p></blockquote>
<p>So getting to this screen and then manually entering all the required information each and every time an upgrade is to be performed can be very annoying. So here&#8217;s the solution:</p>
<h2>Solution for WordPress Connection Information Nag Screen</h2>
<p>When you install WordPress, the root directory of the website will contain a file called &#8220;wp-config.php&#8221;. WordPress stores some of the important and required information in this file. Open this file in a text editor and copy the following three lines just after the initial comments in the file:</p>
<pre class="lang:xhtml decode:true ">//FTP info
define('FTP_USER', 'ftp_user_here');
define('FTP_PASS', 'ftp_password_here');
define('FTP_HOST', 'ftp_host_name_here');</pre>
<p>The first line in the above code is a comment. The next three lines after the comment are required for you to solve this issue. Just copy those lines and modify the values to the actual values provided by your web host. So here&#8217;s what you need to do:</p>
<ul>
<li>Replace &#8216;ftp_user_here&#8217; with your actual FTP username.</li>
<li>Replace &#8216;ftp_password_here&#8217; with your actual FTP username.</li>
<li>Replace &#8216;ftp_hostname_here&#8217; with your actual FTP username.</li>
</ul>
<p>You can get the above details from your web host. If you are still confused as to where to add this info, just look at the screenshot below for better understanding:</p>
<div id="attachment_4003" style="width: 310px" class="wp-caption aligncenter"><a href="https://theextremewebdesigns.com/blog/wp-content/uploads/2014/09/ftp-info-solution.jpg" class="broken_link"><img fetchpriority="high" decoding="async" aria-describedby="caption-attachment-4003" class="size-medium wp-image-4003" src="https://theextremewebdesigns.com/blog/wp-content/uploads/2014/09/ftp-info-solution-300x182.jpg" alt="WordPress FTP Info Solution" width="300" height="182" /></a><p id="caption-attachment-4003" class="wp-caption-text">WordPress FTP Info Solution</p></div>
<p>So once you have updated the file with the required info, simply save the file and then upload it back to your website&#8217;s root folder. After that, go back to the upgrade page and try out the action that you previously performed. If you have done everything correctly, then you won&#8217;t see the FTP info nag screen again.</p>
<h3>Conclusion</h3>
<p>Editing wp-config.php file and filling it with the FTP User, FTP Password and FTP Hostname is the solution. Hope this solution has helps the needy. Let us know your experience by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/wordpress-connection-information-solution/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4022</post-id>	</item>
		<item>
		<title>Remove Single Or Multiple Attributes Using jQuery Examples</title>
		<link>https://theextremewebdesigns.com/blog/remove-single-or-multiple-attributes-using-jquery-examples/</link>
					<comments>https://theextremewebdesigns.com/blog/remove-single-or-multiple-attributes-using-jquery-examples/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 14 Jul 2014 10:14:31 +0000</pubDate>
				<category><![CDATA[Demos]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Demos]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-snippets]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3991</guid>

					<description><![CDATA[When working with different elements of a website, there might be times when you have come across different elements containing a single attribute or multiple attributes. These attributes can, in turn, consist of single or multiple properties. So in this article, I am going to share with you very easy way to get rid of [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>When working with different elements of a website, there might be times when you have come across different elements containing a single attribute or multiple attributes. These attributes can, in turn, consist of single or multiple properties. So in this article, I am going to share with you very easy way to get rid of either a single attribute or multiple attributes from any element of your choice using jQuery with easy to follow examples.</p>
<h2>How To Remove Single Or Multiple Attributes:</h2>
<p><div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=4021" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
     Let’s look at how to do this by means of examples. Assume that we have couple of div elements with attributes. We will see how to remove single &amp; multiple attributes from it.</p>
<h2>Examples:</h2>
<h3>Example 1: Remove single attribute from an element:</h3>
<p>In this example, we have a div with an attribute called “style”. This “style” attribute contains multiple properties such as “background-color” and “color”. We also have a button and when this button is clicked, we will remove the style attribute and the div will appear plain.</p>
<pre class="lang:xhtml decode:true">&lt;div id="my_div1" style="background-color: gold; color: darkgreen;"&gt;This is a div with a single "style" attribute.&lt;/div&gt;

&lt;input type="submit" name="sbt_remove_single_property" id="sbt_remove_single_property" value="Remove Style Attribute"&gt;

&lt;script type="text/javascript" language="javascript"&gt;

   $(document).ready(function () {

       $('#sbt_remove_single_property').on("click", function () {

           $('#my_div1').removeAttr('style');

       });

   });

&lt;/script&gt;</pre>
<h3>Example 2: Remove multiple attributes from an element:</h3>
<p>In this example, we have a div with an attribute called “style” and “class”. This “style” attribute contains multiple properties such as “background-color” and “color”. The “class” attribute contains multiple properties that affects the way this div is displayed even further. Next, we have a button and when this button is clicked, we will remove both the “style” and the “class” attributes and the div will appear plain.</p>
<pre class="lang:xhtml decode:true ">&lt;div id="my_div2" class="highlight" style="background-color: lightblue; color: purple;"&gt;This is a div with multiple attributes (style and class).&lt;/div&gt;

&lt;input type="submit" name="sbt_remove_multiple_properties" id="sbt_remove_multiple_properties" value="Remove Style and Class Attributes"&gt;

&lt;script type="text/javascript" language="javascript"&gt;

   $(document).ready(function () {

       $('#sbt_remove_multiple_properties').on("click", function () {

           $('#my_div2').removeAttr('style class');

       });

   });

&lt;/script&gt;</pre>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=4021" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h3>Conclusion:</h3>
<p>So from the above example, we can conclude that we can remove a single attribute or multiple attributes from any element. <strong>To remove multiple attributes, simply specifying the attributes separated by space will suffice</strong>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/remove-single-or-multiple-attributes-using-jquery-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">4021</post-id>	</item>
		<item>
		<title>Remove Only One Inline Style Property With jQuery Examples</title>
		<link>https://theextremewebdesigns.com/blog/removing-single-inline-style-property-using-jquery/</link>
					<comments>https://theextremewebdesigns.com/blog/removing-single-inline-style-property-using-jquery/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 25 Sep 2013 19:05:20 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-snippets]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3959</guid>

					<description><![CDATA[At some point of time or the other, you may have come across an element that has inline styles applied to it with multiple properties and their respective values. So do you know of a way to remove a specific property and retain the rest? If not, this article is for you. In this article, [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>At some point of time or the other, you may have come across an element that has inline styles applied to it with multiple properties and their respective values. So do you know of a way to <strong>remove a specific property</strong> and retain the rest? If not, this article is for you. In this article, I am going to share share a very easy way to do so. Follow along for more info.</p>
<p><span id="more-3959"></span></p>
<h2>How to remove a specifc inline property using jQuery</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3959" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Let&#8217;s look at how to do this by means of an example. Assume that you have a div with ID &#8220;<strong>my_div</strong>&#8220;. This div has four properties such as width, height and background color and color applied inline to it. So it would look something like this:</p>
<pre class="lang:xhtml decode:true">&lt;div id="my_div" style="width: 50%; height: 50%; background-color:red; color:green;"&gt;
This is my div with a background
&lt;/div&gt;</pre>
<p>Now you would like to remove the background-color property alone and leave the other properties with their respective values as it is. In order to so, here&#8217;s what you would need to do:</p>
<pre class="lang:xhtml decode:true">$('#my_div').css("background-color", "");</pre>
<p>Considering the above example, if you just wanted to remove the height property of the div and retain the others as they are, here&#8217;s what needs to be done:</p>
<pre class="lang:xhtml decode:true">$('#my_div').css("height", "");</pre>
<p>So you see, it&#8217;s very easy to remove any specific property along with its value applied to any element when inline styles are applied to the element.</p>
<p><strong>NOTE:</strong></p>
<p>One thing to remember is that removing any property in the way indicated above, will not overwrite the stylesheet itself. That means, your styles will be intact in the stylesheet. The targeted inline property will be just removed from the element in the DOM.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3959" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>That&#8217;s it!</h5>
<p>Has this post helped you? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/removing-single-inline-style-property-using-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3959</post-id>	</item>
		<item>
		<title>Disable Comments For A Single Post Or Page in WordPress</title>
		<link>https://theextremewebdesigns.com/blog/disable-comments-single-post-page-wordpress/</link>
					<comments>https://theextremewebdesigns.com/blog/disable-comments-single-post-page-wordpress/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 04 Sep 2013 19:05:16 +0000</pubDate>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3953</guid>

					<description><![CDATA[If you use WordPress as a blog or as a website, then you may have come across a situation where you needed to disable comments for a specific post or for a specific page. But do you see an option to do so in the Edit Post/Page screen? No! Then how would you disable the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>If you use WordPress as a blog or as a website, then you may have come across a situation where you needed to disable comments for a specific post or for a specific page. But do you see an option to do so in the Edit Post/Page screen? No! Then how would you disable the comments specifically for only the post(s) and page(s) you desire? Well, in this article, I am going to show you how to do this in 3 simple and easy steps. Follow along for more info.</p>
<h2>How to disable comments on certain Posts and Pages?</h2>
<p>It&#8217;s very easy to do so. And I will show you how to do this for both posts and pages. Let&#8217;s assume that you are logged into your WordPress website as Admin and let&#8217;s get started.</p>
<h3>Disabling comments for a specific Post:</h3>
<p>1. Click on &#8220;All Posts&#8221; link under the &#8220;Posts&#8221; menu in Left Hand navigation.<br />
2. Scroll to the Post that you wish to disable the comments upon and hover over the title. You will see the following options: <strong>Edit | Quick Edit | Trash | View</strong>. Click on &#8220;<strong>Quick Edit</strong>&#8220;.<br />
3. Now you will see the Quick Edit box with basically three columns in it. Notice that in the third column, under the &#8220;Tags&#8221; textarea, there is a checkbox that says &#8220;Allow Comments&#8221;. This is selected by default. Simply uncheck it and click on the &#8220;Update&#8221; button.<br />
That&#8217;s it! You are done!</p>
<h3>Disabling comments for a specific Page:</h3>
<p>1. Click on &#8220;All Pages&#8221; link under the Pages&#8221; menu in Left Hand navigation.<br />
2. Scroll to the Page that you wish to disable the comments upon and hover over the title. You will see the same options as you see when you hover over a Post title i.e. <strong>Edit | Quick Edit | Trash | View</strong>. Click on &#8220;<strong>Quick Edit</strong>&#8220;.<br />
3. Now you will see the Quick Edit box with basically two columns in it. Notice that in the second column, under the &#8220;Template&#8221; dropdown, there is a checkbox that says &#8220;Allow Comments&#8221;. This is selected by default. Simply uncheck it and click on the &#8220;Update&#8221; button.</p>
<p>That&#8217;s all you need to achieve your objective!</p>
<h5>Your Turn!</h5>
<p>Do you think this post has been useful to you? Feel free to share your thoughts by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/disable-comments-single-post-page-wordpress/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3953</post-id>	</item>
		<item>
		<title>Detect Click Outside Element Using jQuery</title>
		<link>https://theextremewebdesigns.com/blog/detecting-click-outside-element-jquery/</link>
					<comments>https://theextremewebdesigns.com/blog/detecting-click-outside-element-jquery/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 03 Aug 2013 19:05:58 +0000</pubDate>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[jquery-demos]]></category>
		<category><![CDATA[jquery-snippets]]></category>
		<category><![CDATA[jquery-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3931</guid>

					<description><![CDATA[Ever wanted to detect click outside an element using jQuery? In this article, I am going to share an easy way to do it and you can apply the same procedure for detecting click outside elements such as div, form, unordered list, etc. Also try the demo to see how it works in real time. [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Ever wanted to <em><strong>detect click outside an element using jQuery</strong></em>? In this article, I am going to share an easy way to do it and you can apply the same procedure for detecting click outside elements such as div, form, unordered list, etc. Also try the demo to see how it works in real time.<span id="more-3931"></span></p>
<h2>How To Detect Click Outside An Element Using jQuery</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3931" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Let&#8217;s assume that we have a div with ID &#8220;my_div&#8221;. Now we would like to show an alert when we click inside this div and another alert when we click outside this div. Here&#8217;s an example of how it can be done:</p>
<pre class="lang:xhtml decode:true crayon-selected">&lt;style type="text/css"&gt;
#my_div {
	background-color: #FC9;
	padding: 25px;
	border: 1px solid #F60;
}
&lt;/style&gt;

&lt;div id="my_div" class="my_class"&gt;This is some content. Click inside this div once and click outside this div to see the alerts.&lt;/div&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function() {

	$('#my_div').click(function(event){		
		var id = $(this).attr('id');		
		alert('You clicked INSIDE the Div with ID #'+ id);		
		event.stopPropagation();		
	});

	$('html').click(function() {		
		alert('You clicked OUTSIDE the div');		
	});
});
&lt;/script&gt;</pre>
<p>First, we target the <strong>div</strong> and we attach a click event to it so that we can see an alert when it is clicked upon. To show an alert when we click outside the div, we target the <strong>html</strong> tag.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3931" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>Your Turn!</h5>
<p>Do you know of any other ways of <em><strong>detecting click outside an element using jQuery</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/detecting-click-outside-element-jquery/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3931</post-id>	</item>
		<item>
		<title>Remove .php Extension From URL Using htaccess</title>
		<link>https://theextremewebdesigns.com/blog/remove-php-extension-from-url-htaccess/</link>
					<comments>https://theextremewebdesigns.com/blog/remove-php-extension-from-url-htaccess/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Mon, 22 Jul 2013 19:10:24 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[remove-php-extension]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3924</guid>

					<description><![CDATA[In certain situations, you might want to hide the extension of your files just to make your website a little more complex for hackers to hack. Or you might want to do hide the extensions for the sake of pretty URLs. Whatever maybe the reason, here is an easy way to hide the file extension [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In certain situations, you might want to hide the extension of your files just to make your website a little more complex for hackers to hack. Or you might want to do hide the extensions for the sake of pretty URLs. Whatever maybe the reason, here is an easy way to hide the file extension using .htaccess.</p>
<h2>How To Remove .php Extension From URLs Using .htaccess</h2>
<p>There are just two steps involved. They are:</p>
<p>1. Simply copy and paste the following code in your .htaccess file, save &amp; upload back to your server:</p>
<pre class="lang:xhtml decode:true"># Turn on the rewrite engine
RewriteEngine On

# Remove all .php extension from URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php</pre>
<p>2. Strip off the .php extension from any hyperlinks that you may have in your webpage. For example, you may have a list of hyperlinks in your Header Navigation area that say: index.php, about.php, contact.php, ..etc. Simply remove the .php extension from those hyperlinks. Don&#8217;t worry, you will be able to navigate to the other pages even after you remove that extension provided you have not made any mistake while adding the code to .htaccess.</p>
<p>That&#8217;s it! That&#8217;s all you need to do hide the .php extension from URLs using .htaccess.</p>
<h3>TIP:</h3>
<p>Let&#8217;s say that you have a folder called &#8220;restricted&#8221; and you have some PHP files in this folder. Now you don&#8217;t want any of the php files in this folder to lose their extension i.e. whenever you view a page in this folder, the complete URL with the file extension should appear. So for example, you would like the page URL to appear like so:</p>
<p>http://www.mydomain.com/restricted/restrictedfile.php</p>
<p>When you place the code (shown in Step 1) in .htaccess file, when you access  the restricted file via the URL, you would normally see the URL as: http://www.mydomain.com/restricted/restrictedfile but you want to see it as http://www.mydomain.com/restricted/restrictedfile.php. So to make this change, replace the existing code in .htaccess file with the following code:</p>
<pre class="lang:xhtml decode:true"># Turn on the rewrite engine
RewriteEngine On

# Ignore rewriting in /restricted folder - Change this to reflect to a folder of your choice
RewriteCond %{REQUEST_URI} !^restricted/

# Remove all .php extension from URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php</pre>
<h5>Simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to <em><strong>using .htaccess to remove .php extension from URLs</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/remove-php-extension-from-url-htaccess/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3924</post-id>	</item>
		<item>
		<title>PHP Refresh Page Examples</title>
		<link>https://theextremewebdesigns.com/blog/php-refresh-page-examples/</link>
					<comments>https://theextremewebdesigns.com/blog/php-refresh-page-examples/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sun, 16 Jun 2013 19:05:28 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[php-demos]]></category>
		<category><![CDATA[php-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3899</guid>

					<description><![CDATA[You may know how to refresh page using JavaScript. But, do you know how to refresh page using PHP? In this article, I am going to share very easy way to make page refresh using PHP. So read on for more info. How To Refresh Page Using PHP Let&#8217;s see how to do this by [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>You may know how to refresh page using JavaScript. But, do you know how to refresh page using PHP? In this article, I am going to share very easy way to <em><strong>make page refresh using PHP</strong></em>. So read on for more info.</p>
<p><span id="more-3899"></span></p>
<h2>How To Refresh Page Using PHP</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3899" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Let&#8217;s see how to do this by means of an example. The following piece of code will refresh the page after 5 seconds. You may change it as per your needs.</p>
<h3>Example:</h3>
<pre class="lang:xhtml decode:true">echo 'This page will be refreshed after 5 seconds.';
echo '&lt;meta http-equiv="refresh" content="5"&gt;';</pre>
<p>To use the above code, simply copy the second line and change the seconds value from 5 to any value you desire.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3899" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>Your Turn!</h5>
<p>Do you know of any other ways to <em><strong>refresh a page using PHP</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/php-refresh-page-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3899</post-id>	</item>
		<item>
		<title>PHP Return String From String Using Word Limit Examples</title>
		<link>https://theextremewebdesigns.com/blog/php-return-string-from-string-using-word-limit-examples/</link>
					<comments>https://theextremewebdesigns.com/blog/php-return-string-from-string-using-word-limit-examples/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Sat, 15 Jun 2013 19:05:42 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[php-demos]]></category>
		<category><![CDATA[php-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3892</guid>

					<description><![CDATA[Some times, it might be useful to extract string from a given string, based upon the word count. A good example of this is an excerpt of WordPress. As you know, an &#8220;excerpt&#8221; is just a sneak peak of the article. And it is limited by it&#8217;s word count (or any other desired criteria). So [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Some times, it might be useful to extract string from a given string, based upon the word count. A good example of this is an excerpt of WordPress. As you know, an &#8220;excerpt&#8221; is just a sneak peak of the article. And it is limited by it&#8217;s word count (or any other desired criteria). So how can we achieve the same result in PHP? In this article, I am going to share easy ways to <em><strong>return text from a given text, based upon the word count limit</strong></em>. So follow along for more info.</p>
<p><span id="more-3892"></span></p>
<h2>How To Limit String Using Word Count</h2>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3892" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<p>Let&#8217;s see how to do this with an example.</p>
<h3>Example: Consider the following string on which we apply word limit using PHP</h3>
<pre class="lang:xhtml decode:true">This is a custom string. We are now going to apply PHP functions on this and return only the portion of the string based upon the word count.</pre>
<p>Now let&#8217;s limit the above string to a word count of 10 and then return the result. Use the following code to do so:</p>
<pre class="lang:xhtml decode:true">&lt;?php 
function word_limiter($string, $limit) 
{ 
	//break string based upon space
	$str_array = explode(" ", $string); 

	//return the extracted string with our word limit in place
	return implode(" ", array_splice($str_array, 0, $limit)); 
}

$string = 'This is a custom string. We are now going to apply PHP functions on this and return only the portion of the string based upon the word count.';

$word_limit = 10; //Change this based upon your needs

echo word_limiter($string, $word_limit);
?&gt;</pre>
<h3> Output:</h3>
<pre class="lang:xhtml decode:true">This is a custom string. We are now going to</pre>
<p>If you count the number of word in the above Output, you will notice that there are only 10 words. This is exactly what we wanted.</p>
<div class="make_demo">

	<form action="https://theextremewebdesigns.com/blog/wp-content/themes/ewd_blog_2017/try_demo.php?post_id=3892" method="post" name="form1" target="_blank" id="form1">


	<input type="hidden" name="shortcode_content" id="shortcode_content" value="" />

        <div class="try_demo_btn_container">


            <button type="submit" name="sbt_make_demo" id="sbt_make_demo" class="btn-primary btn-try-demo">
                Try Demo
            </button>


        </div><!-- .try_demo_btn_container -->

    </form>
    </div>
    
<h5>That&#8217;s it!</h5>
<p>Do you know of any other ways to <em><strong>limit string using word count in PHP</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/php-return-string-from-string-using-word-limit-examples/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3892</post-id>	</item>
		<item>
		<title>SOLUTION WordPress Fatal error: Call to undefined function</title>
		<link>https://theextremewebdesigns.com/blog/solution-wordpress-fatal-error-call-to-undefined-function/</link>
					<comments>https://theextremewebdesigns.com/blog/solution-wordpress-fatal-error-call-to-undefined-function/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 12 Jun 2013 19:05:48 +0000</pubDate>
				<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress-tips]]></category>
		<guid isPermaLink="false">https://theextremewebdesigns.com/blog/?p=3888</guid>

					<description><![CDATA[While working with WordPress, at one point of time or the other, you may have come across error message that says: &#8220;Fatal error: Call to undefined function &#8230; &#8220;. In this message, the undefined function could be just about anything such as feed_content_type or get_adjacent_post or wp_get_recent_posts, etc. So how can we solve this? This is exactly what this [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>While working with WordPress, at one point of time or the other, you may have come across error message that says: <strong>&#8220;Fatal error: Call to undefined function &#8230; &#8220;. </strong>In this message, the undefined function could be just about anything such as feed_content_type or get_adjacent_post or wp_get_recent_posts, etc. So how can we solve this? This is exactly what this article is all about. I am going to share a very easy way that you can use in your theme or plugin to gracefully solve and prevent fatal errors from showing up and breaking the normal functionality of your WordPress theme or plugin.</p>
<p><span id="more-3888"></span></p>
<h2>How To Solve Fatal error: Call to undefined function &#8230; in WordPress Themes &amp; Plugins</h2>
<p>Now let&#8217;s say that you are working on a WordPress theme. You would like to use the function &#8220;<strong>the_excerpt</strong>&#8220;. Now you do not know whether this function has already been declared or not. So to be on the safer side do the following:</p>
<h3>Use the following code in your theme to prevent fatal errors:</h3>
<pre class="lang:xhtml decode:true">&lt;?php 
if (function_exists('the_excerpt')) 
{ 
	the_excerpt(); 
} 
?&gt;</pre>
<p>The above code will first check to see if the function really exists. If the function is already defined and available for use, the excerpt will be fetched and shown on the screen. If not, it will simply not do anything at all. You can also combine the above code with other conditional code to display another result if the function does not exist. Consider the following example:</p>
<pre class="lang:xhtml decode:true">&lt;?php
if (function_exists('the_excerpt')) 
{ 
     the_excerpt(); 
} 
else 
{ 
     echo 'The function is Undefined';
} ?&gt;</pre>
<p>You can do the same thing as above in your plugins as well.</p>
<h3>How to apply the above code to any custom functions in your custom Plugin and prevent fatal errors</h3>
<p>Let&#8217;s say you are coding custom plugin. And now you have defined some function such as &#8220;my_function1&#8221;,  &#8220;my_function2&#8221;. Now you want to use these in your plugin and want to avoid showing fatal errors. Simply apply the function_exists function prior to using it and that will solve it. Here are couple of examples:</p>
<h3>Example 1:</h3>
<pre class="lang:xhtml decode:true">&lt;?php 
if (function_exists('my_function1')) 
{ 
	my_function1(); 
} 
?&gt;</pre>
<h3> Example 2:</h3>
<pre class="lang:xhtml decode:true">&lt;?php 
if (function_exists('my_function2')) 
{ 
	my_function2(); 
} 
?&gt;</pre>
<h3> Example 3:</h3>
<pre class="lang:xhtml decode:true">&lt;?php 
if (function_exists('this_is_my_custom_function')) 
{ 
	echo this_is_my_custom_function(); 
} 
?&gt;</pre>
<p>As you can see from the above codes, it is really simple. Simply check if the function exists using the function_exists function and that should do it.</p>
<h5>Simple, isn&#8217;t it?</h5>
<p>Do you know of any other ways to solve the <em><strong>Fatal error Call to undefined function problem in WordPress</strong></em>? Feel free to suggest by commenting below.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://theextremewebdesigns.com/blog/solution-wordpress-fatal-error-call-to-undefined-function/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3888</post-id>	</item>
	</channel>
</rss>
