Forum Replies Created
-
AuthorPosts
-
[email protected]Member[email protected]Member
Thank you much! Code worked great! Resolved! ๐
[email protected]MemberIn safari it is times new roman. ๐
[email protected]Memberthanksย Diane Kinney
Your idea to valid the css was awesome! I ran across some random letters (silly typo) at the top of my css that was messing everything up ๐
THanks!
[email protected]MemberHmmm. i just changed it and it didn't do anything. Cleared cache and everything. Do you see century gothic or times new roman?
Kendra
[email protected]Memberworked perfect thanks!!!
[email protected]MemberThanks Susan!
So that worked, one whole post is showing and then excerpts but the featured image is still at the top of the "full" post with the border around it. How can I remove that from the full post?
Kendra
[email protected]MemberThat would work but then what about that posts that are currently showing??
So if I use two "genesis featured post widgets" then posts (duplicates) will still show under those two featured widgets.
And I need to have at least 5-7 posts showing because that number is the number of Post that show up on the category pages. make sense?
Any other ideas?
Happy new year!
Kendra
[email protected]MemberI couldn't ever get it figured out. At least not with the Blissful theme. So I switched to the adorable theme and made it work! ๐ And John was really helpful and helped me make a few tweaks. It is on another forum post right here >ย http://www.studiopress.community/topic/aligning-widgets/#post-4972
Kendra
[email protected]MemberThank you thank you!!!! Okay all resolved! Appreciate the help!
[email protected]MemberThanks so much!!!
Here is my functions.php
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Adorable Child Theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/adorable' );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'adorable_add_viewport_meta_tag' );
function adorable_add_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Add support for custom background */
add_custom_background();/** Add support for custom header */
add_theme_support( 'genesis-custom-header', array( 'width' => 1100, 'height' => 160 ) );/** Add support for color options */
add_theme_support( 'genesis-style-selector', array( 'theme-pinkgreen' => 'Pink & Green','theme-aquared' => 'Red & Aqua', 'theme-tealorange' => 'Teal & Orange', 'theme-pinkgray' => 'Pink & Charcoal','theme-customexample' => 'Custom Example' ) );
/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner',
'footer-widgets', 'footer' ) );
/** Add support for 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );
// Add new image sizes
add_image_size( 'Home Featured', 125, 125, TRUE );
add_image_size( 'Blog Excerpt', 250, 175, TRUE );
add_image_size( 'Home Thumb', 200, 100, TRUE );
add_image_size( 'Home Top', 660, 200, TRUE );
add_image_size( 'Sidebar', 290, 175, TRUE );// Changing excerpt more
add_filter( 'excerpt_more', 'new_excerpt_more' );
function new_excerpt_more($more) {
return '<a href="'.get_permalink().'" rel="nofollow"> {Read More} </a>';
}// Changing excerpt more
function custom_excerpt_length($length) {
return 80;
}
add_filter( 'excerpt_length', 'custom_excerpt_length' );/** Register widget areas */
genesis_register_sidebar(array(
'name'=>'Featured Top Full Width',
'id' => 'featured-full',
'description' => 'This is the full width top featured section of the homepage.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Featured Top Left',
'id' => 'featured-top-left',
'description' => 'This is the featured top left column of the homepage.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Featured Top Middle',
'id' => 'featured-top-middle',
'description' => 'This is the featured top middle column of the homepage.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));genesis_register_sidebar(array(
'name'=>'Featured Top Right',
'id' => 'featured-top-right',
'description' => 'This is the featured top right column of the homepage.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Featured Bottom Left',
'id' => 'featured-bottom-left',
'description' => 'This is the featured bottom left column of the homepage.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));
genesis_register_sidebar(array(
'name'=>'Featured Bottom Right',
'id' => 'featured-bottom-right',
'description' => 'This is the featured bottom left column of the homepage.',
'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
));Here is my home.php
<?php
add_action( 'genesis_meta', 'adorable_home_genesis_meta' );
/**
* Add widget support for homepage. If no widgets active, display the default loop.
*
*/
function adorable_home_genesis_meta() {if ( is_active_sidebar( 'featured-full' ) || is_active_sidebar( 'featured-top-left' ) || is_active_sidebar( 'featured-top-right' ) || is_active_sidebar( 'featured-bottom-left' ) || is_active_sidebar( 'featured-bottom-right' )) {
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'adorable_home_loop_helper' );}
}/**
* Display widget content for home widgets.
*
*/
function adorable_home_loop_helper() {if ( is_active_sidebar( 'featured-full' ) || is_active_sidebar( 'featured-top-left' ) || is_active_sidebar( 'featured-top-middle' ) || is_active_sidebar( 'featured-top-right' ) || is_active_sidebar( 'featured-bottom-left' ) || is_active_sidebar( 'featured-bottom-right' )) {
echo '<div id="featured-full">';
echo '<div class="featured-full">';
dynamic_sidebar( 'featured-full' );
echo '</div><!-- end .featured-full -->';
echo '</div><!-- end #featured-full -->';echo '<div id="featured-top">';
echo '<div class="featured-top-left">';
dynamic_sidebar( 'featured-top-left' );
echo '</div><!-- end .featured-top-left -->';echo '<div id="featured-top-middle">';
echo '<div class="featured-top-middle">';
dynamic_sidebar( 'featured-top-middle' );
echo '</div><!-- end .featured-top-middle -->';echo '<div class="featured-top-right">';
dynamic_sidebar( 'featured-top-right' );
echo '</div><!-- end .featured-top-right -->';
echo '</div><!-- end #featured-top -->';echo '<div id="featured-bottom-stuff">';
echo '<div class="featured-bottom-left">';
dynamic_sidebar( 'featured-bottom-left' );
echo '</div><!-- end .featured-bottom-left -->';echo '<div class="featured-bottom-right">';
dynamic_sidebar( 'featured-bottom-right' );
echo '</div><!-- end .featured-bottom-right -->';
echo '</div><!-- end #featured-bottom-stuff -->';}
}
genesis();
[email protected]MemberThanks for your help John. I do see what your talking about in firebug but I can't figure out where to make that change in my theme. Is it in the functions.php or home.php?
Thanks!
Kendra
[email protected]MemberThanks! Got the widgets all lined up thanks to your advice! Do you have suggestions as to why the sidebar is still floating down at the bottom? I tried adjusting the content width but it wasn't helping.
THANKS1
[email protected]MemberThanks so much for helping me figure this out. I changed the last one in the css to float: right; and still not lining up horizontal....
Okay so here is the css I have...
/* Home Middle
------------------------------------------------------------ */
.home-middle {
margin: 0 auto;
overflow: hidden;
padding: 25px 25px 5px;
width: 570px;
}
.home-middle-1 {
float: left;
margin: 0 24px 0 0;
width: 120px;
}.home-middle-2 {
float: left;
width: 120px;
}.home-middle-3 {
float: right;
width: 120px;
}Here is the home.php I have...
/** Add home middle 1 widget area */
add_action( 'genesis_before_loop', 'blissful_home_middle_1' );
function blissful_home_middle_1() {
dynamic_sidebar( 'home-middle-1' );
}/** Add home middle 2 widget area */
add_action( 'genesis_before_loop', 'blissful_home_middle_2' );
function blissful_home_middle_2() {
dynamic_sidebar( 'home-middle-2' );
}/** Add home middle 3 widget area */
add_action( 'genesis_before_loop', 'blissful_home_middle_3' );
function blissful_home_middle_3() {
dynamic_sidebar( 'home-middle-3' );
}and here is the functions php I have...
/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'home-middle-1',
'name' => __( 'Home Middle #1', 'blissful' ),
'description' => __( 'This is the first column of the home middle section.', 'blissful' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle-2',
'name' => __( 'Home Middle #2', 'blissful' ),
'description' => __( 'This is the second column of the home middle section.', 'blissful' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle-3',
'name' => __( 'Home Middle #3', 'blissful' ),
'description' => __( 'This is the third column of the home middle section.', 'blissful' ),
) );[email protected]MemberOkay so now I got the 3 new widget areas to show up but I can't figure out how to make them align horizontally. I added float: left; to them but still can't figure it out....
Here is what is in my css..
/* Home Middle
------------------------------------------------------------ */
.home-middle {
margin: 0 auto;
overflow: hidden;
padding: 25px 25px 5px;
width: 570px;
}
.home-middle-1 {
float: left;
margin: 0 24px 0 0;
width: 120px;
}.home-middle-2 {
float: left;
width: 120px;
}.home-middle-3 {
float: left;
width: 120px;
}[email protected]MemberNo, it was just adding negative margin in the css. I just hadn't put it in the correct spot. Sometimes after you make a change in your css you need to clear you cache before you see it.
[email protected]Memberah! don't know why I couldn't get that! haha! thanks! fixed! ๐
-
AuthorPosts