Open All External Links in New Window and/or Add noreferrer noopener, 9. Back in the day, you needed to use a third-party plugin or manually add code snippets to your website’s header. By default, they are only available for posts. For example, I don’t see the reason why commenting should be enabled by default. Upon activation, go to WPForms » Addons page to download and activate the post submissions addon. Sometimes you may need to make a navigation menu link open in a new window. Your username and password remain the same but everything else is removed. Disclosure: CollectiveRay is funded personally out of a pure passion for helping people working with websites. The above code snippets make it so that PHP scripts can run for up to 300 seconds. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s). If you have multiple administrators on your site, it is a good idea to disable this feature. Some hosts don't follow this so make sure to refer to your host’s manual for more info if you can’t find a folder named public_html). Go to Twitter Widgets>> click the button ‘create new’ >> click the ‘search’ tab. The files are called “XXX-error.html” and since there’s no path, this assumes that these files are in the root directory of the website. However, if for some unfortunate reason you are unable to log in to your dashboard, you can deactivate all plugins via FTP or CPanel, File Manager Access. Simply fill this out and this information will be displayed in the author metadata of the current post. If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. Step 3: Find public_html and click it (by default this is where your website’s file resides. Organizing the Admin Menu. Wikipedia defines a programming hack as "an inelegant but effective solution to a computing problem". Try going to yourwebsite.com/wp-includes/js/jquery/. Click on the menu item to expand it, and you will see the option to open link in a new tab. There are many tools to compress your images without losing quality (or at worst, very little loss that's not even noticeable). Simply install the plugin and follow the on-screen instructions. This WordPress.com site is the bee's knees. We recommend creating a new folder called “icons” in your root WordPress installation and uploading all your custom icons there. These are small changes in the code which you can quickly achieve yourself without risking breaking your website or your WordPress template ;-), Need help getting stuff done? Thank you so much for this wonderful post. Why do we call these tricks or hacks? To open all external links in a new window, or add a noreferrer and noopener attribute to all external links, all you need to do is to install a plugin called WP External Links. To do that, go to Site Kit  > Settings > Connect More Services tab and then setup tag manager. 7 WordPress tricks and hacks to use on every site. You now have a simple related posts functionality on your theme. First you need to create a new page in WordPress, and you can name this page home. Now upload all the header images that you want to use and then click on the ‘Randomize header images’ button. To begin with, one of the first WordPress tips I want to cover. After that, try creating a new post or page and you’ll see your custom template available for selection. Some people think it’s a security liability to which our answer is to keep WordPress updated. Track file downloads using Google Analytics and Google Tag Manager, 71. For more detailed instructions, see our tutorial on how to show total number of registered users in WordPress. You will need the pro version of the plugin to access the post submission addon. To add an alt tag to an image via the Block Editor, click the image and then on the sidebar, go to the Block tab and under image settings, you can find the setting for alt attribute and under that, in the advanced, you can find the setting for the image title. Normally when users leave a comment on your website, they will have to manually visit the same article again to see if you or other users replied to comments. Join our team: We are Hiring! After installing and activating that plugin, you can access it via Tools > Sweep. You may have noticed that many WordPress sites use category in their post URLs. Log in to phpMyAdmin, select the WordPress database you want to backup. Install Google Analytics in WordPress If the page looks like the one below, then you'll want to disable directory browsing. First, you need to install and activate the Advanced Random Posts Widget plugin. DELETE FROM wp_comments WHERE comment_type = 'pingback'; Spammers used to submit tons of HTML links while commenting, which can have a negative impact in bringing organic traffic to your website. Here’s an example custom CSS that you can add to your theme. require_once( ABSPATH . For more on this topic, see our article on basics of Inspect element and customizing WordPress as DIY user. Then, you have to add a function in your theme’s functions.php file for the custom CSS file to load: Don’t forget to replace PATH_TO_YOUR_CUSTOM_CSS_FILE with the actual path of your CSS file. This will launch the WordPress theme customizer, and you will see your website’s preview in the right panel. As a result, when you do this on an existing WordPress installation, while your old images will still work properly in your posts/pages, they won’t appear properly in the media library. Start any application, say Word. With some creative tweaking you can create quite a lot of flexibility. Add Guest Author to WordPress without Registration, 67. Make sure the files are placed in the root, not in a folder! To fix this, head over to Settings » Reading page and scroll down to ‘For each article in a feed, show’ option. You can easily add icons to your navigation menu using the Menu Icons plugin developed by ThemeIsle. In this category, we share simple yet actionable WordPress tips and tricks.You can learn how to work wisely with the WordPress platform and make the best out of the WordPress blog/ business.. Major WordPress hacks we cover in WPAll are technical tips, website performance tips, design tricks, security tips, UX/ UI basics and ideas, SEO and CRO tips etc. You can then set how many top-level comments are displayed before subsequent ones are put into the next page, their display order, etc. For maintenance purposes, you might want to get the list of active plugins on a specific WordPress install. Great set of tips! Aside March 8, 2014 KD Leave a comment. Depending on your theme, you might need to add custom styling to the .more-link class to fix how it looks. Now go to Settings » Reading page in your WordPress admin and under ‘Front page displays’ option and switch to ‘A static page’. You can change the second parameter to whatever value you wish followed by “M” which stands for megabytes. In the new Gutenberg editor, you have to click the Publish button twice to publish your post. List All Authors of Your Blog in a Page, 65. WordPress admin directory is where you perform all administrative tasks on your website. The easiest way is by using a plugin called Username Changer. With this WordPress trick, you can easily add additional contact fields here such as Facebook, Twitter, etc. To display these new contact info, you need to add this code snippet to your theme’s author.php file: The above will return the user’s Twitter contact info. Then find the
and directly under it, you can add your promotional content such as newsletter signup form, ads, and others. The plugin Limit Login Attempts Reloaded is written specifically to protect against such attacks. Save the menu and see your home menu item now sporting a custom icon beside it. When your browser prompts you to download the backup, click yes. In the classic editor, however, there’s no such thing. While you can do this manually, there is a plugin that makes it easier: Better Search and Replace. Author(s) Featured On:                  and many more ... CollectiveRay is a website that helps companies who use their website as a primary channel for the success of their business. You can then review, edit and publish them. Don’t forget to join us on Twitter for more WordPress tips and tutorials. Broken links can hurt your website’s SEO (Google sees them as neglectful), besides the fact that they are a negative user experience. If you do not want to mess with code, then see our guide on how to customize WordPress excerpts (no coding required). This WordPress tip cleans your admin dashboard from unnecessary clutter. If you wish to display a list of your most commented posts anywhere on your site, all you need to do is to add the following code snippet to your theme’s function.php file: Once you’ve added the code snippet and saved the file, you can now use the shortcode: ...anywhere on your site and the list of the top 10 (or whatever value you set to posts_per_page) most commented posts will be displayed. Next, you will need to create another page and let’s call this page blog as you will use it to display your blog posts. This effect makes all the information on the blog look new, … Add the following code snippets to your theme’s functions.php file to remove these items from the dashboard. If you'd like to get more of these, we have a whole list here under WordPress > Tips and Tricks. WordPress Custom Fields 101: Tips, Tricks, and Hacks by Adity Brahmachary bera September 28, 2017, 14:28 Custom fields in WordPress help in adding information to a specific post or page. To do that, add the following code snippet to your theme’s functions.php file: The above code snippet will add fields for Twitter and Facebook. Now upload the file you created earlier to your theme folder. If you want to allow users to register on your site, here is how you would turn on that feature. If you have that all set up and the only thing you need to do to set it up for your website, then here’s what you need to do: Go to Settings > General and then update your URL to use the https protocol. We have a full article specifically about WordPress HTTPS here. The plugin is highly configurable. Step 6: Create a combination of username and password to protect your wp-admin. To learn more on how WordPress will handle subcategories and multiple categories, see our guide on how to include category and subcategories in WordPress URLs. This is exciting when you first start your blog, but it becomes very annoying after a short while. You may have noticed the new option that allows users to switch between editors. Now when you try to access your wp-admin directory, you should see an authentication required box like this: For alternate method and more detailed instructions see our guide on how to password protect your WordPress admin directory. By default, when you upload images using the media uploader, WordPress asks you select how you would like to link to an image. You can see the options “help” and “screen” on the top right-hand side of your WordPress dashboard. This will split your browser window, and you will be able to see the HTML and CSS source code of the page. As soon as you add a valid CSS rule, you will be able to see it applied on your website’s live preview pane. You will see a box where you need to type the word “reset” to use the Reset Site button to reset your site. Instead, you can use the following code to dynamically display the current year in your copyright notice. If you are showing full articles in the feed, then all images inside will be displayed. However, it does not include the featured image or post thumbnail in the article. Want to add categories and tags to pages in WordPress? Note: You might need to set up your Google Account’s Optimize ID before proceeding. First, you’ll need an icon, preferably 25px by 25px in dimension, then upload it to your website. To learn how to deal with spam comments, see these tips to combat comment spam in WordPress. This covers a wide range of tips in itself, but finding the right hosting provider … After that you need to remove the code you added to the functions file. Try these top-rated gigs on Fiverr! Copy the entire code and paste it wherever you want it to appear on your WordPress site. From there, you should see the settings for both alt text and title. While many premium themes include custom fonts already, you may still want to add a font of your own, a truly unique one, if you will. For a DIY website owner, these tools can help you preview how a site design would look without actually making the changes for everyone. Simply add /feed to the end of the category URL. 8. If any link, be it external or internal, becomes broken, it will notify you and then allows you to easily edit or remove the said broken link right within the plugin’s dashboard. Select Just Links under the Click section. Like all websites, WordPress sites are hosted on a web server. Any changes you make here will be immediately visible on the page above. You need to visit Settings » Discussion page and then scroll down to ‘Other comment settings’ section. To show the 5 most popular posts according to the comments count, place the below lines in your theme’s sidebar.php file. Sometimes when you test your website with Pingdom Tools or GTMetrix, you’ll see a suggestion to remove query strings. Want to split lengthy posts into pages so that users can easily navigate them without scrolling too much? If you want to change the read more text, all you need to do is to add the following code snippet in your theme’s function.php file: Replace YOUR READ MORE TEXT HERE with your desired read more text. Usually, URLs like this are not cached even with cache-control and this can affect your website’s load time. You can easily delete existing post revisions by installing the plugin called “WP-Sweep”. The plugin works out of the box and there are no settings for you to configure. Finally, we need to style the new content. Install the plugin Breadcrumb NavXT. Return back to the WordPress admin area and edit your home page. Below is what our example will look like in TwentyTwenty theme using a custom home icon of 25px by 25px in size. This will bring down a menu where you need to check the box next to CSS classes option. To run shortcodes in your sidebar text widgets, you need to add this code to your theme’s functions.php file or a site-specific plugin. Now, all you need to do is to put the shortcode [col_ray_adsense] within your posts or pages and your ads will be displayed in its exact location. NOTE: As of WordPress 5.5, lazy loading became part of the core version. To use this plugin, install it, then, go to Tools > WP Reset. Next, you will be asked to select the directories you want to protect. After uploading the image files copy their URLs as you will need them in the next step. To fix this, you will have to move your old media files to the new directory and then update your database to reflect these changes, but that’s a topic for another article. Creating a peel away effect on your blog. If a script runs longer than that default time, PHP terminates it and reports an error. Here’s a simple step by step guide to moving your WordPress site to a new host: Backup your WordPress website’s files. You will see a plain text box where you can add your custom CSS. Usually it picks the featured image of an article. You may have noticed that you can see what files your website has just by going to a certain URL of your website. If you want to display a custom sidebar for individual posts or pages, you can use this plugin called Custom Sidebars. Additionally, if, for some reason, your image wasn’t able to load, the alt text will be displayed instead — allowing visitors to know what an image is supposed to be. If you’re using the classic editor, click the image and then click the pencil icon to open image settings. The great thing about WordPress is that its popularity has led to a large number of tips and tutorials available which can show you how to do lots of stuff, small WordPress tricks that push your website to its maximum potential. If you want to display select few images on different articles and pages, then check out our guide on how to add random header images to your WordPress site. This site is proudly powered by FAST VPS InMotion Servers and given an insane speed thanks to StackPath CDN! Use a Custom Homepage For more details, see our guide on how to display relative dates in WordPress. Some computer tricks and hacks are easier than you think. Tips, tricks and hacks to maximize your time online as a Courier. Simply install and activate the plugin and you will now be able to add custom icons to your menu items. Although WordPress is really powerful CMS there are some annoying things I would like to be deactivated by default. Remove Help and Screen Options from Dashboard, 52. You should now be able to see and activate your child theme when you log in to your WordPress dashboard. increase your computer speed. WordPress has matured significantly over the years, from a humble blog to a CMS that is so flexible that it allows you to create any kind of website today. Click the name of your new database in the left sidebar and then go to the Import tab. To disable it, edit wp-config.php and add the following line of code just before the line saying “That’s all, stop editing! This allows them to add more useful information into a URL which is good for user experience as well as SEO. Then, on the left side of the page, click Tags and then click New. Have you seen how many popular sites like YouTube allow users to like and dislike comments. Shortcodes work out of the box on many widgets, but not all. Once the upload is finished, unpack the files in the root of the public_html (or whatever folder your site lives — check your host for details — but usually it's public_html). Right now, however, if you apply your custom template to a page, the page will display nothing because there’s nothing in our template file. 'wp-settings.php' ); [featuredbox]Your Featured Content Goes Here[/featuredbox]. Number 24 is exactly what I have been looking for, for the last 2 weeks! Thankfully, disabling directory browsing is very simple. WordPress will add page break at this point and rest of the post will appear on the next page. If you want to redirect users to a custom page after registering to your website, you can use the following code snippet (add this to your theme’s functions.php file): Where custom-page is your custom page url. Mainly, because pages are supposed to be static standalone content (see difference between posts and pages in WordPress). Add Social Profile Information on the User Profile Page, 64. You can now visit Settings » Discussion page, and you will notice your custom default avatar added to default avatar choices. Select the container you’ve connected to your WordPress site (make sure the container ID matches). Password Protect WP-Admin or WordPress Front-End, 5. Want to display random header images on your WordPress site? Login to phpMyAdmin and backup your database. WordPress allows you to automatically turn off comments on old articles. This code automatically sets default image linking option to none. The easiest way to update WordPress URLs is by adding this code to your current theme’s functions.php file. In the variable configuration window, put your Tracking ID in the tracking ID field. You can change that and use any page as your site’s homepage.