Pages instead of Posts at Static Front Page
-
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 🙂
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?
AdminAdd 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');
?>ModIt 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
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.