This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 PMPro billing fields to the edit user profile page. | |
| You must Paid Memberships Pro and the Register Helper plugin installed: | |
| http://wordpress.org/extend/plugins/paid-memberships-pro | |
| https://github.com/strangerstudios/pmpro-register-helper | |
| */ | |
| function add_billing_fields_to_profile() | |
| { | |
| global $pmpro_countries; | |
This file contains hidden or 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
| body.login.login-password-protected { | |
| position: relative; | |
| overflow: hidden; | |
| display: flex; | |
| justify-content:center; | |
| align-items: center; | |
| } | |
| body.login.login-password-protected:after { | |
| position: absolute; |