Advertisement:

Author Topic: Widgets  (Read 11393 times)

Olfart

  • Newbie
  • *
  • Posts: 35
Widgets
« on: August 31, 2013, 07:36:41 am »
Is there any reason the widget does not appear, i just did a fresh install using this theme, I tried to add a widget, but it won't appear. It is listed in the Appearance/Manage Widgets

Thanks to anyone for helping me out here.

b.a

  • Newbie
  • *
  • Posts: 1
Re: Widgets
« Reply #1 on: August 31, 2013, 06:27:18 pm »
I agree, i recently installed OSClass 3.2.1 but the widgets are not working.

drawsoek

  • Newbie
  • *
  • Posts: 1
Re: Widgets
« Reply #2 on: September 09, 2013, 11:27:03 pm »
I have the same problem.

jorgeantonio

  • Newbie
  • *
  • Posts: 5
Re: Widgets
« Reply #3 on: September 10, 2013, 12:33:23 am »
Same here!

AVBestDeals

  • Full Member
  • ***
  • Posts: 121
Re: Widgets
« Reply #4 on: September 10, 2013, 03:42:39 am »

Olfart

  • Newbie
  • *
  • Posts: 35
Re: Widgets
« Reply #5 on: September 10, 2013, 09:48:47 pm »
Thanks AVBestDeals

I am not that too tecksavvey but will give that a try. My first concern won't all hacks to php files get erased when the next upgraded version comes out?

Also I think its important that when you publish a theme that it actually does what its supposed to, Modern theme does it quite well, and Bender is to my understanding the replacement.

I was hoping someone would be able to upload a fixed copy of the Bender them for everyone to be able to use, as opposed to everyone fixing their own.

I appreciate all the hard work that's being done (don't get me wrong) but we did need to post this question so it would be on the list of fixes that need to be included in the next release.

Olfart

  • Newbie
  • *
  • Posts: 35
Re: Widgets
« Reply #6 on: September 10, 2013, 10:15:12 pm »
OK I did verbatim what was suggested, plus I downloaded the latest OS Class, first I copied the files to my online Bender Theme, tested "widgets" it did not work. I added the codes as per below, tested it, still nothing showing on my main index page.

Code: [Select]
widgets: header, footer
and


Code: [Select]
,'locations'   => array('header', 'footer')
to index.php

in my theme directory and admin/gui directory


Olfart

  • Newbie
  • *
  • Posts: 35
Re: Widgets
« Reply #7 on: September 18, 2013, 06:32:28 am »
Help? I love the Bender theme but if I cannot get widgets working, then its back to Modern Theme.

Can anyone spot why the instruction given won't work?
Thanks so much in advance to anyone with the know how to solve this problem.

AVBestDeals

  • Full Member
  • ***
  • Posts: 121
Re: Widgets
« Reply #8 on: September 18, 2013, 07:27:26 am »
Hi all


For the header and footer widget code to work you will need to add this where you wish the code to show!


<?php osc_show_widgets('header') ; ?> or <?php osc_show_widgets('footer') ; ??>


Regards,
AVBestDeals

Olfart

  • Newbie
  • *
  • Posts: 35
Re: Widgets
« Reply #9 on: September 22, 2013, 05:44:22 am »
AVBestDeals, thanks for your reply, as I am no expert in php, could you tell me which php file I need to put this in? Is it the main index php in Blender?

AVBestDeals

  • Full Member
  • ***
  • Posts: 121
Re: Widgets
« Reply #10 on: September 22, 2013, 06:42:49 am »
Hi

You can add this co to any of the page wjere you wish to show the widget header or footer code

i.e., To show the widget header code in contact.php under the form, you add the code after the </form> tag

You can use the header or footer in pages or to the header.php or footer.php,
but header can go in footer and footer in header, does not matter,
it will display what you added to the placeholder name footer or header under the admin widget section

Regards,
AVBestDeals
« Last Edit: September 22, 2013, 08:41:39 am by AVBestDeals »

Olfart

  • Newbie
  • *
  • Posts: 35
Re: Widgets
« Reply #11 on: September 22, 2013, 07:17:10 am »
Awesome, thanks for your help, I will try that as soon as I get a chance to work on our website again.

Olfart

  • Newbie
  • *
  • Posts: 35
Re: Widgets
« Reply #12 on: September 23, 2013, 06:54:56 pm »
Maybe Bender is not set up correct for widgets? I tried adding what you said to the header.php and nothing appears, then I tried again on the footer php, and once again nothing appears?



Olfart

  • Newbie
  • *
  • Posts: 35
Re: Widgets
« Reply #13 on: October 02, 2013, 02:40:45 am »
Anyone besides me having a problem getting widgets to work, or is it just me?

nootkan

  • Sr. Member
  • ****
  • Posts: 259
Re: Widgets
« Reply #14 on: October 02, 2013, 07:02:44 am »
I'm using the bender theme and placed my header widget code inside the header.php file here:
Code: [Select]
<?php if( osc_is_home_page() || osc_is_static_page() || osc_is_contact_page() ) { ?>
    <?php osc_show_widgets('header') ; ?>
I placed the footer widget code inside the footer.php here:
Code: [Select]
</div>
<?php osc_run_hook('footer'); ?>
</body></html>

Make sure you add the two new widgets under "Appearance->Manage Widgets" with the html that you want in them and name them then add the code above into the files where you would like the widget to appear.  If you want it in a different place than what I've shown you may have to experiment a little to get it to work.  Hope this helps.