New Topic

Content Widget Area

Home › Forum › Help › Content Widget Area

This topic contains 7 replies, has 2 voices, and was last updated by  StartupWP 2 years, 7 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1403

    james
    Member

    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

    #1404

    StartupWP
    Support

    Not 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

    #1406

    james
    Member

    Thanks 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.

    #1407

    StartupWP
    Support

    Have you setup a child theme?:

    https://startupwp.com/topic/child-theming/

    That might be the best route.

    #1409

    james
    Member

    Yes, 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.

    #1411

    StartupWP
    Support

    Try 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 } ?>
    #1412

    james
    Member

    Thanks.

    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).

    #1413

    StartupWP
    Support

    1. 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:

    http://pastebin.com/

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.