Title: cridge's Replies | WordPress.org

---

# cridge

  [  ](https://wordpress.org/support/users/cridge/)

 *   [Profile](https://wordpress.org/support/users/cridge/)
 *   [Topics Started](https://wordpress.org/support/users/cridge/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cridge/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cridge/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cridge/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cridge/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cridge/favorites/)

 Search replies:

## Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)

 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Javascript in Text Widget – Use CSS from Code, Not From Theme](https://wordpress.org/support/topic/javascript-in-text-widget-use-css-from-code-not-from-mytheme/)
 *  Thread Starter [cridge](https://wordpress.org/support/users/cridge/)
 * (@cridge)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/javascript-in-text-widget-use-css-from-code-not-from-mytheme/#post-3925589)
 * Thank for the response but that doesn’t work for my purposes. I’d like to find
   a solution that allows me to set the CSS hierarchy within the text widget. In
   our multisite environment, we don’t give clients access to the theme files so
   the text widget is the only place they can control the code.
 * Any other suggestions?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [coupon reveal on click](https://wordpress.org/support/topic/coupon-reveal-on-click/)
 *  [cridge](https://wordpress.org/support/users/cridge/)
 * (@cridge)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/coupon-reveal-on-click/#post-2035491)
 * this plugin has that function: [http://www.couponreveal.com/](http://www.couponreveal.com/)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Images won’t center](https://wordpress.org/support/topic/images-wont-center-1/)
 *  [cridge](https://wordpress.org/support/users/cridge/)
 * (@cridge)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/images-wont-center-1/#post-1400824)
 * I am having a similar issue where any images with captions will not align center
   no matter what I try. This issue is only affecting images with captions, not 
   just normal images. I tried adding the suggested code above with no luck. The
   test site I’m working with is: [http://webgraphicsandvideo.com/?p=15](http://webgraphicsandvideo.com/?p=15)(
   just a site i use for testing… not real content)
 * The CSS code that I believe is controlling this section is:
 *     ```
       .wpn_news .wpn_post img {max-width:580px;background:#222;border:1px solid #5e5e5e;padding:1px;}
       		.wpn_post img.centered{display:block;margin-left:auto;margin-right:auto;}
       		.wpn_post img.alignright{padding:4px;margin:0 0 2px 7px;display:inline;}
       		.wpn_post img.alignleft {padding:4px;margin:0 7px 2px 0;display:inline;}
       		.wpn_post .alignright {float:right;}
       		.wpn_post .alignleft {float:left }
       		.aligncenter, div.aligncenter {display:block;margin-left:auto;margin-right:auto;}
       .wpn_post .wp-caption {border:1px solid #000;text-align:center;background-color:#444;padding-top:4px;margin:10px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}
       		.wpn_post.wp-caption img {align=center;margin:0;padding:0;border:0 none;}
       		.wpn_post .wp-caption p.wp-caption-text {font-size:11px;line-height:17px;padding:0 4px 5px;margin:0;}
       ```
   
 * Help or insight is GREATLY appreciated!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Prevent the Same Post from Showing in Multiple “Highlights” Sections](https://wordpress.org/support/topic/prevent-the-same-post-from-showing-in-multiple-highlights-sections/)
 *  Thread Starter [cridge](https://wordpress.org/support/users/cridge/)
 * (@cridge)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/prevent-the-same-post-from-showing-in-multiple-highlights-sections/#post-1552695)
 * thank you very much for your response. i’ll look into that.
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [404 Errors after upgrading to 2.7](https://wordpress.org/support/topic/404-errors-after-upgrading-to-27/)
 *  [cridge](https://wordpress.org/support/users/cridge/)
 * (@cridge)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/404-errors-after-upgrading-to-27/page/2/#post-923265)
 * Thank you so much Andyfarmerboy for posting your fix – it worked perfectly! I’m
   currently running WP 2.7.1 and last night I got a notice from within admin saying
   my SQL database needed to be upgraded. I proceeded to upgrade and when I came
   back, despite a long list of “WordPress database error: [MySQL server has gone
   away]” (which I’m assuming were just timeout errors) my database had upgraded
   successfully. THEN… I went to my site and found that only the homepage and admin
   could be accessed, all other links within the site were getting a 404. I freaked
   out and was on hold with my host when I found this thread. I simply went to “
   Permalinks” under the Settings menu, changed to “Default”, saved, checked the
   site and everything was back to normal again! Then, since I don’t want use the
   default structure, I went in to Permalinks again and changed it back to my preferred“
   Custom Structure”: /%category%/%postname% Whalah! my site was back to normal.
   Thank you again!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: Widget Logic] widget logic – how to limit to children of one particular parent?](https://wordpress.org/support/topic/plugin-widget-logic-widget-logic-how-to-limit-to-children-of-one-particular-parent/)
 *  [cridge](https://wordpress.org/support/users/cridge/)
 * (@cridge)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-widget-logic-widget-logic-how-to-limit-to-children-of-one-particular-parent/#post-871627)
 * Thanks for the quick response Alan. Unfortunately I’m not entirely well-versed
   in PHP or conditional tagging so I’m a little lost on how to to interpret and
   utilize the information you’ve provided.
 * I tried replacing the “is_category(x)” with “in_category(x)” but this caused 
   my widget to disappear on all pages including individual posts.
 * I’m also not sure how to use the category ancestor information as it pertains
   to tags for Widget Logic. Can you possibly give me an example of how I can use
   this information? What would the entire tag look like when calling on these child
   category id’s?
 * Thank you again. I really want this to work as I feel Widget Logic offers an 
   extremely valuable function (and should probably come standard in WordPress 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [[Plugin: Widget Logic] widget logic – how to limit to children of one particular parent?](https://wordpress.org/support/topic/plugin-widget-logic-widget-logic-how-to-limit-to-children-of-one-particular-parent/)
 *  [cridge](https://wordpress.org/support/users/cridge/)
 * (@cridge)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-widget-logic-widget-logic-how-to-limit-to-children-of-one-particular-parent/#post-871625)
 * I need to have a similar function on my site whereby a widget appears only on
   a specified Category page, as well as all child, sub-child and individual post
   pages within that category. Is this possible?
 * I tried the scripts mentioned in this thread and while I can get the widget to
   show up on ONLY the specified category page, it is not appearing on any of the
   sub-category or individual post pages (within that category).
 * Right now I am using the following code:
    global $post; return (is_category(‘
   Mountain Bikes’) || $post->post_parent==”7″);
 * Any ideas on how I can make my widget show on the sub-category or individual 
   post pages? THANK YOU in advance for any help you can provide.

Viewing 7 replies - 1 through 7 (of 7 total)