Forum Replies Created
-
AuthorPosts
-
chantal2012Member
In your WordPress dashboard, go to Genesis->Theme Settings. Copy and paste your code in the Header section of "Header and Footer Scripts". That should do it.
November 30, 2012 at 7:26 am in reply to: Problem with Widget added to Luscious Theme – PHP or CSS issue? #2483chantal2012MemberThis is what I did exactly...I followed the tutorial that the help desk suggested http://designsbynickthegeek.com/tutorials/add-widgeted-sidebar for "Sidebar Before Posts". First I added the following code to my functions.php file:
genesis_register_sidebar( array(
'id' => 'before-posts-sidebar',
'name' => 'Before Posts',
'description' => 'This is a sidebar that goes before the posts in the #content.', ) );Then I added the following code, once again to the functions.php file:
add_action( 'genesis_before_loop', 'child_before_posts_sidebar' );
/** Loads a new sidebar before the posts in the #content */
function child_before_posts_sidebar() {
echo '<div class="before-posts-sidebar">';
dynamic_sidebar( 'before-posts-sidebar' );
echo '</div>';
}Then I added this code to my style.css sheet:
/* Before Posts ------------------------------------------------------------ */
.before-posts-sidebar {
background: #dddddd;
padding: 10px;
}I'm used to using the Lifestyle theme but really like the look of the Luscious Theme. I just wanted to add this widgeted area to my homepage so I could add the DCG but obviously didn't want to screw up the rest of the site. I would appreciate any help. 🙂
November 30, 2012 at 6:35 am in reply to: Problem with Widget added to Luscious Theme – PHP or CSS issue? #2475chantal2012MemberThanks anitac! That solves my first problem...I still have an issue with my second problem. It seems that the DCG that I installed on my first page is screwing up the rest of the site. Does anyone know how to fix this?
-
AuthorPosts