Forum Replies Created
-
AuthorPosts
-
mathiasppc
MemberIt is not working properly on my friend`s Safari either. There has to be some kind of bug in the css from the Genesis 2.0 sample theme?
mathiasppc
MemberThanks for the help everyone. Working beautifully!
mathiasppc
MemberThanks again Tibor
Here`s what I put in functions.php
if ( is_page() ) {
add_action( 'genesis_entry_header', 'my_page_info' );
function my_page_info() {
$post_info = '[post_date] ' . __( 'by', 'genesis' ) . ' [post_author_posts_link] [post_comments] [post_edit]';
printf( '<p class="entry-meta">%s</p>', do_shortcode( $post_info ) );
}
}It doesen
t work because I think there
s something wrong with the if-statement? Without if ( is_page() ) the extra post info shows up on all posts and pages.mathiasppc
MemberThanks Tibor!
Do I put this in the page.php in the Genesis Framework though? I thought I was not supposed to edit those files?
mathiasppc
MemberI I just want the post info (author, date and comments) to show up on pages (as it`s already showing up in posts)
mathiasppc
MemberBump
mathiasppc
MemberAnyone have a solution for this problem?
mathiasppc
MemberThanks!
mathiasppc
MemberAnyone have any suggestions on this?
mathiasppc
MemberI noticed the widget boxes were labeled with different IDs:
#text-8 {
padding: 0px;
}mathiasppc
MemberThanks for the suggestion, but I want the widget in the sidebar. I guess what I`m trying to say is that I`m looking for a solution that will allow me to add custom widgets to the sidebar (without all the structural wrap around that adds padding etc...). I want to add custom css to that particular widget block if that makes sense.
mathiasppc
MemberLooks ok fram what I see, but there`s probably a better way of doing it with genesis functions.
mathiasppc
MemberFor example the top right widget I`ve got on my site:
<code>
<div id="obog_signup_widget_sidebar" style="margin: -4rem;">...</div>
</code>
I`ve had to specify a negative margin to hide the other elements.
mathiasppc
MemberPerfect! Thank you 🙂
mathiasppc
MemberAdd this to your CSS:
.entry-content a {
border-bottom: 0px;
}
I recommend using Firefox and the inspect program for every element you want to change on your site. It will give you the css for that element and you can toy around with the styling live.
mathiasppc
MemberAwesome! Thanks once again Ryan
mathiasppc
MemberPerfect that worked! I wasn`t aware of that functionality
mathiasppc
MemberThanks for the quick responses guys. I ended up using the HTML5 markup:
// Reposition the breadcrumbs
remove_action( 'genesis_entry_header', 'genesis_post_info' );
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_entry_header', 'genesis_do_breadcrumbs' );
add_action( 'genesis_entry_header', 'genesis_do_post_title' );
add_action( 'genesis_entry_header', 'genesis_post_info' );Seems a bit unecessary to use 6 lines to reposition (and change the priority) just to reposition the breadcrumbs - is this really the best way to do it?
mathiasppc
MemberThanks Ryan!
Works beautifully.
-
AuthorPosts