Forum Replies Created
-
AuthorPosts
-
genevishgraphicsMember
I have another question, and I am looking at your website for the answer but cant find it. I am adding a custom body class to my blog page, so I have have an alternate header image for the blog page- BUT I need that alternate image to be on all the blog posts and category pages as well. This would be a conditional tag issue again, I am using this
`
// Add custom body class to the head
add_filter( 'body_class', 'minimum_add_body_class' );
function minimum_add_body_class( $classes ) {
$classes[] = 'page_blog';
if(is_archive() ) {
return $classes;
}
}
`
and now the correct header is there on the blog page, but it is duplicated with the other site header, and the post and category pages only have the old header instead of the "blog" headergenevishgraphicsMemberOf course! Why didnt I think of that?? 🙂 Thanks Brad!
genevishgraphicsMemberNM - got it - Just added the plugin and entered in !is_page('blog') and now the left header is on all my pages but the blog pages 🙂
genevishgraphicsMemberthat is what I am struggling with - What is the right conditional tag? to only exclude the blog pages? Thanks for your help brad. I'm learning!
genevishgraphicsMemberOne question - how would I remove this widget ONLY from the custom blog template I have created?
genevishgraphicsMemberYippeee thanks Brad!!!
genevishgraphicsMemberNM - Stupid old css code I had left in there!
genevishgraphicsMemberAny ideas of how I can get the primary sidebar widget to display in the correct place now?
I have the header right where I want it and the nav below that. However now my social icons that are in the primary sidebar are getting pushed to the right of the sidebarThis is the code I am using to get things to finally work- courtesy of http://www.carriedils.com/
I just changed the actions to where I wanted the header to go`/** Move header */
remove_action( 'genesis_header', 'genesis_header_markup_open', 5 );
remove_action( 'genesis_header', 'genesis_do_header' );
remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ) ;add_action( 'genesis_before_sidebar_widget_area', 'genesis_header_markup_open', 5 );
add_action( 'genesis_before_sidebar_widget_area', 'genesis_do_header' );
add_action( 'genesis_before_sidebar_widget_area', 'genesis_header_markup_close', 15 );/** Move primary nav menu */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_after_sidebar_widget_area', 'genesis_do_nav' );
`genevishgraphicsMemberI got it - tinkering for awhile - but I think I have it!
genevishgraphicsMemberSo wow - I have made som progress. I have figured out how to move the nav to the sidebar using
`/** Move primary nav menu */
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_sidebar', 'genesis_do_nav' );`
and it works great!
However, after applying the same steps to the header using this
`/** Move header */
remove_action( 'genesis_header', 'genesis_do_header' );
add_action( 'genesis_before_sidebar_widget_area', 'genesis_do_header' );
`
The only thing that gets moved to the sidebar is the title-area div, and the header div is still above the inner div.
It is probably something simple, I know it is something I am missing here. Any helpers out there? Thanks!
Site heregenevishgraphicsMemberI did - no dice...yet. Maybe someone will help me out before the next version of genesis!! 😉
But I will keep working at it to see what I can do on my own! Love Genesis!genevishgraphicsMemberYou have conflicting css for the headers - in one place you have Marcellus and the other you have Julius Sans
`h2,
h2 a,
h2 a:visited,
h3,
h4,
h5,
h6
p,
select,
textarea {
color: #000000;
font-family: ‘Marcellus’, serif;`
`h1,
h2,
h2 a,
h2 a:visited,
h3,
h4,
h5,
h6 {
color: #000ff;
font-family: ‘Julius Sans One’, sans-serif;
font-weight: bold;
line-height: 1.25;
margin: 0 0 10px;
}`
genevishgraphicsMemberDouble check your changes- When I visit the site I see css on line 193:
#header {
margin:Â 0 auto;
min-height:Â 100px;
width:Â 100%;
So you have to go back in and check that line of code - I suggest using Developer Tools in Chrome to check your css of the pages you work on 🙂Hope this helps!
genevishgraphicsMemberI removed the
add_action( 'genesis_loop', 'minimum_grid_loop_helper' );
function minimum_grid_loop_helper() {if ( function_exists( 'genesis_grid_loop' ) ) {
genesis_grid_loop( array(
'features' => 0,
'feature_image_size' => 'featured',
'feature_image_class' => 'post-image',
'feature_content_limit' => 0,
'grid_image_size' => 0,
'grid_image_class' => 'alignnone',
'grid_content_limit' => 250,
'more' => __( '[Read more]', 'minimum' ),
) );
} else {
genesis_standard_loop();
}}
from home.php and that did the trick - wrong method?
genevishgraphicsMemberNVER MIND 0_O found it here .home #inner { display: none; }
genevishgraphicsMemberYep - I just found that too! LOL Thanks!
genevishgraphicsMemberIsnt it easier just to remove
/** Add the page title section */
add_action( 'genesis_after_header', 'minimum_page_title' );
function minimum_page_title() {
require_once( get_stylesheet_directory() . '/page-title.php' );
}From the functions.php file? I tired doing it via css as suggested and ended up with a giant mess. This worked a lot easier~
genevishgraphicsMemberHad the same issue - worked for me only I changed the neg margin to just 80. Problem is I have the gray area just on my home page covering up the header/logo. I have not made any other changes to the code other than this CSS - I did a compare of the functions file and the home.php files using TKDiff and there were no discrepancies - I disabled plugins too and no change. Thoughts? Suggestions greatly appreciated!
WebsitegenevishgraphicsMemberThank you - you see that the other slider has that option - why didnt they implement it with this version? Doesnt make sense to me! Well guess I will be changing the pub dates on 10 slides, ugh!
genevishgraphicsMemberThat worked for me - Cant understand why it would do that in the first place really - Thanks though!
-
AuthorPosts