ThemeShaper Forums » Thematic


Modifying Widget Areas in the Framework

(4 posts)
  • Started 10 years ago by anotherguy
  • Latest reply from anotherguy
  • This topic is not resolved
  1. I am in the process of developing multiple child themes to work with Thematic which will be ported over from templates built on another CMS. All of these themes currently use conditionals to manage how columns collapse or expand depending on whether widgets are published to those areas.

    Using the code below, I am able to successfully replicate this in any Wordpress theme (just as an example). I put this code in header.php before < / head >

    <style type="text/css">
    <?php if(!is_active_sidebar(1) || !is_active_sidebar(2) || is_home()) { ?>
    #content {margin:0;}
    <?php } ?>
    <?php if(is_active_sidebar(1) && !is_active_sidebar(2) && !is_home()) { ?>
    #content{margin:0 0 0 320px;} #sidebar{width:300px;}
    <?php } ?>
    <?php if(!is_active_sidebar(1) && is_active_sidebar(2) && !is_home()) { ?>
    #content{margin:0 320px 0 0;} #sidebar2{width:300px;}
    <?php } ?>


    I would like to be able to do this with Thematic by customizing the existing framework and adding this design 'feature' to every widget area that is created. However, there are two issues here:

    1. I would like to submit these changes to the developers of Thematic for adding into the framework and use by all Thematic developers if possible.
    2. If that is not possible, I need to find a way to do this in the child themes only so that I can continue getting updates on Thematic from the developers directly and not worry about anything breaking.
    3. If even that is not possible, I would love to get some help in knowing the best way to add this to Thematic directly so that we can have our own custom version of the framework for releasing to our Child Theme clients.


    Posted 10 years ago #
  2. Hi Tim,

    I'll be back from vacation on Sunday.

    'Til then you should take a look at the current SVN copy. The new handling of widget areas will enable you to do these things using the child theme's functions.php.


    Posted 10 years ago #
  3. Take a look at this thread:

    Posted 10 years ago #
  4. Excellent. I'll look into it, Chris. Thanks very much.

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.