HTML5 .js google hosted
html5shiv.googlecode.com/svn/trunk/html5.js
or simply copy the code below and paste it into your header.php
<!--[if lt IE 9]><script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
WordPress media library upload restriction, just copy the code below to your functions.php Or install this plugin to do the task WDES User Upload Restriction – https://wordpress.org/plugins/wdes-user-upload-restriction/. add_action(‘pre_get_posts’,’wdes_users_own_attachments’); function wdes_users_own_attachments( $wp_query_obj ) { global $current_user, $pagenow; if( !is_a( $current_user, ‘WP_User’) ){ return; } if( !in_array( $pagenow, array( ‘upload.php’, ‘admin-ajax.php’ ) ) ){ return; } if(…
Catchable fatal error: Argument 1 passed to Genesis_Admin_CPT_Archive_Settings::__construct() must be an instance of stdClass, instance of WP_Post_Type given, called in /home/…/wp-content/themes/genesis/lib/admin/menu.php on line 122 and defined in /home/…/wp-content/themes/genesis/lib/admin/cpt-archive-settings.php on line 38 This error is sometimes showing after updating the WordPress. It is advice to update your Genesis theme first before the WordPress. To fix this…
How to remove primary side include the ‘ ‘ tags. <aside class="sidebar sidebar-primary widget-area responsive-element" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar"> <section id="text-36" class="widget widget_text">YOUT WIDGET</section> </aside> Copy this code and paste into your functions.php remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ );
Remove breadcrumb function bm_bbp_no_breadcrumb ( $param ){ return true; } add_filter (‘bbp_no_breadcrumb’, ‘bm_bbp_no_breadcrumb’);
Option 1 add_filter( ‘genesis_pre_get_option_site_layout’, ‘genesiscustomlayout’ ); function genesiscustomlayout(){ $pageobj = get_queried_object(); $pageid = absint($pageobj->ID); $pagelayout = get_post_meta($pageid , "_genesis_layout" , true); return $pagelayout; } Option 2 This function is to forced your custom post type content layout to full width. Common post type is post, page, and product ( woocommerce plugin pages ) and etc….
Separated number in comma and decimal point using PHP or JS number format. Commonly used in the price format and number separator. Hopefully this can help you. PHP: Found this post https://www.w3schools.com/php/func_string_number_format.asp and the codes below is the sample usage of the PHP code. echo number_format("1000000"); // output will be 1,000,000 echo number_format("1000000",2); // output…