Tagged: content widget area
This topic contains 7 replies, has 2 voices, and was last updated by StartupWP 5 years, 2 months ago.
- AuthorPosts
- February 3, 2014 at 3:31 PM #1403
Howdy. Thanks for the awesome, affordable framework/theme and clean CSS.
I’m using Startup Pro, version 2.0.1 and WordPress version 3.8.1. viewed through Firefox 26 and Chrome 32 on Windows 8.
Pretty straightfoward- I see your Widget “how-to” section states that the content widget area is not supported yet, but it’s a bit dated. I do see it on the widget UI in WordPress for my version of Startup Pro.
If, in fact, this feature is now included, how do I use this and integrate this widget area into the content? Needless to say, I’m baffled.
Thanks,
james
February 3, 2014 at 4:18 PM #1404Not yet, it’s not exactly on the back-burner and the idea hasn’t been abandoned either, it’s sort of in-between for now.
However, it can be utilized. Simply drop the following wherever you’d like and you can then add widgets to it:
<aside id="content-sidebar" role="complementary"> <?php if ( is_active_sidebar( 'content-widget-area' ) ) : ?> <div id="csidebar" class="widget-area"> <ul class="xoxo"> <?php dynamic_sidebar( 'content-widget-area' ); ?> </ul> <div class="clear"></div> </div> <?php endif; ?> </aside>
In a way, this basically is how it’s supposed to be used, but we haven’t quite solidified how it should work completely.
Thanks
February 3, 2014 at 4:48 PM #1406Thanks so much for the help.
If I want to add this to the bottom of my home page content area, where do I paste the code and which template do I select on that page’s edit page?
Sorry if this is redundant! Thanks.
February 3, 2014 at 6:22 PM #1407Have you setup a child theme?:
https://startupwp.com/topic/child-theming/
That might be the best route.
February 4, 2014 at 8:28 AM #1409Yes, I’ve been editing CSS and a little PHP through the child theme. I know HTML and CSS, but very shaky with PHP. I don’t want to burden your support page with coding questions- I just don’t know which PHP file to place that code so I can put that content widget area at the bottom of the homepage content area.
Thanks so much for all the help.
February 4, 2014 at 1:08 PM #1411Try placing the following at the very top of footer.php:
<?php if ( is_home() ) { ?> <aside id="content-sidebar" role="complementary"> <?php if ( is_active_sidebar( 'content-widget-area' ) ) : ?> <div id="csidebar" class="widget-area"> <ul class="xoxo"> <?php dynamic_sidebar( 'content-widget-area' ); ?> </ul> <div class="clear"></div> </div> <?php endif; ?> </aside> <?php } ?>
February 4, 2014 at 2:36 PM #1412Thanks.
Created a child footer.php, added the code to the top. Not sure how to activate it from the home edit page (it doesn’t show in sidebar options).
February 4, 2014 at 5:34 PM #14131. Make sure that your child theme is activated under Appearance > Themes.
2. Can you share the contents of all files that are currently in your child theme? If it’s easier, you can use:
- AuthorPosts
You must be logged in to reply to this topic.