Jump to content


Photo
- - - - -
Resolved

Primary Sidebar - Widgets Issue



  • Please log in to reply
8 replies to this topic

#1 oinegue1960

oinegue1960

    Super Member

  • Members
  • 117 posts
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 08 November 2012 - 11:26 AM

Hello,

I'd like to have an empty left primary sidebar so I removed all default widgets like search, calendar, categories etc etc
For some reason the sidebar still displays widgets but if I activate only one widget (let's say categories...) then the sidebar will correctly display such widget only.
I already did the standard procedures like deactivating all plugins and cache cleaning.
Some idea?

Thanks

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 08 November 2012 - 03:46 PM

Hello,

Do you just want the empty left primary sidebar to be there even though no widgets are added? (The primary sidebar is equipped with default widgets, which explains why they show up automatically if you don't add your own custom widgets to it)

#3 oinegue1960

oinegue1960

    Super Member

  • Members
  • 117 posts
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 08 November 2012 - 06:38 PM

Yes I do... I 'd like an empty sidebar (or at least till I'll decide to activate a widget like - let's say - a menu) ....so it seems where I do not set widgets there PL will activate the default widget set... but where I set just one widget there PL doesn't activate default widget set...
Am I correct?

#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 08 November 2012 - 06:47 PM

Yes, you are correct.

If you need just an empty sidebar, then you should just leave it alone for now. You can add a dummy text widget in there (an empty one) and then use CSS to hide that one so that it's as if content is in there but it's just there to ensure that the other default widgets don't get activated.

#5 oinegue1960

oinegue1960

    Super Member

  • Members
  • 117 posts
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 09 November 2012 - 12:47 AM

Catrina, do you have a reference or example script on how to hide a widget (or similar element) by CSS?
Thank you very much.

#6 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 09 November 2012 - 12:52 AM

Just enable this option, its under website setup:

Please Login or Register to see this Hidden Content


  • oinegue1960 likes this

#7 oinegue1960

oinegue1960

    Super Member

  • Members
  • 117 posts
  • Framework Version:2.3.5
  • Country: Country Flag

Posted 09 November 2012 - 10:54 AM

Thank you Simon, it works fine. :)
Just for my information...I always like to learn something new... how to do it by CSS as Catrina suggested?

#8 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 09 November 2012 - 03:23 PM

It just required that you hide the text widget using its selector and this CSS attribute but Simon's solution is a lot better (mine is more of a hack): display: none;
  • oinegue1960 likes this

#9 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 09 November 2012 - 03:24 PM

The topic was marked as resolved.





Also tagged with one or more of these keywords: Resolved