This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global $wp_query; | |
wp_register_script( 'understrap_loadmore', get_stylesheet_directory_uri() . '/myloadmore.js', array('jquery') ); | |
wp_localize_script( | |
'understrap_loadmore', | |
'understrap_loadmore_params', | |
array( | |
'ajaxurl' => site_url() . '/wp-admin/admin-ajax.php', | |
'posts' => json_encode( $wp_query->query_vars ), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function philosophy_google_map($atts) { | |
$default = array( | |
'place' => __( 'Dhaka', 'philosophy' ), | |
'width' => '800', | |
'height' => '500', | |
'zoom' => '12', | |
); | |
$params = shortcode_atts( $default, $atts ); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Sidebar widget CSS */ | |
.widget h2 { | |
font-size: 25px; | |
color: #555; | |
} | |
.widget ul { | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*comment template css*/ | |
.comments-area { | |
margin-top: 40px; | |
} | |
.comments-area h2.comments-title { | |
font-size: 25px; | |
margin-bottom: 20px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('script_loader_tag', 'clean_script_tag'); | |
function clean_script_tag($input) { | |
$input = str_replace("type='text/javascript' ", '', $input); | |
return str_replace("'", '"', $input); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define( 'DISALLOW_FILE_EDIT', true ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vc_row][vc_column][vc_tta_tabs active_section="1" title="Flights"][vc_tta_section i_icon_fontawesome="fa fa-plane" add_icon="true" title="Flights" tab_id="1551198216177-cccbb59b-58c3"][vc_raw_html]JTNDc2NyaXB0JTIwY2hhcnNldCUzRCUyMnV0Zi04JTIyJTIwc3JjJTNEJTIyJTJGJTJGd3d3LnRyYXZlbHBheW91dHMuY29tJTJGd2lkZ2V0cyUyRjYyODQ3NTQwOWYxODIyZjFlNmRhMzExYTc5NTBmOWVhLmpzJTNGdiUzRDE2NDglMjIlMjBhc3luYyUzRSUzQyUyRnNjcmlwdCUzRSUwQQ==[/vc_raw_html][/vc_tta_section][vc_tta_section i_icon_fontawesome="fa fa-home" add_icon="true" title="Hotels" tab_id="1551198216184-0f85e8e8-a5be"][vc_raw_html]JTNDc2NyaXB0JTIwY2hhcnNldCUzRCUyMnV0Zi04JTIyJTIwc3JjJTNEJTIyJTJGJTJGd3d3LnRyYXZlbHBheW91dHMuY29tJTJGd2lkZ2V0cyUyRjFmMjlkNDA0ZjY2YWRlYjZmYjI3OTQ0ZWI4ODNhODhkLmpzJTNGdiUzRDE2NDglMjIlMjBhc3luYyUzRSUzQyUyRnNjcmlwdCUzRSUwQQ==[/vc_raw_html][/vc_tta_section][vc_tta_section i_icon_fontawesome="fa fa-car" add_icon="true" title="Car Rental" tab_id="1551198286185-c0ad71f3-08f3"][vc_raw_html]JTNDc2NyaXB0JTIwc3JjJTNEJTIyaHR0cHMlM0ElMkYlMkZjMTAudHJhdmVscGF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vc_row][vc_column][vc_tta_tabs active_section="1" title="Flights"][vc_tta_section i_icon_fontawesome="fa fa-plane" add_icon="true" title="Flights" tab_id="1551198216177-cccbb59b-58c3"][vc_raw_html]JTNDc2NyaXB0JTIwY2hhcnNldCUzRCUyMnV0Zi04JTIyJTIwc3JjJTNEJTIyJTJGJTJGd3d3LnRyYXZlbHBheW91dHMuY29tJTJGd2lkZ2V0cyUyRjYyODQ3NTQwOWYxODIyZjFlNmRhMzExYTc5NTBmOWVhLmpzJTNGdiUzRDE2NDglMjIlMjBhc3luYyUzRSUzQyUyRnNjcmlwdCUzRSUwQQ==[/vc_raw_html][/vc_tta_section][vc_tta_section i_icon_fontawesome="fa fa-home" add_icon="true" title="Hotels" tab_id="1551198216184-0f85e8e8-a5be"][vc_raw_html]JTNDc2NyaXB0JTIwY2hhcnNldCUzRCUyMnV0Zi04JTIyJTIwc3JjJTNEJTIyJTJGJTJGd3d3LnRyYXZlbHBheW91dHMuY29tJTJGd2lkZ2V0cyUyRjFmMjlkNDA0ZjY2YWRlYjZmYjI3OTQ0ZWI4ODNhODhkLmpzJTNGdiUzRDE2NDglMjIlMjBhc3luYyUzRSUzQyUyRnNjcmlwdCUzRSUwQQ==[/vc_raw_html][/vc_tta_section][vc_tta_section i_icon_fontawesome="fa fa-car" add_icon="true" title="Car Rental" tab_id="1551198286185-c0ad71f3-08f3"][vc_raw_html]JTNDc2NyaXB0JTIwc3JjJTNEJTIyaHR0cHMlM0ElMkYlMkZjMTAudHJhdmVscGF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vc slide addon | |
<?php | |
vc_map(array( | |
"name" => esc_html__("Opolis Slider","opolis"), | |
"base" => "opolis_slides", | |
"category" => esc_html__("Opolis","opolis"), | |
"params" => array( | |
array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To set custom snippet in your sublime text go to : Tools>Developer>New Snippet and paste the below code. Save it as named {your filename goes here}.sublime-snippet. Like i saved register sidebar snippet as : register-sidebar.sublime-snippet | |
// register sidebar widget basic args snippet for sublime text | |
<snippet> | |
<content><![CDATA[ | |
register_sidebar( | |
array( | |
'name' => __('${1:name}', '${2:textdomain}'), | |
'id' => '${3:id}', | |
'description' => __('${4:}', '${5:this}'), |