Skip to content

Instantly share code, notes, and snippets.

View yousufansa's full-sized avatar

Yusuf Ansari yousufansa

View GitHub Profile
@yousufansa
yousufansa / home-v2.json
Last active September 4, 2019 06:37
Uneno - Home v2 Elementor
{"version":"0.4","title":"uneno-home-v2-elementor","type":"page","content":[{"id":"77dcb226","settings":[],"elements":[{"id":"51f8527c","settings":{"_column_size":100},"elements":[{"id":"6a9f1a31","settings":{"slider_shortcode":"[rev_slider alias=\"slider-with-ads-block\"]","ads":[{"title":"Cool Boy Sweaters","desc":"Check our sweaters outfit collections","caption_align":"align-center","bg_image":{"url":"http:\/\/localhost\/~abubacker\/uneno\/wp-content\/uploads\/2018\/12\/ads-1-placehold.png","id":1682},"_id":"5365904"},{"pretitle":"Girl Outfit","title":"Sweet <br> Headband","caption_align":"align-end","bg_image":{"url":"http:\/\/localhost\/~abubacker\/uneno\/wp-content\/uploads\/2018\/12\/ads-1-placehold.png","id":1682},"_id":"b7d3f4b"}],"el_class":"mb-0"},"elements":[],"isInner":false,"widgetType":"uneno_slider_with_ads_block","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"15b97301","settings":[],"elements":[{"id":"5332ee01","settings":{"_column_size":100
@yousufansa
yousufansa / home-v3.json
Last active September 5, 2019 05:24
Uneno - Home v3 Elementor
{"version":"0.4","title":"home-v3-elementor","type":"page","content":[{"id":"77cf42df","settings":[],"elements":[{"id":"7ff05ee6","settings":{"_column_size":100},"elements":[{"id":"59492588","settings":{"slider_shortcode":"[rev_slider alias=\"slider-with-ads-block\"]","ads":[{"title":"Cool Boy Sweaters","action_link":"","caption_align":"align-center","bg_image":{"url":"https:\/\/demo.madrasthemes.com\/uneno\/wp-content\/uploads\/sites\/22\/2018\/12\/ads-1-placehold.png","id":1682},"_id":"b7b9bef"},{"pretitle":"Girl Outfit","title":"Sweet <br> Headband","caption_align":"align-top","bg_image":{"url":"https:\/\/demo.madrasthemes.com\/uneno\/wp-content\/uploads\/sites\/22\/2018\/12\/ads-1-placehold.png","id":1682},"_id":"f7e247f"}],"el_class":"mb-30"},"elements":[],"isInner":false,"widgetType":"uneno_slider_with_ads_block","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"12b358d1","settings":[],"elements":[{"id":"460403cc","settings":{"_column_size":100},"elements
@yousufansa
yousufansa / home-v4.json
Last active September 5, 2019 05:25
Uneno - Home v4 Elementor
{"version":"0.4","title":"home-v4-elementor","type":"page","content":[{"id":"32241e20","settings":[],"elements":[{"id":"4ac99939","settings":{"_column_size":100},"elements":[{"id":"7b7184c6","settings":{"section_title":"Discover Our Popular Products","section_subtitle":"Shoppers like you are looking at these Products. Let\u2019s take a look!","shortcode_tag":"products","product_id":"822,838,843,858,860","limit":"5","columns":"5"},"elements":[],"isInner":false,"widgetType":"uneno_products_block","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"74c3c032","settings":[],"elements":[{"id":"f09106b","settings":{"_column_size":100},"elements":[{"id":"365a64a7","settings":{"banner_title":"Spring Summer Collection","banner_desc":"Check our adventure outfit collection that will lead to a completely new experience.","action_text":"<i class=\"fas fa-long-arrow-alt-right\"><\/i>Shop Now","action_link":"#","color":"secondary","el_class":"mb-30","bg_image":{"id":1781,"url":"
@yousufansa
yousufansa / home-v5.json
Last active September 5, 2019 05:25
Uneno - Home v5 Elementor
{"version":"0.4","title":"home-v5-elementor","type":"page","content":[{"id":"54de75c7","settings":[],"elements":[{"id":"2e30acfe","settings":{"_column_size":100},"elements":[{"id":"396fe94d","settings":{"slugs":"cool boy sweaters","bg_color":"#ebe4cb","limit":"4","columns":"2","el_class":"mb-0"},"elements":[],"isInner":false,"widgetType":"uneno_category_with_products_block","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"45f5ee54","settings":[],"elements":[{"id":"3287fde1","settings":{"_column_size":100},"elements":[{"id":"618c7026","settings":{"slugs":"adventure-outfit","bg_color":"#d6dfe7","category_align":"align-right","limit":"4","columns":"2","el_class":"mb-0"},"elements":[],"isInner":false,"widgetType":"uneno_category_with_products_block","elType":"widget"}],"isInner":false,"elType":"column"}],"isInner":false,"elType":"section"},{"id":"2a18aa8f","settings":[],"elements":[{"id":"22128f3e","settings":{"_column_size":100},"elements":[{"id":"63858647","sett
@yousufansa
yousufansa / functions.php
Created December 17, 2018 15:53
Jobhunt - Job Archive Page Header Title Change
if ( ! function_exists( 'jh_child_custom_wpjm_page_title' ) ) {
function jh_child_custom_wpjm_page_title( $title ) {
if( is_post_type_archive( 'job_listing' ) || is_page( jh_wpjm_get_page_id( 'jobs' ) ) ) {
$style = jobhunt_get_wpjm_style();
if ( $style == 'list' ) {
$title = esc_html__( 'Your Title', 'jobhunt' );
}
}
return $title;
@yousufansa
yousufansa / functions.php
Created December 17, 2018 16:01
Jobhunt - Job Archive Page Header Subtitle Change
if ( ! function_exists( 'jh_child_custom_wpjm_page_subtitle' ) ) {
function jh_child_custom_wpjm_page_subtitle( $subtitle ) {
if( is_post_type_archive( 'job_listing' ) || is_page( jh_wpjm_get_page_id( 'jobs' ) ) ) {
$style = jobhunt_get_wpjm_style();
if ( $style == 'list' ) {
$subtitle = esc_html__( 'Your Subtitle', 'jobhunt' );
}
}
return $subtitle;
@yousufansa
yousufansa / functions.php
Created December 18, 2018 15:25
Jobhunt - Remove Related Jobs in Single Job Page
if ( ! function_exists( 'jh_child_remove_single_job_listing_related_jobs' ) ) {
function jh_child_remove_single_job_listing_related_jobs() {
remove_action( 'single_job_listing', 'jobhunt_single_job_listing_related_jobs', 40 );
}
}
add_action( 'init', 'jh_child_remove_single_job_listing_related_jobs' );
@yousufansa
yousufansa / functions.php
Created December 18, 2018 15:34
Jobhunt - Display Job Categories In Single Job Overview
if( ! function_exists( 'jh_child_dispaly_category_single_job_overview_details' ) ) {
function jh_child_dispaly_category_single_job_overview_details( $args ) {
$args['job_category'] = array(
'icon' => 'la la-cubes',
'label' => esc_html__( 'Categories', 'jobhunt' ),
'taxonomy' => 'job_listing_category',
);
return $args;
}
@yousufansa
yousufansa / functions.php
Created December 20, 2018 12:53
Wordpress Custom Logo URL
if ( ! function_exists( 'wordpress_custom_logo_url' ) ) {
function wordpress_custom_logo_url( $html, $blog_id ) {
$logo_url = '#your_custom_link';
$custom_logo_id = get_theme_mod( 'custom_logo' );
if ( $custom_logo_id && ! empty ( $logo_url ) ) {
$html = sprintf( '<a href="%1$s" class="custom-logo-link" rel="home" itemprop="url">%2$s</a>',
esc_url( $logo_url ),
wp_get_attachment_image( $custom_logo_id, 'full', false, array(
'class' => 'custom-logo',
@yousufansa
yousufansa / functions.php
Created December 20, 2018 13:02
Jobhunt - Site Header Logo Custom URL ( Not For Custom Image Logo )
if ( ! function_exists( 'jobhunt_site_title_or_logo' ) ) {
function jobhunt_site_title_or_logo() {
$logo_url = '#your_custom_link';
if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) {
the_custom_logo();
} elseif ( function_exists( 'jetpack_has_site_logo' ) && jetpack_has_site_logo() ) {
jetpack_the_site_logo();
} elseif ( apply_filters( 'jobhunt_site_logo_svg', false ) ) {
echo '<a href="' . esc_url( $logo_url ) . '" class="custom-logo-link" rel="home">';