Community Forums › Forums › Archived Forums › Design Tips and Tricks › Featured (widget) Homepage Area Problems
Tagged: Featured area, homepage, widget area
- This topic has 9 replies, 2 voices, and was last updated 10 years, 5 months ago by
venethia.
-
AuthorPosts
-
June 9, 2015 at 8:22 am #155568
venethia
MemberHi,
I'd like to insert a featured homepage area on my blog (eleven40 pro child theme) just after header and above the first post.
I decided to insert two widget into this featured area : 50% width each one.
This is the code on my home.php
<?php if ( is_active_sidebar( 'featured-left' ) ) { echo '<div class="featured"><div class="featured-left">'; //Add the left style div dynamic_sidebar( 'featured-left' ); //Add the featured left widget echo '</div><div class="featured-right">'; //Add the right style div dynamic_sidebar( 'featured-right' ); //Add the featured right widget echo ''; // close out the divs and BOOM! } //* Run the Genesis loop genesis();This is the code I added to style.css :
/* Featured Area Homepage ------------------------------------------------------------ */ .featured { margin: 0 auto; height: 430px; padding: 0 0 25px; width: 910px; } /* Add this next part in */ .featured-left { float:left; width:670px; } .featured-right { float:right; width: 220px; }This is the code I added to function.php :
genesis_register_sidebar( array( 'id' => 'featured-left', 'name' => __( 'Featured Left', 'eleven40' ), 'description' => __( 'This is the Home Page Featured widget area left.', 'eleven40' ), ) ); genesis_register_sidebar( array( 'id' => 'featured-right', 'name' => __( 'Featured Right', 'eleven40' ), 'description' => __( 'This is the Home Page Featured widget area right.', 'eleven40' ), ) );All is ok about function.php and home.php but I think the code into style.css is wrong because I got a terrible result.
Take a look at this screenshot :
http://www.fabbricapolitica.com/wp-content/uploads/2015/06/Schermata-2015-06-09-alle-16.09.26.png
Someone had the same problem?
http://www.fabbricapolitica.comJune 9, 2015 at 9:19 am #155578Genesis Developer
MemberJune 9, 2015 at 9:26 am #155580venethia
MemberIs it possible to have a full width featured area (where the two widget are) with that plugin?
June 9, 2015 at 10:13 am #155584Genesis Developer
MemberYes. You can do anything. I used "one-half" class for two columns widget area. By default it is making full width widget area
June 11, 2015 at 1:42 am #155812venethia
MemberIs it possible to obtain a featured optin area like in http://hotlead.it?
If yes...to do it need I 2 or 3 widget?
June 11, 2015 at 2:21 am #155815venethia
MemberJust bought the plugin and tested the full width.
But the full width are dor me include the also the part of the sideber.
Take a look at this screenshot : http://www.fabbricapolitica.com/wp-content/uploads/2015/06/fwa.png
June 11, 2015 at 2:27 am #155816Genesis Developer
MemberWhich hook are you using? You can use genesis_before_content_sidebar_wap hook.
June 11, 2015 at 2:55 am #155818venethia
MemberI have 3 widget :
1) Center widget (full width include sidebar size)
2) Left widget (half width include sidebar size). This is below the center widget, on the left.
3) Left widget (half width include sidebar size). This is below the center widget, on the right.Which hooks should I use?
The layout I'd like is similar to http://www.hotlead.it
June 11, 2015 at 3:02 am #155819Genesis Developer
MemberCan you share the wp-admin access via this form? Please share all the problem via this form also. Because you purchased my plugin. This is not right place for third party support.
June 11, 2015 at 3:06 am #155820venethia
MemberSure, you are right. I just filled out the form.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.



