cridge
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Javascript in Text Widget – Use CSS from Code, Not From ThemeThank 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
In reply to: coupon reveal on clickthis plugin has that function: http://www.couponreveal.com/
Forum: Fixing WordPress
In reply to: Images won’t centerI 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 (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!
thank you very much for your response. i’ll look into that.
Forum: Installing WordPress
In reply to: 404 Errors after upgrading to 2.7Thank 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!
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 🙂
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.