Skip to content

Instantly share code, notes, and snippets.

View sulmanpucit's full-sized avatar
🎯
Focusing

Salman Aslam sulmanpucit

🎯
Focusing
  • Lahore, Pakistan
View GitHub Profile
[fullwidth background_color="" background_image="" background_parallax="none" enable_mobile="no" parallax_speed="0.3" background_repeat="no-repeat" background_position="left top" video_url="" video_aspect_ratio="16:9" video_webm="" video_mp4="" video_ogv="" video_preview_image="" overlay_color="" overlay_opacity="0.5" video_mute="yes" video_loop="yes" fade="no" border_size="0px" border_color="" border_style="solid" padding_top="90px" padding_bottom="90px" padding_left="" padding_right="" hundred_percent="no" equal_height_columns="no" hide_on_mobile="no" menu_anchor="" class="" id=""][fusion_text]
<h2 style="text-align: center;">Welcome to Avada Fashion</h2>
<img class="size-full wp-image-79 aligncenter" src="http://localhost/beta-testing/wp-content/uploads/2014/12/hr-4.png" alt="hr" width="54" height="30" />
<p style="text-align: center;">Donec faucibus consequat ante. Mauris eget mi sed ex efficitur porta id non quam. Cras aliquam turpis tellus, quis laoreet lacus congue sed. Nullam at est quis urna vestibul
var FusionPageBuilder = FusionPageBuilder || {};
( function( $ ) {
$( document ).ready( function() {
// Modal view
FusionPageBuilder.ModalView = window.wp.Backbone.View.extend( {
className: 'fusion_builder_modal_settings_container',
{"last_tab":"","layout":"Wide","site_width":"1100px","main_padding":{"top":"55px","bottom":"40px"},"hundredp_padding":"30px","col_margin":{"top":"0px","bottom":"20px"},"sidebar_width":"23%","sidebar_2_1_width":"21%","sidebar_2_2_width":"21%","nav_height":"83","nav_highlight_border":"3","nav_padding":"45","megamenu_shadow":"1","dropdown_menu_width":"180","mainmenu_dropdown_vertical_padding":"7","mainmenu_dropdown_display_divider":"1","menu_display_dropdown_indicator":"0","main_nav_search_icon":"1","main_nav_icon_circle":"0","menu_sub_bg_color":"#f2efef","menu_bg_hover_color":"#f8f8f8","menu_sub_sep_color":"#dcdadb","menu_h45_bg_color":"#ffffff","nav_typography":{"font-family":"Antic Slab","font-options":"","google":"1","font-backup":"","font-weight":"400","font-style":"","subsets":"","letter-spacing":"0"},"nav_font_size":"14px","nav_dropdown_font_size":"13px","side_nav_font_size":"14px","menu_text_align":"center","menu_first_color":"#333333","menu_hover_first_color":"#a0ce4e","menu_sub_color":"#333333","flyout
[fullwidth background_color="" background_image="http://www.rudymontijo.com/wp-content/uploads/2014/11/For-site-JMH_5887-1024x727.jpg" background_parallax="left" enable_mobile="no" parallax_speed="0.3" background_repeat="no-repeat" background_position="center center" video_url="" video_aspect_ratio="16:9" video_webm="" video_mp4="" video_ogv="" video_preview_image="" overlay_color="" overlay_opacity="0.5" video_mute="yes" video_loop="yes" fade="no" border_size="0px" border_color="" border_style="solid" padding_top="0" padding_bottom="0" padding_left="" padding_right="" hundred_percent="yes" equal_height_columns="yes" hide_on_mobile="no" menu_anchor="" class="" id=""][one_half last="no" spacing="yes" center_content="yes" hide_on_mobile="no" background_color="#dd3333" background_image="" background_repeat="no-repeat" background_position="left top" hover_type="none" link="" border_position="all" border_size="0px" border_color="" border_style="solid" padding="" margin_top="" margin_bottom="0px" animation_type="0"
[fullwidth background_color="" background_image="http://www.rudymontijo.com/wp-content/uploads/2014/11/For-site-JMH_5887-1024x727.jpg" background_parallax="left" enable_mobile="no" parallax_speed="0.3" background_repeat="no-repeat" background_position="center center" video_url="" video_aspect_ratio="16:9" video_webm="" video_mp4="" video_ogv="" video_preview_image="" overlay_color="" overlay_opacity="0.5" video_mute="yes" video_loop="yes" fade="no" border_size="0px" border_color="" border_style="solid" padding_top="0" padding_bottom="0" padding_left="" padding_right="" hundred_percent="yes" equal_height_columns="yes" hide_on_mobile="no" menu_anchor="" class="" id=""][one_half last="no" spacing="yes" center_content="yes" hide_on_mobile="no" background_color="#dd3333" background_image="" background_repeat="no-repeat" background_position="left top" hover_type="none" link="" border_position="all" border_size="0px" border_color="" border_style="solid" padding="20px" margin_top="" margin_bottom="0px" animation_type
@sulmanpucit
sulmanpucit / gist:dc7e8cd5836351697727b4260e2df728
Created October 12, 2016 10:57
Custom post types conversion filter
function add_custom_post_types( $post_types ) {
$my_post_types = array(
'garde-corps',
);
return array_merge( $post_types, $my_post_types );
}
add_filter( 'fusion_builder_shortcode_migration_post_types', 'add_custom_post_types' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') );
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
@sulmanpucit
sulmanpucit / gist:eb23eed16c2349b14e2736031aec4ac5
Created October 13, 2016 11:34
wp_enqueue_style in child theme
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') );
}
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
{"last_tab":"","layout":"Wide","site_width":"1100px","main_padding":{"top":"55px","bottom":"40px"},"hundredp_padding":"30px","col_margin":{"top":"0px","bottom":"20px"},"sidebar_width":"23%","sidebar_2_1_width":"21%","sidebar_2_2_width":"21%","ec_sidebar_width":"32%","ec_sidebar_2_1_width":"21%","ec_sidebar_2_2_width":"21%","nav_height":"83","nav_highlight_border":"3","nav_padding":"45","megamenu_shadow":"1","dropdown_menu_width":"170","mainmenu_dropdown_vertical_padding":"7","mainmenu_dropdown_display_divider":"1","menu_display_dropdown_indicator":"0","main_nav_search_icon":"1","main_nav_icon_circle":"0","menu_sub_bg_color":"#f2efef","menu_bg_hover_color":"#f8f8f8","menu_sub_sep_color":"#dcdadb","menu_h45_bg_color":"#ffffff","nav_typography":{"font-family":"Source Sans Pro","font-options":"","google":"1","font-backup":"Arial, Helvetica, sans-serif","font-weight":"400","font-style":"","subsets":"","letter-spacing":"0px"},"nav_font_size":"14px","nav_dropdown_font_size":"13px","side_nav_font_size":"14px","menu_t
{"last_tab":"","layout":"Wide","site_width":"1100px","main_padding":{"top":"55px","bottom":"40px"},"hundredp_padding":"30px","col_margin":{"top":"0px","bottom":"20px"},"sidebar_width":"23%","sidebar_2_1_width":"21%","sidebar_2_2_width":"21%","ec_sidebar_width":"32%","ec_sidebar_2_1_width":"21%","ec_sidebar_2_2_width":"21%","nav_height":"83","nav_highlight_border":"3","nav_padding":"45","megamenu_shadow":"1","dropdown_menu_width":"170","mainmenu_dropdown_vertical_padding":"7","mainmenu_dropdown_display_divider":"1","menu_display_dropdown_indicator":"0","main_nav_search_icon":"1","main_nav_icon_circle":"0","menu_sub_bg_color":"#f2efef","menu_bg_hover_color":"#f8f8f8","menu_sub_sep_color":"#dcdadb","menu_h45_bg_color":"#ffffff","nav_typography":{"font-family":"Source Sans Pro","font-options":"","google":"1","font-backup":"Arial, Helvetica, sans-serif","font-weight":"400","font-style":"","subsets":"","letter-spacing":"0px"},"nav_font_size":"14px","nav_dropdown_font_size":"13px","side_nav_font_size":"14px","menu_t