I did this by following steps: Step 1: First creating a default primary menu. Navigate to Appearance > Menus and create a default primary menu for your site. Check the “Primary Navigation Menu” checkbox and save this menu. Step 2: Creating another menu for pages only. Navigate to Appearance > Menus and create another menu… Continue Reading
Archives for February 2015
How to only show a featured image if it was set in post?
Normally genesis_get_image() is fetching the first image if you are not setting any featured image for your post. But sometime we are not wanting this default option. Using this simple code you can disable this:
1 2 3 4 5 6 |
add_filter( 'genesis_get_image_default_args', 'gd_show_only_assigned_featured_image' ); function gd_show_only_assigned_featured_image( $args ){ $args['fallback'] = 'no-attachment'; // By Default it is 'first-attached' return $args; } |
Adding Primary Sidebar to Whitespace PRO
NOTE: I did not add the responsive effect. You will take care about responsive effect. Sharing the basic steps here: Step 1: Enabling the Content Sidebar Layout option. Edit the functions.php file. Open the functions.php file on Notepad+ or navigate to Appearance > editor and click on functions.php link. Now modified the following codes: Current… Continue Reading
Display pages instead of posts on Whitespace PRO Home page
Original Request: Hello, I’m experimenting with the Whitespace theme. http://my.studiopress.com/themes/whitespace/#demo-full I really like the way that the post excerpts display on the home page, but I would like to display page excerpts, not posts. Does anyone have any tips or advice on how to achieve this? Many thanks, Tim Option 1: add the following code… Continue Reading
Adding Responsive Slider on Home Page – Whitespace PRO Theme
Original Request: Is it possible to add a slider to the Whitspace theme homepage? Maybe where the stretch image is? I tried just placing the Genesis responsive slider widget in the Welcome widget area but that didn’t work. – RoxG I did following steps: Step 1: First install the Genesis Responsive Slider Plugin on your… Continue Reading
Regenerating State Drop Down List of Selected Country in Agentpress Listing Search Form
By WP_AJAX_ hook generating the state drop down list of a selected country in Agentpress Listing Search Form of Agentpress PRO theme. Step 1: Navigate Listings > Register Taxonomies and create the Country taxonomy. Now you will get new menu link “Countries” under Listings menu at left hand side. Again navigate Listing > Countries and… Continue Reading
Displaying 3 Columns Teaser Boxes Below the Banner on Home Page of Whitespace PRO Theme
By default Home page have one widget area for Welcome Text. This article will show how to create a new widget area on home page and display the 3 columns teasers in that area. Step 1: Registering a new widget area “Home Top”. Add the following code in your functions.php file:
1 2 3 4 5 6 |
//* Register home top widget area genesis_register_sidebar( array( 'id' => 'home-top', 'name' => __( 'Home Top', 'whitespace' ), 'description' => __( 'This is the home top section will come below the banner image.', 'whitespace' ), ) ); |
Step 2: Navigate… Continue Reading