Home panes
-
In need of a little advice please.
Would it be possible to advise me of the following.
1) Within the original Graphene Theme website the 4 homepanes (Documentation, Features and Func, Layout and Format, and Help and Support) have only two lines of text, detailing a summary of whats within that Page. Would somebody please be able to give me a brief step by step summary of how to achieve this.
2) Also is it possible someone could provide me with the CSS that is needed to change the Homepanes, title.
Much appreciated as always.
Mark
1. They are pages. Put the ID of pages you want to display in the homepage panes on Graphene Options –> Homepage Panes
You can enable excerpt for pages by adding this to child-theme’s functions.php, (put php codes anywhere between
<?php
and?>
)add_post_type_support( 'page', 'excerpt' );
Another option is to limit the number of words in homepage panes to some 10 words which makes it only 2 lines of text
function graphene_custom_homepage_pane_excerpt_length(){
graphene_set_excerpt_length( 10 );
}
add_action( 'graphene_before_homepage_panes', 'graphene_custom_homepage_pane_excerpt_length' );To change homepage panes title
.homepage_pane .post-title a {
font-size: 25px;
color: #123456;
}Can’t write in detail FTTB. Just play with it!
Thanks, firstly what does FTTB mean? 🙂
Also am I doing some thing wrong, I have placed the following in the functions.php file, and when I save it goes blank?
<?php function graphene_custom_homepage_pane_excerpt_length(){
graphene_set_excerpt_length( 15 );
}
add_action( 'graphene_before_homepage_panes', 'graphene_custom_homepage_pane_excerpt_length' );?>Thanks
Mod
Quote:Thanks, firstly what does FTTB mean? 🙂For The Time Being
Quote:when I save it goes blank?What goes blank? Your website?
You are doing this in a child theme, right?
Make sure you only have one
<?php
(at the beginning of your functions file) and one?>
(at the end of your functions file).
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.