Skip to content

Instantly share code, notes, and snippets.

Mohsin Alam mohsinworld

Block or report user

Report or block mohsinworld

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mohsinworld
mohsinworld / Download Files Into Hosting Server From Direct Link
Created Jan 18, 2020
Upload this PHP script then browse this file. Add direct link then name it with the correct file extension (file type)
View Download Files Into Hosting Server From Direct Link
@mohsinworld
mohsinworld / Add Empty Space Using Font Awesome Icon
Created Jan 16, 2020
This will insert an empty space instead of showing any icon
View Country List for Contact Form 7
<label> Country *
[select* country include_blank "Afghanistan" "Albania" "Algeria" "Andorra" "Angola" "Antigua and Barbuda" "Argentina" "Armenia" "Australia" "Austria" "Austrian Empire" "Azerbaijan" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin (Dahomey)" "Bolivia" "Bosnia and Herzegovina" "Botswana" "Brazil" "Brunei" "Brunswick and Lüneburg" "Bulgaria" "Burkina Faso (Upper Volta)" "Burma" "Burundi" "Cabo Verde" "Cambodia" "Cameroon" "Canada" "Central African Republic" "Central American " "Chad" "Chile" "China" "Colombia" "Comoros" "Costa Rica" "Cote d’Ivoire (Ivory Coast)" "Croatia" "Cuba" "Cyprus" "Czechia" "Czechoslovakia" "Democratic Republic of the Congo" "Denmark" "Djibouti" "Dominica" "Dominican Republic" "East Germany (German Democratic Republic)" "Ecuador" "Egypt" "El Salvador" "Equatorial Guinea" "Eritrea" "Estonia" "Eswatini" "Ethiopia" "Fiji" "Finland" "France" "Gabon" "Georgia" "Germany" "Ghana" "Greece" "Grenada" "Guatemala" "Guinea" "Guinea-Bissau" "Guyana" "Haiti" "
View Add Elementor Shortcode in Themes Files
<?php
echo do_shortcode('[elementor-template id="3595"]');
?>
@mohsinworld
mohsinworld / Code Show in Home Page Only
Last active Oct 23, 2019
Developer credit or any code display on homepage only
View Code Show in Home Page Only
<?php if ( is_front_page() ) { ?> | Developed by: <a href="https://mohsinalam.com" target="_blank">Mohsin Alam</a><?php } ?>
<?php if ( is_home() ) { ?> | Developed by: <a href="https://mohsinalam.com" target="_blank">Mohsin Alam</a><?php } ?>
View Force Redirect Internet Explorer Users to Download Modern Browser
<script>
var ieusers = 'https://elementorcodes.com/modern-browser/';
/msie|trident/i.test(navigator.userAgent) ? document.location = ieusers : null;
</script>
View Redirect Mobile & PC Devices
<script type="text/javascript">
<!--
if (screen.width <= 699) {
document.location = "https://mohsinalam.com/mobile/";
}
//-->
</script>
"https://mohsinalam.com/mobile/" would be replaced with the location of wherever your mobile version resides. This technique could be adapted to load an alternate stylesheet as well.
View Contact Form 7 Style
h1 {
font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
}
p {
font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
}
b {
font-size: 30px;
color: #BBB743;
font-family: 'Open Sans', Helvetica, Arial, Lucida, sans-serif;
View Country Code Shortcode for GeoTargeting Lite - WordPress Geolocation
<center>
<strong>Some Radio Station from Your Country</strong>
[geot country="AF"][ess_grid alias="Afghanistan"][/geot]
[geot country="AL"][ess_grid alias="Albania"][/geot]
[geot country="DZ"][ess_grid alias="Algeria"][/geot]
[geot country="AD"][ess_grid alias="Andorra"][/geot]
[geot country="AO"][ess_grid alias="Angola"][/geot]
[geot country="AG"][ess_grid alias="Antigua and Barbuda"][/geot]
[geot country="AR"][ess_grid alias="Argentina"][/geot]
[geot country="AM"][ess_grid alias="Armenia"][/geot]
You can’t perform that action at this time.