Yash Jawale
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Prevent certain user role from accessing backend adminGreetings!
You can use the following snippet to prevent your custom role from accessing WordPress backend dashboard
You can add the snippet to site using either a custom plugin or using a third party plugin like Code Snippets
function restrict_admin_access_for_custom_role() {
if (is_admin() && !defined('DOING_AJAX') && is_user_logged_in()) {
$user = wp_get_current_user();
if (in_array('YOUR_ROLE', $user->roles)) {
wp_redirect(home_url('/dashboard/')); // this is the link user will be redirected to
exit;
}
}
}
add_action('admin_init', 'restrict_admin_access_for_custom_role');This code gets the currently logged in user & checks against custom role. If it exists, they’ll be redirected to another URL
You’ll need to replace
YOUR_ROLEto the name of role you’ve created. Also replace the route insidewp_redirect()function to point to route you want user to be redirected to.Feel free to follow up for more detailed steps or if facing any issue
Forum: Fixing WordPress
In reply to: Your Site is Experiencing a Technical IssueFrom the logs, seems that
The Events Calendarplugin is running into issue. Causing interruptions to WordPress.For getting access to the site, we’ll need to prevent this plugin from loading.
I suggest you to go to
/home/vicrally/public_html/wp-content/pluginsfolder on the server & renamethe-events-calendarfolder to something else.As soon as you do that you should be able to access your site again.
Forum: Fixing WordPress
In reply to: Your Site is Experiencing a Technical IssueHello!
In case your recovery link was expired you can get a new one just by visiting your website again, WordPress should send a new email with new recovery link.
However, if it isn’t sent, unfortunately you will need access to your website server for rectifying the error.
You can tell the name of the hosting provider you’re using & I can send you instructions for accessing the logs & files.
Any previous email you must’ve got should also contain some more information about the error, you can share that here & we can try to resolve the issue.
Forum: Fixing WordPress
In reply to: How to disable automated WP Core fetchpriority=high application?@ken78 glad to know your issue was resolved!
Thanks for sharing your process on the forum, it might come handy to someone later
Cheers!
Forum: Fixing WordPress
In reply to: Your Site is Experiencing a Technical IssueGreetings!
Since you’ve already tried recovery mode, let’s try fixing the errors by other ways…
1. Checking for modified core files
Let’s try replacing main WordPress files from a fresh copy.
- Download WordPress.
- Unzip and upload only the
wp-adminandwp-includesfolders. DO NOT replace thewp-contentfolder &wp-config.phpfile to avoid loss of data. - Replace the root files like
index.php,wp-load.php - This should resolve issues in most cases.
If the issue still persists, it is likely caused by a plugin or theme. Let’s start by checking plugins.
2. Disable All Plugins
- Manually open FTP or any other method you use for accessing server files
- Rename the
wp-content/pluginsfolder toplugins-disabledor some other name. This will cause WordPress to not recognise any plugins. - If the site starts working again it’s likely caused by a plugin, if not skip the next sub points
- Now rename the plugins folder back to original & repeat the same procedure for individual plugin folders inside the
pluginsfolder - Once you find the defective plugin, replace its folder with a fresh copy & the site should be fixed.
If renaming
pluginsfolder didn’t work, we can check if the issue was caused by a theme3. Faulty Theme Files
- Open
wp-content/themesand rename the active theme folder. - WordPress will revert to a default theme since it can’t find the installed theme
- If this works, the theme had incorrect files
- Replacing the current theme folder will solve the issue
If the issue still isn’t resolved, we’ll need to know more about the error. Open
wp-config.phpfile and add the followingdefine( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );This will cause the actual errors to show up on site & then we can debug those next
Feel free to follow up if any of the above steps aren’t clear or the issue still isn’t resolved
Forum: Fixing WordPress
In reply to: How do I actually use a plugin after installation and activation?Sorry to hear you aren’t having the best time with WordPress…
Unfortunately, most WordPress blocks don’t work with Elementor as its a completely different website editing system
I won’t recommend using Animate It! plugin as it seems that it isn’t under active maintainence from a few years
If you want to build your site using Elementor, their Heading widget does have some built in entry animations (under advanced options)

For more controls, there’s another Animated Headling Widget but it seems to be behind a paywall

The Animated Text plugin you were using earlier does seem to support exit animations but it won’t work with Elementor (will only work with default WordPress Gutenberg editor)
Forum: Fixing WordPress
In reply to: How to disable automated WP Core fetchpriority=high application?Greetings!
Since you cannot edit your theme’sfunction.phpfile, a new plugin might help in this caseThere are a few approaches available for the same
Option 1: Creating a plugin from Dashboard (Only available on WordPress Business+ plan)
- Go to Plugins -> Add New
Click “Create a new plugin” (In Jetpack plugin manager) - Give it any name (Preferably something like
disable-fetchprioritythat describes it purpose so it can be easily identified later) - Paste the following code in it
<?php
/*
Plugin Name: Disable Fetchpriority High
Description: Removes automatic fetchpriority="high" from images.
Version: 1.0
*/
add_filter( 'wp_get_loading_optimization_attributes', function( $attributes, $context ) {
if ( isset( $attributes['fetchpriority'] ) && $attributes['fetchpriority'] === 'high' ) {
unset( $attributes['fetchpriority'] );
}
return $attributes;
}, 10, 2 );This code creates a plugin called
Disable Fetchpriority High, if activated will removefetchpriorityattribute on whole site.This is achieved using
wp_get_loading_optimization_attributesfilter where we remove the value offetchpriorityattribute while not modifying the othersOption 2: Using a third party plugin to insert PHP snippet
If creating a new plugin isn’t possible, use a third party plugin like Code Snippets to insert the same snippet without plugin header as follows:
add_filter( 'wp_get_loading_optimization_attributes', function( $attributes, $context ) {
if ( isset( $attributes['fetchpriority'] ) && $attributes['fetchpriority'] === 'high' ) {
unset( $attributes['fetchpriority'] );
}
return $attributes;
}, 10, 2 );For that particular plugin, choose the snippet to run only on site front-end & then click “Save Changes & Activate” button

Feel free to follow up if facing any issues or the issue still isn’t resolved
Forum: Fixing WordPress
In reply to: How do I actually use a plugin after installation and activation?Unfortunately, the process for uploading images on this forum is more involved.
Instead, I would suggest going to imgur.com & uploading the image there, then share its link on this forum (You don’t need to login or create an account there)
Forum: Fixing WordPress
In reply to: How do I actually use a plugin after installation and activation?No worries!
Starting out with WordPress can seem daunting at first but it gets easier with time.For adding animated text to any page, follow these instructions:
- Open your website & go to the page where you want to add animated text
- Even when viewing website pages, the top WordPress bar (usually in grey) will still be visible as you’re already logged in.
- Then click
Edit PageorEdit Postbutton (only one of them will be visible) from the top grey bar

3. Clicking the above button will open a editor like below (This page is called the Gutenberg editor or the Site editor)

4. Now, wherever you want to insert animated text, take the mouse cursor over there, either by clicking on some text & then pressing
Enterkey. Or when you hover your cursor between two sections for some time, a blue line with a+button should appear. More info here5. After doing any of the above step, a list of blocks should appear (like heading, paragraph, image, etc). A WordPress page is built by using these “blocks”. You can use the search box to search for Animated Text block

6. After clicking the icon of Animated text the block should appear and its settings will be available on the right side

7. Click the blue
Savebutton on top right after everything looks right & animated text will be visible on the website pageLet me know if any of the above steps are unclear or facing some other issue
Forum: Fixing WordPress
In reply to: How do I actually use a plugin after installation and activation?Greetings @pilar101 !
For your specific plugin, according to instructions on the extension page, a new block called Animated Text should appear in the post edit screen (also called Gutenberg Editor). You can use the search box for finding the same.After you select the block, you should see it in the UI & whenever you click on the block, you can tweak the settings for that blog via the panel on the right side of the screen.
(You can also type
/character in post editor & then type to search block name, pressing Enter key to insert)
For any other plugins, their usage can vary upon the purpose of the plugin. Some plugins add their own section on the Admin dashboard, while some just add a new block (in this case the Animated blocks plugin)
It is best to refer the plugin instructions from the extension page or their website.
Hope this helps in solving your problem, feel free to reply with follow ups or if your issue still isn’t resolved.