Skip to content

Instantly share code, notes, and snippets.

Avatar

Mian Shahzad Raza wpacademy

View GitHub Profile
@wpacademy
wpacademy / style.css
Created May 25, 2023 01:47
CSS code used in the Modern Carousel Design Tutorial on WP Academy YouTube channel.
View style.css
/*
* Loop Item
*/
.member-info {
visibility: hidden;
}
selector {
transition: .6s all;
}
selector:hover .member-info {
@wpacademy
wpacademy / style.css
Created October 15, 2022 20:19
CSS code for the SaaS website design tutorial by WP Academy
View style.css
/***********************************
* For: SaaS Website Design Tutorial
* By: WPAcademy.PK
* Info: Please use appropirate class names into the sections or widget.
You can change the names, just make sure you are uaing correct class name
in the section or widget after changing the names.
**********************************/
.elementor-text-editor p {
margin-bottom: 0 !important;
}
View style.css
/*
* CSS code for WordPress Login, Signup Page Design Tutorial.
* Author: WP Academy
& Tutorial Link:
*/
.wpac-custom-login-form #um-submit-btn , .wpac-custom-signup-form #um-submit-btn {
background: #242A56 !important;
margin-top: 15px;
border-radius: 0px !important;
}
@wpacademy
wpacademy / styles.css
Created November 11, 2020 19:52
PSD to WP website design tutorial CSS.
View styles.css
/**
* Custom CSS code for PSD to WordPress Tutorial by WP Academy
* Author Name: WP Academy
* Author URL: https://wpacademy.pk
**/
.wpac-service-box {
transition: 0.5s all;
}
.wpac-service-box:hover {
transform: scale(1.05);
@wpacademy
wpacademy / style.css
Created April 29, 2023 03:24
Elementor Dynamic Reviews Tutorial CSS
View style.css
selector .elementor-swiper-button-prev {
top: -10px;
right: 60px;
left: auto;
}
selector .elementor-swiper-button-next {
top: -10px;
right:0px;
left: auto;
}
View tml-form-design.css
.wpac-custom-form ul.tml-links {
display: none;
}
.wpac-custom-login .elementor-section-wrap {
text-align: center;
}
.wpac-custom-form .tml .tml-field {
border: none;
border-bottom: 3px solid #dddddd;
background: transparent;
@wpacademy
wpacademy / styles.css
Created August 16, 2022 22:48
CSS code for advanced ecommerce website tutorial by WP Academy
View styles.css
/******************************
* Description: CSS code for advanced ecommerce website tutorial by WP Academy.
* Author: WP Academy
* Author URL: https://wpacademy.pk
* Usage Info:
Please use apporopirate class names in sections or widgets as explained in the video tutorail.
Don't forget to replace color variable names such as '--e-global-color-primary' with your own colors
or global color names.
******************************/
@wpacademy
wpacademy / learnpress-courses-grid.css
Last active October 15, 2022 15:08
LearnPress Courses widget grid for elementor.
View learnpress-courses-grid.css
/**********************************
* LearnPress Courses Grid
* By WP Academy.PK
**********************************/
.wpac-learnpress-grid .widget-body {
text-align: center;
display: flex;
}
.wpac-learnpress-grid .widget-body .course-entry {
text-align: center;
@wpacademy
wpacademy / order-tracking.php
Created September 22, 2022 04:26
Order Tracking Page Code for Advanced eCommerce website tutorial by WP Academy
View order-tracking.php
function wpac_add_query_vars_filter( $vars ){
$vars[] = "order_id";
return $vars;
}
add_filter( 'query_vars', 'wpac_add_query_vars_filter' );
function wpac_order_status() {
if(is_page(1141)){
$id = get_query_var('order_id');
$id = intval($id);
@wpacademy
wpacademy / learnpress-enroll-status.php
Last active August 30, 2022 06:06
Check if user has enrolled into any course at your LearnPress website.
View learnpress-enroll-status.php
<?php
/*
* Function to check if given user is enrolled into any course.
*/
function wpac_check_enrolled_user($user_id){
if (is_numeric($user_id)) {
//Global WordPress DB object
global $wpdb;