Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] How to NOT show a particular widget on a particular page ?


  #1  
Old Aug 3, 2011, 12:45 PM
sober's Avatar
sober
 
121 posts · Oct 2010
Hi if the widget class is "text-2" and the page id is "26", then what would be the code to NOT show that widget on that particular page. Thanks
  #2  
Old Aug 3, 2011, 01:28 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I use the Dynamic Widgets of Display Widgets plugin to do that but the code would be something like the following.
HTML Code:
body.page-id-24 .text-2 {
display: none;
}
But without seeing the page I can't be sure.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Aug 3, 2011, 03:35 PM
sober's Avatar
sober
 
121 posts · Oct 2010
That unfortunately doesn't work at my end. I have only this widget to customize and I would much rather have it via css than by installing a plugin
  #4  
Old Aug 3, 2011, 03:38 PM
sober's Avatar
sober
 
121 posts · Oct 2010
But this one is working
Code:
body.page-id-24 #text-2 {
display: none;
}
. May I have 1% credit for the code ? . Thanks so much
  #5  
Old Aug 3, 2011, 07:13 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
But you said it was a CLASS of text-2 not an ID so that's cheating.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Custom widget ares don't show up except on main page inkdork Sidebars & Widgets 9 Jul 30, 2011 06:19 AM
new widget area will not show up on dasboard siefert Sidebars & Widgets 1 Mar 11, 2011 05:08 AM
[SOLVED] Images inside Widget only show on Home Page allyevans Sidebars & Widgets 2 Nov 6, 2010 05:32 PM
[SOLVED] New Widget show only on homepage? blueprairie Sidebars & Widgets 2 Mar 2, 2010 02:46 PM
[SOLVED] How to: New widget area ONLY show on home page marcelo Sidebars & Widgets 2 Feb 14, 2010 02:07 PM


All times are GMT -6. The time now is 01:58 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.