Pages instead of Posts at Static Front Page

  • kaiijy

    #1638

    My website: http://www.cineramabc.com.br

    Hello, thanks to the support of this forum i managed to set my Graphene Slider to show Pages instead of Posts.

    My next objective is to use the remaining space (below the slider) for pages as well.

    To achieve similar result with my Graphene Slider i had to install a plugin that adds Categories to Pages and i’ve set a new Slider category to use for this.

    Trying to do the same thing with pages i created a Front Page category and set the theme to display only that category in the front page, but it didn’t work.

    So i remembered that to make the Graphene Slider to work properly i had to include the following code in my child’s theme functions.php file:

    <?php
    function graphene_custom_slider_post_type(){
    $post_type = array('post', 'page');
    return $post_type;
    }
    add_filter('graphene_slider_post_type', 'graphene_custom_slider_post_type');
    ?>

    So i believe that i possibly need to include another one to achieve my objective, ain’t i right? I’d like to ask if somebody has this code in hands 🙂

    kaiijy

    #16617

    To prevent further posting i’ll also present another problem:

    My graphene theme is configured to display Posts’ excerpts at front page;

    I downloaded a plugin to include excerpts to Pages;

    When we manage to solve the issue above will this configuration remains? I mean, will the front page show the excerpts from PAGES or will i need further configuration for that?

    Admin

    Syahir Hakim

    #16618

    Add this to your child theme’s functions.php file:

    <?php
    function graphene_frontpage_posts_args( $args ){
    $args['post_type'] = array('post', 'page');
    return $args;
    }
    add_filter('graphene_frontpage_posts_cats_sticky_args', 'graphene_frontpage_posts_args');
    add_filter('graphene_frontpage_posts_cats_args', 'graphene_frontpage_posts_args');
    ?>

    kaiijy

    #16619

    Totally worked, Syahir! Thank you very much!

    By the way, what’s the command i must add to the style.css to remove the “Continue Reading” button?

    Mod

    Kenneth John Odle

    #16620

    It seems to me that someone asked this not too long ago, but I can’t find it anywhere. Hmmm…..maybe I just imagined it.

    Anyway, try adding this to your custom CSS:

    .more-link.block-button {display:none}

    Ken

    kaiijy

    #16621

    Hehe, at least now i included tags to the post so the next one whom looks after it will show up here and have his problem solved.

    Again: thanks, guys. Topic closed 😀

Viewing 6 posts - 1 through 6 (of 6 total)

  • You must be logged in to reply to this topic.