Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding home-middle widgets
Tagged: Corporate Theme, css amends, home widgets
- This topic has 11 replies, 2 voices, and was last updated 10 years, 4 months ago by Genesis Developer.
-
AuthorPosts
-
September 3, 2014 at 3:48 am #122541EmLY14Member
Hi
I am using the corporate theme for a new site, this comes as standard with three home-middle widgets. I would really like to display five on the home page.
Has anyone done this before and would be happy to share the code with me or could you help by talking me through it as I am aware I will need to tinker with the functions.php, home.php and then the style.css files.
Thank you in advance.
September 3, 2014 at 4:07 am #122542Genesis DeveloperMemberCan you upload the code of home.php file at pastebin.com and share the new pastebin link here?
September 3, 2014 at 4:42 am #122546EmLY14Memberpastebin link - http://pastebin.com/vTsKvYSe
Let me know if you need anything else, thank you.
September 3, 2014 at 6:46 am #122553Genesis DeveloperMemberThank you for sharing the code. I am creating the code for you. Please add the following code in your functions.php file. Creating two new widgets area
genesis_register_sidebar( array( 'id' => 'home-middle-4', 'name' => __( 'Home Middle #4', 'corporate' ), 'description' => __( 'This is a widget area that can be shown on Home Page', 'corporate' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle-5', 'name' => __( 'Home Middle #5', 'corporate' ), 'description' => __( 'This is a widget area that can be shown on Home Page', 'corporate' ), ) );
Also you will modify the home page code. Copy the code from here http://pastebin.com/2KLKDJRz.
Now you'll need to adjust the CSS. Can you share your site link after adding the content of 4th and 5th widget?
September 3, 2014 at 6:53 am #122556Genesis DeveloperMemberYou can replace old CSS by this new one
.home-middle-1, .home-middle-2, .home-middle-3, .home-middle-4, .home-middle-5{ float: left; padding: 0; width: 17.8889%; } .home-middle-2, .home-middle-3, .home-middle-4, .home-middle-5{ margin-left: 2.5% }
September 3, 2014 at 7:10 am #122557EmLY14MemberGenwrock
I made all the code changes you sent over and on refreshing my site I now get this error
Parse error: syntax error, unexpected '&' in /homepages/46/d539399353/htdocs/clickandbuilds/Panel2Paint/wp-content/themes/corporate/functions.php on line 66
September 3, 2014 at 7:21 am #122558Genesis DeveloperMemberOk. Can you upload the code of functions.php file at pastebin.com?I'll look the code
September 3, 2014 at 7:27 am #122559September 3, 2014 at 7:35 am #122561Genesis DeveloperMemberPlease check once the new code here http://pastebin.com/SnfgXe7S
September 3, 2014 at 7:40 am #122563EmLY14MemberIt now says there is another error - Parse error: syntax error, unexpected end of file in /homepages/46/d539399353/htdocs/clickandbuilds/Panel2Paint/wp-content/themes/corporate/functions.php on line 75
September 3, 2014 at 7:42 am #122564EmLY14MemberI have fixed that last one myself. It has worked thank you genwrock for your help and supplying the code.
September 3, 2014 at 7:54 am #122567Genesis DeveloperMemberGreat. Good news that it is working.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.