Author Topic: How 2remove d Single Featured Post from eleven40 Child Theme on Genesis Framwork  (Read 765 times)

0 Members and 1 Guest are viewing this topic.

Offline obasimiracle

  • Support Expert
  • *****
It took me about 3 hours to figure out how to do this since there isn’t any topic on this on genesis framework support site and i can’t start reading all those long wikis on how to edit the eleven40 Child Theme , so I decided to try it out my self . I started by playing around the style.css , Functions.php and home.php finally I discovered the solution is in home.php which actually controls the look of every wordpress theme .

    Now to remove the single featured post , increase the number of post that displays on eleven40 Child Theme, add more front-page features on your eleven40 Child Theme .   Just log in to your wordpress site running on eleven40 Child Theme + genesis framework and click on dashboard ==> click on appearance ==> from the drop-down window choose editor ==> from the right bar click on home.php ==>  from the now window you will see what to edit from this code   

   
Code: [Select]
<?php

remove_action
'genesis_loop''genesis_do_loop' );
add_action'genesis_loop''eleven40_grid_loop_helper' );
/** Add support for Genesis Grid Loop */
function eleven40_grid_loop_helper() {

if ( function_exists'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
'feature_image_size' => 0,
'feature_image_class' => 'alignleft post-image',
'feature_content_limit' => 0,
'grid_image_size' => 'grid-thumbnail',
'grid_image_class' => 'alignnone',
'grid_content_limit' => 250,
'more' => __'[Continue reading]''genesis' ),
'posts_per_page' => 12,
) );
} else {
genesis_standard_loop();
}

}

genesis();

Now from this window you can simply disable the single featured post by changing   ’features’ => 1, to  ’features’ => 0, and increase the number of displayed post (posts per page) from 5 to something else by changing ‘posts_per_page’ => 5, to ‘posts_per_page’ => 9, or any number of your choice . You can see that from here you can control both the size & position of the featured images  .
Wisdom pays! Be wise!

 

* Post Updates

Re: Outlook PST Merge by ruth less
[November 11, 2020, 07:22:38 AM]


Re: How to Convert OLM to PST by priyankaarya
[November 10, 2020, 01:03:10 PM]


Re: DBX to PST Conversion tool by adisiion de
[November 05, 2020, 01:18:47 PM]

Inside: 3P Techies Blog

* Newest Techies

Get Updates


Sign up to get latest updates delivered to your inbox. No Spam, We Promise!

Get Hosting!

a Faster web hosting service

 

Copyright © 3rd Planet Techies. All rights Reserved.

Top || Mobile ||Advertise || Contact Us || Privacy