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
Genesis
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’ ); }
Adding Fullwidth Flexslider on Home page in Minimum PRO Theme
After long gap another new tips is published today. Currently lot of users are using the Genesis Responsive Slider or Soliloquy Slider in Genesis Child Theme. But I am going with free version slider. Flexslider is a free slider which is coming from WooThemes. Minimum PRO Theme have no slider option for home page. So… Continue Reading
Full Width Page Content with Blog Posts
Today one person asked this: However I really want the content full width. Would it be possible to adjust the template so that the primary sidebar only started as the blog posts started? This will be totally a custom page template. So creating a file “template_fwcblgpost.php” and add the following code. This new file will… Continue Reading
Controlling Footer Widget Columns from Theme Settings Page in Genesis
Previously I wrote a tutorial “How to change the footer copyright text from Genesis Theme Settings Page“. Today I am writing this article and showing you how to change the footer widget area from Genesis Theme Settings page. I added following PHP code in functions.php file: Creating Theme Settings for Footer Widget function gd_defaults_settings_fields( $default_settings… Continue Reading
Creating Footer Copyright Text UI in Theme Settings page of Genesis Framework
Today one question is came out from my mind. Why we can’t change the default footer copyright text from Genesis Theme Settings page? Every time we are installing the “Simple Edit” plugin or manually adding few code in the functions.php file. So I thoroughly checked the Genesis Theme Settings php file and got 2 filter… Continue Reading
How to change the "at" word next to the time in the post comments section?
ORIGINAL REQUEST: Hi, How can i change the “at” word next to the time in the post comments section? I want to translate it to “um”. Sample: 24. OKTOBER 2014 at 21:02 h I just reviewing the SP forums post and got this request. Immediately I checked the Genesis Comments Callback function and there have… Continue Reading