Removing the ‘Comments and Trackbacks’ from Genesis Theme Settings & Customizer page. // Removing it from Genesis Theme Settings page if (is_admin()) : function remove_genesis_comments_trackbacks_settings($pagehook) { remove_meta_box( ‘genesis-theme-settings-comments’, $pagehook, ‘main’ ); } add_action( ‘genesis_theme_settings_metaboxes’ , ‘remove_genesis_comments_trackbacks_settings’); endif; // Removing it from Customizer page add_action( ‘customize_register’, ‘gd_remove_customize_section’, 20 ); function gd_remove_customize_section($wp_customize){ $wp_customize->remove_section( ‘genesis_comments’); } All code… Continue Reading
Archives for December 2014
Integrate Salesforce Lead with Contact Form 7 Plugin
Full thanks are going to Alex Hager. His tips is helped me lot and I successfully integrate salesforce lead with CF7 plugin. First I generate a Web To Lead form in salesforce account. Here is my form’s code <!– ———————————————————————- –> <!– NOTE: Please add the following <META> element to your page <HEAD>. –> <!–… Continue Reading
Move Two Jetpack Subscription Checkboxes to Above "Post" Button
Jetpack is a popular wordpress plugin and lot of wordpress users are using this plugin. This plugin have a module “Jetpack Subscription” and this module is adding two checkboxes into comment form. Jetpack is not providing any extra settings for repositioning this two checkboxes. Using CSS we can move the “Post Comment” button below the… Continue Reading
Custom Header Images on Pages – Parallax Pro Theme
Here was the original request on SP forums: I used Sridhar Katakam’s tutorial on relocating entry title headers but I want to make these headers images rather than text. The person who initial responded to my questions said this: I amended the CSS to display scaling background images to create full width, applying the page-id-xx… Continue Reading
Displaying Backstretch Featured Image on Blog or Archive page in Genesis
First upload the backstretch.js and theme-script.js file in js folder of your child theme. Here is the script of theme-script.js file jQuery(function( $ ){ $( “main.content .post .entry-image” ).each( function(){ var post_image = $(this).data( “entry-img” ); $(this).backstretch([BackStretchImg]=post_image,{duration:3000,fade:750}); }); }); Add the following code in your functions.php file: add_action( ‘wp_enqueue_scripts’, ‘enqueue_bs_script’ ); function enqueue_bs_script() { wp_enqueue_script(… Continue Reading
Create a random order backstretch slider on home page
First upload the backstretch.js file in js folder of your child theme. Then add the following code in your functions.php file add_action( ‘wp_enqueue_scripts’, ‘enqueue_bs_script’ ); function enqueue_bs_script() { if( is_front_page() || is_home() ){ wp_enqueue_script( ‘backstretch-js’, get_bloginfo( ‘stylesheet_directory’ ) . ‘/js/backstretch.js’, array( ‘jquery’ ), ‘1.0.0’ ); } } add_action(‘wp_head’, ‘random_backstretch_slider’); function random_backstretch_slider(){ if( is_front_page() || is_home()… Continue Reading
Creating Responsive Menu in Epik Theme
I was working on a client’s site who is using Epik Theme. He requested for responsive menu and I did it by this way. First create a JS file “responsive-menu.js” and put in “epik/js” folder. Here is the JS code: jQuery(function(){ jQuery( “.nav-header .sub-menu” ).before( “<button class=’sub-menu-toggle’ role=’button’></button>” ); jQuery(“.responsive-menu”).on( “click”, function() { jQuery( “.header-widget-area… Continue Reading
Show posts in Category Archive Page in Random Order
I tried following code and it is working for me. Add this code in your functions.php file: add_filter(‘pre_get_posts’, ‘pre_posts_order’); function pre_posts_order($wp_query){ if( is_category() ) $wp_query->set( ‘orderby’ , ‘rand’ ); return $wp_query; }
How to add author box on pages?
I just check the SP forum and see that one person requested it. I added few lines of code in functions.php file and got it. Here is the code: add_action( ‘genesis_after_entry’, ‘genesis_do_author_box_on_page’, 8 ); function genesis_do_author_box_on_page(){ if ( ! is_singular(‘page’) ) return; if ( get_the_author_meta( ‘genesis_author_box_single’, get_the_author_meta( ‘ID’ ) ) ) genesis_author_box( ‘single’ ); }