Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #246

    I set a widget to be displayed on every page but it doesn’t show on the home page. Thanks.

    #30485

    Despite being called Display Everywhere, this does exclude the homepage. If you want to add this widget to the homepage, this would require quite a bit of modification to the theme in order to display the widget.

    If it’s beyond your capabilities, you can check here for someone to help you achieve this: http://themeforest.net/forums/thread/so-you-know-how-to-customize-a-template-and-want-to-make-some-money/24795

    #30486

    W-O-W! So adding a sidebar to the homepage (like wordpress natively comes installed) is something I have to pay for? Are you kidding me?

    Even with no knowledge of php it took me five minutes of hacking the index.php file to include the sidebar…unfortunately it doesn’t display right but you’re telling me no one planned for the contingency of wanting a sidebar on the homepage? I’m amazed…shocked…and thoroughly disappointed :(

    #30487

    I guess I can start offering my services as an expert wordpress support guy for this theme :rolleyes:

    I shouldn’t have to be doing this. These things should be basic in the documentation. Why would you assume everyone wants a full width home page?? It’s ridiculous…

    Here’s the code for those wanting their sidebar on the homepage. Edit your index.php file and replace all with the following:

    <?php get_header(); ?>

    <div class=”wrapper wrapper_shadow ie6fix” id=’wrapper_featured_area’>

    <div class=’overlay_top ie6fix’></div>

    <div class=’overlay_bottom ie6fix’></div>

    <div class=”center ie6fix”>

    <!– ###################################################################### –>

    <div class=”feature_wrap”>

    <!– ###################################################################### –>

    <?php

    //this class creates the slideshow

    // SET SLIDER OPTIONS

    $slideshow = new kclass_display_slideshow();

    $slideshow->setQueryType(‘slideshow’);

    $slideshow->setQueryNumber($k_option);

    $slideshow->setSlideshowSize(‘XL’);

    $slideshow->setSlideshowClass(‘aviaslider’);

    $slideshow->setCaption(‘_img_excerpt’);

    $slideshow->setWelcome(“You can add Slides manually at your backend here or you can use the dummy content installer to create some slides for you so you see how it is done ;)”);

    $slideshow->show();

    ?>

    <!– ###################################################################### –>

    </div><!– end featuredwrap –>

    <!– ###################################################################### –>

    <!– end center–>

    </div>

    <!–end wrapper–>

    </div>

    <div class=”wrapper” id=’wrapper_featured_stripe’>

    <div class=”center”>

    <?php

    $slideshow->setSlideshowSize(‘S’);

    $slideshow->showThumbnails();

    if($k_option)

    {

    echo ‘‘;

    echo ‘<strong class=”ie6fix”>’.$k_option.’<span class=”buttonBg dynamicBg”></span>‘;

    }

    ?>

    <!– end center–>

    </div>

    <!–end wrapper–>

    </div>

    <div class=”wrapper” id=’wrapper_main’>

    <div class=”center”>

    <div id=”main”>

    <div class=’content’>

    <div class=”entry”>

    <?php

    #query the pags do display on the starting page

    if($k_option != “”)

    {

    $id_order = explode(‘,’, $k_option);

    $args = array(

    ‘post_type’ => ‘page’,

    ‘post__in’ => $id_order

    );

    $additional_loop = new WP_Query($args);

    #sorts the array so it reflects the order selceted in the backend

    foreach($additional_loop->posts as $the_post)

    {

    foreach($id_order as $key => $value)

    {

    if($value == $the_post->ID)

    {

    $tempArray[$key] = $the_post;

    }

    }

    }

    $additional_loop->posts = $tempArray;

    #output loop

    $counter = 1;

    $firstContainer = ‘fpactive_tab_content’;

    $firstTab = ‘fpactive_tab’;

    while ($additional_loop->have_posts()) : $additional_loop->the_post();

    ?>

    <h1 class=’fptab <?php echo $firstTab; ?>’><!–“> –><?php the_title(); ?><!––></h1>

    <div class=’fptab_content tab<?php echo $counter. ” “.$firstContainer; ?>’>

    <?php the_content(‘Read more’); edit_post_link(‘Edit’, ”, ”);?>

    </div>

    <?php

    $firstContainer = $firstTab = “”;

    $counter ++;

    endwhile;

    }

    else

    {

    echo “<h1>Welcome and Thanks for installing Avisio!</h1>”;

    echo “It seems you didnt set up your frontpage by now. You can do that in your wordpress backend at Avisio Options » Mainpage Options“;

    }

    ?>

    <!–end enty –>

    </div>

    </div>

    <?php get_sidebar(); ?>

    </div>

    <?php get_footer(); ?>

    #30488

    I’m sorry you feel that way. The primary role of this support forum is to help users set up the theme as per the demo.

    The homepage layout is designed to be full width and wasn’t designed to accommodate a sidebar. Yeah, you can add the sidebar code:

    <?php get_sidebar(); ?>

    which will add the sidebar, but customising the whole layout properly to be partial width would involve redesigning the layout completely, and involve editing the index.php, style.css and possibly other files depending on how you intended to set up the page. The 4 content areas weren’t designed to support widgets so it wouldn’t even be as simple as assigning widgets here.

    #30489

    Okay, I’m confused… with the code I posted above, the home page “appears” to look correct and the html validates correctly. So look again at http://www.columbusohiowebdesigns.com and tell me why my code for the home page with sidebar won’t work? It sure looks to work…

    P.S. if you look at the code, you’ll notice I didn’t just simply grab the sidebar, I had to redo some divs as well. I’m guessing I don’t have to monkey with css or anything else unless I want to use tabs because I took the tabs div out right?

    #30490

    @tonvie: relax a bit. This theme is extremely well designed. You cant expect a theme to be able to do anything/anyway. The support given here is very good. More than we “paid for”. The majority of the themes here dont have sidebars on the home page. The designers design to what the market generally wants.

    #30491

    cwrigley, I understand what you’re saying and I take responsibility on this one…

    It’s my own fault for assuming that this theme could do the most basic of things. Regardless, I’ve got it sussed now…

    And you shouldn’t have a theme with a widget leading you to believe it can be used on all pages when in reality it cannot…

    #30492

    @tonvie: There’s nothing wrong with the code you pasted above. You won’t need to make any adjustments to the Tabs CSS if you’ve removed the section.

    Your other option, if you want the homepage to look like a standard page with a sidebar rather than the custom homepage layout is to change the homepage to a static page under Settings -> Reading Settings in WordPress admin.

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

The topic ‘How to add sidebar to homepage?’ is closed to new replies.