Advertisement:

Author Topic: Bender Theme Widget invisible at admin widget settings!  (Read 6957 times)

chewyluke

  • Full Member
  • ***
  • Posts: 208
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #15 on: May 02, 2014, 01:45:05 am »
Hi I tried this.

I edited main.php

adding this code
Code: [Select]
osc_show_widgets('sidebar'); directly under <div id="sidebar"> and all that happens is this code
Code: [Select]
osc_show_widgets('sidebar'); shows on the live site?

chewyluke

  • Full Member
  • ***
  • Posts: 208
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #16 on: May 02, 2014, 02:11:54 am »
Meh....oh well. Can't get it to work from ACP. But I found where to put my html code in the main.php area to get the background.

Good enough for me. :)

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: Bender Theme Widget invisible at admin widget settings!
« Reply #17 on: May 02, 2014, 11:33:52 am »
Sorry. I posted just the exact line of code to place within your page(s). depending on exactly where the code is placed within the page you may have to add additional code.

Depending on the location you place that line of code you may have to add additional code such as the php start/end like this:
<?php  osc_show_widgets('sidebar'); ?>  <?php  osc_show_widgets('header'); ?>  <?php  osc_show_widgets('footer'); ?>

Above is example depending on the widget settings in index.php. You can create widgets for item page, item_post page, etc.
Keep in mind that depending on code placement widget(s) will pick up the styling of that function. Notice in my first screenshot the widget text " Header Widget Test" is large and bold. That is because code was placed within the same styling as the breadcrumbs:
<div class="wrapper wrapper-flash">
    <?php
        osc_show_widgets('header');
        $breadcrumb = osc_breadcrumb('&raquo;', false, get_breadcrumb_lang());
        if( $breadcrumb !== '') { ?>
        <div class="breadcrumb">
            <?php echo $breadcrumb; ?>
            <div class="clear"></div>
        </div>


To show that this does work, I attached 2 screenshots showing widgets in Bender header, main sidebar and footer.
 
Tom
« Last Edit: May 02, 2014, 05:33:38 pm by tomshaft »