Mark Ratledge
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Moving WordPress over from testing folderForum: Fixing WordPress
In reply to: Create a CSS Class That Is Specific To A User RoleThen it’s best to ask the developer of that plugin how to hook into body classes, if it is different than standard WP.
Forum: Fixing WordPress
In reply to: Create a CSS Class That Is Specific To A User RoleYou can run this function in your theme’s functions.php file to add body classes according to WordPress standard user roles; it only runs when someone is logged in.
if ( is_user_logged_in() ) { add_filter('body_class','add_role_to_body'); add_filter('admin_body_class','add_role_to_body'); } function add_role_to_body($classes) { $current_user = new WP_User(get_current_user_id()); $user_role = array_shift($current_user->roles); if (is_admin()) { $classes .= 'role-'. $user_role; } else { $classes[] = 'role-'. $user_role; } return $classes; }How did you add the
cparole? With a plugin or your own function?Forum: Fixing WordPress
In reply to: Search Box Does Not Work@pamela1979, That was either a temporary glitch with your web host; or an issue with your theme.
But that’s a premium/paid theme not supported in these forums. It’s best to go to the support site where you bought the theme – http://themeforest.net/ – for help with customizations and issues. You paid for support when you bought the theme, so you should contact the people who sold you the theme.
These forums are for free themes available in the WordPress theme directory at http://wordpress.org/themes/. See http://codex.wordpress.org/Forum_Welcome#Commercial_Products
Forum: Fixing WordPress
In reply to: Not secure to 404 errorAh, yes. You simply can’t use https without an SSL. Upgrade or do whatever you need to do to get an SSL installed in your hosting account for your domain.
Forum: Fixing WordPress
In reply to: Can anyone reference a true ‘idiots guide’ to web app development?Your question(s) are far too general for these forums; these forums are for specific questions and answers about specific WordPress core, theme and plugin issues and customizations.
If you’re having trouble with the basics, the answers are in the docs you are reading, and in trial and error; install WordPress and play with it and try out the APIs and code snippets you found. That’s how anyone learns.
And try http://wordpress.stackexchange.com/ and http://stackoverflow.com/ Again, those forums are for very specific questions, but the response to your vague questions will be more harsh than here.
And, these forums are not for documentation or the documentation of learning WordPress; that’s best left to your own site or blog.
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
Forum: Fixing WordPress
In reply to: Not secure to 404 errorDid you get and install an SSL from your webhost before you added the plugin and made the settings changes?
Forum: Themes and Templates
In reply to: My Website is not showing weblogo on headerSorry, but you’re using a premium/paid theme not supported in these forums. It’s best to go to the support site where you bought the theme – http://themeforest.net/ – for help with customizations and issues. You paid for support when you bought the theme, so you should contact the people who sold you the theme.
These forums are for free themes available in the WordPress theme directory at http://wordpress.org/themes/. See http://codex.wordpress.org/Forum_Welcome#Commercial_Products
Forum: Fixing WordPress
In reply to: xmlrpc denial of serviceWrong terminology; one or two IPs is not DDOS. Block the IPs as barnez says, either in .htaccess – the most efficient in terms o server load – or with something like https://wordpress.org/plugins/wp-ban/
given how easy this attack is to bring down WordPress on a vps…
A VPS, when properly configured will stand a lot of abuse. You may simply not have configured Apache/Nginx, PHP and MySQL to handle high loads.
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
Forum: Fixing WordPress
In reply to: xmlrpc denial of serviceSounds like Cloudflare (paid account?) and your host (unless you’re running your own server) need to help with DDOS attacks.
If not, do you have access to xmlrpc.php disaled? Do you use it for posting or coments? See https://wordpress.org/plugins/search.php?q=disable+XML-RPC
Or use
<Files xmlrpc.php> order deny,allow deny from all </Files>in .htaccess in Apache. Or
location = /xmlrpc.php { deny all; access_log off; log_not_found off; return 444; }inside the server block on Nginx.
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
Forum: Fixing WordPress
In reply to: Header image cutting off in responsive viewSorry, but you’re using a premium/paid theme not supported in these forums. It’s best to go to the support site where you bought the theme – http://themeforest.net/ – for help with customizations and issues. You paid for support when you bought the theme, so you should contact the people who sold you the theme.
These forums are for free themes available in the WordPress theme directory at http://wordpress.org/themes/. See http://codex.wordpress.org/Forum_Welcome#Commercial_Products
Forum: Fixing WordPress
In reply to: XSS Vulnerabilities in media.phpThat’s a false positive; your host needs to update their virus definitions or recognize that it has been fixed. See https://wordpress.org/news/2016/09/wordpress-4-6-1-security-and-maintenance-release/ and http://seclists.org/oss-sec/2016/q3/455
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
Forum: Fixing WordPress
In reply to: How to create a Multi Layer WebsiteThat’s possible with the Genesis Framework and their child themes.
But that’s a premium/paid theme not supported in these forums. It’s best to go to the support site where you bought the theme – http://www.studiopress.com/forums/ – for help with customizations and issues. You paid for support when you bought the theme, so you should contact the people who sold you the theme.
These forums are for free themes available in the WordPress theme directory at http://wordpress.org/themes/. See http://codex.wordpress.org/Forum_Welcome#Commercial_Products
Forum: Fixing WordPress
In reply to: Fatal Error in wp_includesTry a Manual Update: http://codex.wordpress.org/Updating_WordPress#Manual_Update You are trying to auto-update update a very old version of WordPress and sounds like something broke. Your original theme may not work very well, etiher.
If you still get a white screen, that means there are PHP errors. Try Debug and see what PHP errors you are getting.
See https://codex.wordpress.org/WP_DEBUG
Add
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false);in wp-config.php and the debug.log file will be in wp-content.
Change the “display” line to true
define( 'WP_DEBUG_DISPLAY', true);to dump them to the browser as well as log them.
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
- This reply was modified 9 years, 9 months ago by Mark Ratledge.
Forum: Fixing WordPress
In reply to: XSS Vulnerabilities in media.phpThese are English language community forums; please use English or provide an English translation. Or, check for a WP support forum in your language.