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]-->
Get Header Title function custom_category_page_title() { global $wp_query, $wpdb; $category_ = get_query_var('cat'); $current_cat = get_category ($category_); $category_id = $current_cat->term_id; echo '<header class="entry-header">'; echo'<h1 class="entry-title" itemprop="headline">'.get_cat_name( $category_id ).'</h1>'; echo '</header>'; }
Add sub-page using 1 page without adding another pages using add_rewrite_rule is very simple but clean strategy most specially if you have multiple sub-pages. Using add_rewrite_rule, your task is done. Please copy the codes to your functions.php. Example: I have this page, https://www.anthonypagaycarbon.com/parent/ and the page ID is 10. [php] add_filter(‘query_vars’, ‘wdes_query_vars’); function wdes_query_vars($vars) {…
How to remove autocomplete in all fields WordPress CSS? Reason is some fields auto fill is wrong. Example email field auto fill with date of birth. Some users confused of this and don’t want this in their site. Copy the codes below in your functions.php of your current theme folder. add_action( 'init', 'anton_init' ); function…
Dequeue or remove Gravity Forms style or css in your WordPress site. Common styles of Gravity Forms is `formreset.css`, `datepicker.css`, `formsmain.css`, `readyclass.css`, and `browsers.css`. Gravity Forms has action called `gform_enqueue_scripts`, you can visit the link for more information. <link rel='stylesheet' id='gforms_reset_css-css' href='http://example.com/wp-content/plugins/gravityforms/css/formreset.css?ver=1.7.11' type='text/css' media='all' /> <link rel='stylesheet' id='gforms_datepicker_css-css' href='http://example.com/wp-content/plugins/gravityforms/css/datepicker.css?ver=1.7.11' type='text/css' media='all' /> <link rel='stylesheet' id='gforms_formsmain_css-css'…
Having problem on The7 WordPress theme share buttons on single post or custom post type? You can display a share buttons anywhere using this codes below. Mostly needed in custom post type that does not support this feature. $share_buttons = presscore_display_share_buttons_for_post( 'post', array('echo' => false)); if ( $share_buttons ) { printf( '<div class="post-meta wf-mobile-collapsed">%s</div>', $post_tags…
See http://multidatespickr.sourceforge.net/ for the references. Copy and paste the code below. var today = new Date(); var availableDates = ["9-9-2011","14-9-2016","15-9-2016"]; $('#simple-select-min-max').multiDatesPicker({ beforeShowDay: available }); function available(date) { dmy = date.getDate() + "-" + (date.getMonth()+1) + "-" + date.getFullYear(); if ($.inArray(dmy, availableDates) != -1) { return [true, "","Available"]; } else { return [false,"","unAvailable"]; } }