Forum Replies Created
-
AuthorPosts
-
tylerkelleyMember
Thanks for all your help. Looks good.
tylerkelleyMemberI appreciate the assistance - I wish it were as simple as CSS. I'm using this code:
/** Reposition the Titles */
/*------------------------------------------------------------ */
# removes default title display
remove_action('genesis_post_title', 'genesis_do_post_title');
# adds action to header to check and output the different titles based on what is being viewed
add_action('get_header','canishowtitle');
function canishowtitle() {
if ( is_page() || is_single() ) { # check if page or single post
add_action('genesis_after_header', 'genesis_do_post_title');
# check if using the blog template that comes with most genesis themes
if ( is_page_template('page_blog.php') ) {
# add titles back to posts in the loop
add_action('genesis_post_title','genesis_do_post_title');
}
}
else if ( is_category() ) { #check if viewing a category
# add the category title
add_action('genesis_after_header', 'add_category_title' );
# add titles back to posts in the loop
add_action('genesis_post_title','genesis_do_post_title');
}
else if ( is_tag() ) {
# add the tag title
add_action('genesis_after_header', 'add_tag_title' );
# add titles back to posts in the loop
add_action('genesis_post_title','genesis_do_post_title');
}
else if ( is_archive() ) {
# add the archive title including if it is a date archive
add_action('genesis_after_header', 'add_archive_title' );
# add titles back to posts in the loop
add_action('genesis_post_title','genesis_do_post_title');
}
else if ( ! is_home() ) {
# if all else fails, display it anyways, except on the home page
add_action('genesis_after_header', 'genesis_do_post_title');
}
}
function add_category_title() {
# display the current category title
echo '<h1 class="entry-title">' . single_cat_title( '', false ) . '</h1>';
}
function add_tag_title() {
# display the current tag archive title
echo '<h1 class="entry-title">' . single_tag_title( '', false ) . '</h1>';
}
function add_archive_title() {
# display the current date or blog archives title
if ( is_day() ) { # day archive
echo '<h1 class="entry-title">' . get_the_date() . '</h1>';
}
elseif ( is_month() ) { #month archive
echo '<h1 class="entry-title">' . get_the_date( 'F Y' ) . '</h1>';
}
elseif ( is_year() ) { #year archive
echo '<h1 class="entry-title">' . get_the_date( 'Y' ) . '</h1>';
}
else { # general archive default
echo '<h1 class="entry-title">Blog Archives</h1>';
}
}
/*------------------------------------------------------------ */Unfortunately, this does not cover the bbpress pages like http://aaatennis.org/forums/
It should say "Player Forums" not "Blog Archives"
tylerkelleyMemberI'm beginning to think this is not possible or at least not very easy and that's why Studiopress did not do it. The problem occurs when trying to take the post title and remove it from the loop and into the area after the header.
tylerkelleyMemberI see that I can remove the breadcrumbs but in doing so I lose the full width gray background that looks so nice in this theme: Balance. Is there a way to just put the post title in that spot so I don't lose the gray bar? Hope this makes sense.
tylerkelleyMemberYes - I would like the actual title sit where the breadcrumbs are right now and put the breadcrumbs beneath the gray area. I think the breadcrumbs are way too prominent on each page. I will check out your link and see if that helps.
-
AuthorPosts