Deny Access to All .htaccess Files- You can add the following code to your .htaccess file to prevent access to it:-
Category: WordPress
Disable Theme and Plugin Editor in WordPress- To disable it, edit wp-config.php and add the following line of code just before the line saying “That’s all, stop editing! Happy publishing”:-
Open All External Links in New Tab WordPress– 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 add the following code snippet at the end of the theme’s functions.php file:- Next, create a folder called “js” inside
How to Change Excerpt Length WordPress functions.php- You can add the following code in your theme’s functions.php file to change the WordPress excerpt length. Change the number (100) to the desired length. Code to Change Excerpt Length WordPress functions.php-
Code to Create Custom User Roles in WordPress- To do that, add the following lines to your theme’s functions.php file. You can change the various functionality availability by setting the appropriate setting to true or false. You can also change the custom role name by editing the my_custom_role and My Custom Role strings to your preference (the first one, with
WordPress: How to Create Custom User Roles in WordPress?Read More »
1. Big Store Theme Stats: Theme Download Author Features Price Big Store ThemeHunk WooCommerce integration , free extensions freemium (from $149 for a lifetime license) Big Store is an eCommerce WordPress theme specially made for shopping websites. You can create any type of online store website using it. Theme is best suited for Fashion & Clothing store, furniture,
Code to Disable Admin Bar Except for Administrators- Add the following snippet to your theme’s functions.php file to disable access to non-administrator users:-
Code to Change Excerpt Length in WordPress- Add the following code snippet in your theme’s functions.php file:-
Code to Redirect to Maintenance Page Htaccess- let’s say your maintenance page is located at yoursite.com/maintenance.html, then you need to add the following code to your .htaccess file:-
Code to Change “Read More” Text in WordPress- 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.