Forum Replies Created
-
AuthorPosts
-
December 30, 2013 at 10:15 pm in reply to: Tutorial-Adding Genesis Box to Post-Breaking my site #82227markloveMember
Ok. My site is not breaking, but no trace of the post box.
I have added the following code into my genesis sample theme functions.php file:
//* Register Genesis box widget area
genesis_register_sidebar( array(
'id' => 'genesis-box',
'name' => __( 'Genesis Box', 'themename' ),
'description' => __( 'This is a widget area that can be placed after the post', 'themename' ),
) );//* Hook Genesis box widget area after post content
add_action( 'genesis_entry_footer', 'sp_genesis_box', 9 );
function sp_genesis_box() {
if ( is_single( ) )
genesis_widget_area( 'after-post', array(
'before' => '<div class="genesis-box widget-area">',
'after' => '</div>',
) );
}I have added the following code into my genesis sample theme style.css file:
/* Genesis Box
--------------------------------------------- */.genesis-box {
background: #f5f5f5;
border: 1px solid #ddd;
margin-top: 20px;
padding: 20px;
}.genesis-box h4 {
font-size: 18px;
font-weight: normal;
margin-bottom: 10px
padding: 0;
text-transform: none;
}.genesis-box .alignright {
background: #fff;
border: 1px solid #ddd;
float: right;
margin: 0 0 5px 10px;
padding: 7px;
}The Genesis Box widget box is displaying in my widget area in wp dash. I have included a text widget with the html from the tutorial inside the Genesis Box widget.
So we should be good to go.
Upon inspecting my single post displays in the browser, there is only entry meta below the single posts and no evidence of a widget.
What am I doing wrong?December 30, 2013 at 7:48 pm in reply to: Tutorial-Adding Genesis Box to Post-Breaking my site #82209markloveMemberI switched back over to the genesis sample theme and that one is not breaking, so Im going to stick with the sample theme for now.
Thanks much,
MarkDecember 30, 2013 at 7:30 pm in reply to: Tutorial-Adding Genesis Box to Post-Breaking my site #82204markloveMemberOk. I have reached out to him and waiting his reply. I can easily switch over to your sample theme and give it a try. Do you recommend that I learn genesis using the genesis sample?
December 30, 2013 at 7:24 pm in reply to: Tutorial-Adding Genesis Box to Post-Breaking my site #82202markloveMemberI just re-typed everything and the same problem happens, so what else might be the problem?
Im using this genesis base theme here:
http://stewartchamberlain.com/themes/genesis-html5-base-child-theme/Thank you for your help!
December 30, 2013 at 7:10 pm in reply to: Tutorial-Adding Genesis Box to Post-Breaking my site #82200markloveMemberI'm using Coda 2. When you say 'correct' do you mean the placement of them, or something else?
I guess the placement is correct because it's copied and pasted. Are you saying maybe they didnt interpret correctly? Are they supposed to be single or double? or hmm...what? I'll look at them again.markloveMemberHmm... I think I misunderstood where the gravatar appears and it's purpose. Maybe it will display n comments next time someone witout a gravatar comments (on my local dev site) which is never!
-
AuthorPosts