Showing posts with label Wordpress. Show all posts
Showing posts with label Wordpress. Show all posts

Friday, 11 November 2016

How to Disable Theme Editor and Plugin Editor in WordPress Admin Panel


How to Disable Theme Editor and Plugin Editor in WordPress Admin Panel

WordPress allows you to edit your plugin and theme files directly through its admin panel. Although handy, this is dangerous because a single typo can render your website blank. Moreover, you may want to give admin access to people that don't need to edit code.
All you need to do is to disable the Theme Editor and the Plugin Editor. To do that, open your wp-config.php file and add the following code to it:
That's all you need to do in order to disable those editors from the WordPress backend.

Why BackupBuddy fails to send backups to a remote server


Why BackupBuddy fails to send backups to a remote server

When backing up to a remote server, the successful completion of the process relies on many different factors including the type of the remote server (FTP, Amazon, DropBox, etc.), the load on the two servers, the network connectivity between the two, the size of the backup, server limits, and more. The way BackupBuddy works is to create one process to initiate the transfer, which for large websites becomes too long and heavy. The larger the website, the more likely it is to hit various server limits like Apache timeout, PHP max execution time, max CPU seconds, and more. 
On SiteGround servers, we do not recommend that you try to send backups over 150MB to a remote FTP server because that transfer may take too much time and the process will reach the timeouts set to protect the stability of the server or will be killed by our server monitoring system if deemed to be creating load.
In case your backups fail to be saved on the remote location, we recommend that you download them locally and then upload them to the new destination.

How to Leverage Browser Caching

How to Leverage Browser Caching

Add these rules to your .htaccess file in order to reduce the load times of web pages by storing commonly used files from your website on your visitors browser.

Redsys Payment Gateway support

Redsys Payment Gateway support

Redsys is a popular payment gateway. It has extensions for many e-commerce solutions like WooCommerce, PrestaShop, Magento, etc.
Currently it does not support the Let's Encrypt Certificate Authority and SNI. However, we support other options for the successful usage of the Redsys payment gateway.
First, the communication between the website and the Redsys payment gateway can be managed over HTTP (without an SSL certificate). Another option is to purchase a Wildcard SSL or an EV SSL certificate from the User Area->Add Services section. It comes with a dedicated IP and is issued by Globalsign. A dedicated IP will also be assigned to your account if you order the installation of an external SSL certificate in case you already have one.

EBook for wordpress

In the free ebook "21 Expert Tips to an Ultra-Fast WordPress Site" you will find 21 tips to help you make your WordPress site fly, among which:

1. Identify and prioritize speed blockers

2. Optimise page size and content for faster loading

3. Optimise the usage of fonts, themes and plugins

4. Adopt caching and other great technologies

5. Take advantage of server software and hosting







Recommended WordPress Plugins

Recommended WordPress Plugins

We recommend the plugins listed below based on their overall usage and performance.

Yoast SEO

Yoast SEO is the number one SEO plugin for your WordPress website. It handles everything you need for a quality on-page optimization. Furthermore, you get an instant SEO score for each post or page you create. It supports other major WordPress plugins such as WooCommerce for example.


BackupBuddy

BackupBuddy is a premium WordPress plugin that provides you a stable and easy way to backup and transfer your sites with multiple options to store your archives including Dropbox, Amazon, etc.


FooBox Media Lightbox

This plugin creates a fully responsive image, video and HTML lightbox with built-in social sharing and slideshow functionality. FooBox now gives custom 20% discount to SiteGround clients and visitors!




Akismet

Akismet stops the spam messages in your blog comments. Any messages recognized as blog spam get recorded in the Akismet web service and blogs all over the world become immune against it.




Jetpack

This is a comprehensive plugin that contains a wide range of features: notifications in your toolbar, connect site to social networks and automatically share, view concise stats, allow subscriptions to your posts to receive notifications, share content with Facebook, Twitter and more.




Contact Form 7

With Contact Form 7 you can easily create instant drop in forms for the visitors of your WordPress blog. This way you will be able to stay in touch with them without providing your email address. Your readers can contact you any time and your email remains spam-free.




WP Security Audit Log

This plugin enables you to keep track of all the WordPress users activity and everything else that is happening under the hood of your WordPress to ensure user productivity and to help you identify WordPress security issues before they become a security problem. With WP Security Audit Log you can also configure specific monitoring rules so when a specific change happens you are instantly alerted via email of such change.







Remove WordPress user bar

How to Remove WordPress User Bar

Learn how to hide the WordPress user bar from your site

In WordPress 3.1 and later versions there is a brand new feature - the admin bar.
It allows you to perform administrative tasks to your blog while browsing through its front end.
Of course it requires from you to be logged in with an username that has admin privileges.
There are many people, however, that would like to disable this feature.
Mainly because it moves your entire website with about half an inch down and creates conflicts with some themes.
Although, this admin bar can be disabled by adding a filter in your functions.php file, the easiest and cleanest way to do this is through the WordPress user configuration page.
Login with your account and then navigate to Users -> Users menu in your left column. Once on this page, hover over the selected user and click on the Edit button that appears.
On the next page, simply remove the "Show Admin Bar when viewing site" check and save the settings. The Admin bar will no longer be displayed on the front end of your blog.

Hide specific category

How To Hide a WordPress Category Posts?

Sometimes, when you display certain posts on your WordPress powered site you may need to hide speciffic categories from posts pages. This is needed because categories are often used as system "markers" in site's structure.
To do this, enter the following lines above the Loop (check out this tutorial for more information on What is The Loop):
<?php if (is_front_page() && !is_paged() 
) $posts = query_posts($query_string . '&cat=-33,-66'); ?>
This prevents posts from categories 33 and 66 from appearing in the list of posts.

Display random comment

How to display a random comment from a post?

If you want to include a random comment from one of your posts you can use the following code in your theme:
<?php $post_id = 33;
// Put the 'testimonials' id here
$comments = get_comments("post_id=$post_id&status=approve");
if ($comments) { $ndx = mt_rand(1,sizeof($comments)) - 1;
$comment = $comments[$ndx]; }?>
<p>
<?php echo $comment->comment_content; ?>
</p>
<p>
<?php echo $comment->comment_author; ?>
</p>
Replace "33" with the post ID you want to get your comments from. Such technique is often used to get comments from post that asks for feedback for example.