patv
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Having Trouble Removing Comments from a Particular CategoryYou’re missing a parenthese and closing php quotes (since you’re not echoing your CSS rule, you’re defining it inline :
<?php if ( in_category( array( "services", "team", "testimonials") ) ) { ?> .commentsection {display: none;} <?php } ?>
I’d also recommend that instead of setting a CSS rule based on if the page is in a certain category, place your check where the actual markup is being produced (such as in your comments.php or where the comment template file is being called in your template. Simply reverse the check (so !in_category(array()) ). This way you’re not generating the markup needlessly and hiding it with CSS.
Forum: Fixing WordPress
In reply to: How Do I Reduce Height of Banner Image?You should be able to (re)defined constants in your functions.php, no?
define('HEADER_IMAGE_HEIGHT, 150)
Forum: Fixing WordPress
In reply to: Help plz! Weird gap between title and content in posts!It looks like it’s being caused by your Facebook plugin (if you have one). Search in your source of your page (if you don’t have firebug) for a line starting with
<div class="fb-like fb_edge_widget_with_comment fb_iframe_widget [...]"
, because of the class names, this makes me think it’s either a wordpress plugin or a code coming from Facebook’s social plugins.If you can’t find what is the root of this spacing, you can simply add a CSS rule to hide this spacing using:
display:none
.Forum: Fixing WordPress
In reply to: How do I add space on the top and bottom of widgets in my sidebar?Yes, your theme’s style.css is found under apperance/editor/…
Your site isn’t up yet, but adding top and bottom padding to your widgets (the outter-most container of your widgets) should do the trick. Find a (or a few) class(es) that are being used by all your widgets and set a css rule on them.
Forum: Fixing WordPress
In reply to: Closed admin account still getting confirmation emailsI’m thinking it’s probably because it’s the email used to install WordPress. Do you still have access to the site’s database? You could do a search on your email and replace them with your client’s email address. Also have a look at the users table to see if your user instance is really deleted.
Forum: Plugins
In reply to: [Facebook] [Plugin: Facebook] Publish to fan page setting DisabledIs anyone logged onto facebook automatically (ie you don’t log in everytime you hit their homepage) and experiencing this problem?
Forum: Plugins
In reply to: [Facebook] [Plugin: Facebook] Publish to fan page setting DisabledYes, you must be logged into your Facebook account through your browser in order to post. Just like using the Graph API, you need to get an access token for Facebook to allow you to push content to their servers, and that token gets generated by logging in.
I agree it is a pain when you’re trying to deliver this plugin to customers, where you can’t do any setup for them without almost connecting to Facebook as them.
Forum: Fixing WordPress
In reply to: Categories Not Found since 3.4.1 update@ noelgreen, can I pick up with you where msxavib left off?
Forum: Plugins
In reply to: [Facebook] [Plugin: Facebook] Publish to fan page setting DisabledI’m having the same issue, here’s the error messages I get:
Failed posting to Physics CrossFit’s Timeline because the access token expired. To reactivate publishing, visit the Facebook settings page and re-enable the “Publish to fan page” setting. Full error: {“message”:”Error validating access token: The session is invalid because the user logged out.”,”type”:”OAuthException”
Debug:
{“appid”:”402202813150236″,”version”:”1.0.2″,”domain”:”physicscrossfit.com”,”social_publisher”:{“enabled”:”true”,”publish_to_fan_page”:[],”mentions_position”:”both”},”recommendations_bar”:{“trigger”:”50″,”read_time”:”20″,”action”:”like”,”side”:”right”,”show_on”:”all posts and pages”},”subscribe”:{“layout”:”standard”,”width”:”250″,”colorscheme”:”light”,”font”:”arial”,”position”:”both”,”show_on”:”all posts and pages”},”comments”:{“num_posts”:”20″,”width”:”470″,”colorscheme”:”light”,”show_on”:”all posts and pages”},”send”:{“colorscheme”:”light”,”font”:”arial”,”position”:”both”,”show_on”:”all posts and pages”},”wp_ver”:”3.4″}Forum: Fixing WordPress
In reply to: How to use comments with pagination?Do you have a link your website so i can see what you’re talking about? I think I might be getting lost in the explanations.
Forum: Fixing WordPress
In reply to: No edit toolbar on "Edit Page" screen. Anyone else?If your .htaccess is installed properly, all URL requests should be redirected through /index, no?
Forum: Fixing WordPress
In reply to: No edit toolbar on "Edit Page" screen. Anyone else?It would be found in your themes folder.
And no idea for a ‘Down for maintenance’ plugin. If you want just a static page, you can rename the index.php file at your root folder (to anything not index.php so it doesn’t get called by default, so for example, index_old.php) and create a new file called index.html (still at the root folder) where you can write a simple web page mentionning it’s down for maintenance.
Forum: Fixing WordPress
In reply to: How to use comments with pagination?the first code I sent you will retrieve the current pagination index for your post listing. For example, if it’s the 2nd page of your post, it will return 2. If you have your post set up in 3 pages, the second code will give you the max number of pages for your post, so 3.
By comparing these two variables, you will be able to detect if you are at your last page of your post (when the current page index is equal to the maximum index).
Forum: Fixing WordPress
In reply to: WordPress Slow to Load on My computer@eventors, if you want an efficient theme baseline, revert your theme to the default wordpress theme and see if this improves your load time.
Forum: Fixing WordPress
In reply to: No edit toolbar on "Edit Page" screen. Anyone else?I’d also check your features.php file, to see if you’re coding anything remotely near the post edit page.
Other than that, you might want to look at wp-admin/edit.php and see if it has been modified recently. If not, go through its code and look at all the files it is including or calling (through function calls) and see if they have been modified since you have installed WordPress. The idea is that perhaps one of the core files have been modified since its installation and you’d need to revert this back.