parthbackstagedev
Forum Replies Created
-
Forum: Plugins
In reply to: [Duplicate Post Page Menu & Custom Post Type] Critical Error on WebsiteHi,
If you want a quick fix for the issue and know a coding, you can do following changes:
- Open the Plugin Editor
< In the WP Admin area: Navigate to Plugins > Plugin File Editor from the left-hand menu. - Select the Target Plugin
In the Plugin Editor, locate the dropdown menu at the top right labeled “Select plugin to edit.”
Choose Duplicate Post Page Menu & Custom Post Type from the list and click the “Select” button. - Locate the File to Edit
In the list of files on the right-hand side, duplicate-post-page-menu-cpt.php - Find the Specific Line
Once the file opens in the editor, scroll down to line 144 or use your browser’s search function (usually Ctrl + F or Cmd + F) to locate the line:
if ( tru !== $support && $diff_days >= 2 ) { - Edit the Code
Change tru to true so that the line reads:
if ( true !== $support && $diff_days >= 2 ) {
Reference Screenshot: https://i.imgur.com/ejEHvIr.png - Save the Changes
Scroll to the bottom of the editor and click the “Update File” button.
Confirm the changes have been saved by checking for a success message.
Please note: Editing plugin files directly can break your website if done incorrectly. Ensure you have a full site backup before making changes.
Thanks!Forum: Developing with WordPress
In reply to: File type not allowedTo allow the .stp file extension to be uploaded to a WordPress site, you’ll need to modify the site’s configuration to permit this file type.
You can add following code to the theme’s function file:
function allow_stp_uploads($mime_types) {
// Add .stp file type
$mime_types['stp'] = 'application/octet-stream';
return $mime_types;
}
add_filter('upload_mimes', 'allow_stp_uploads');Note: If you know the specific MIME type for .stp, replace ‘application/octet-stream’ with that MIME type. Possible MIME types include:
application/step
application/x-step
application/vnd.ms-pki.stlForum: Fixing WordPress
In reply to: Failure to show image and css styleWe have reviewed the site and noticed a mix of URLs with both older and newer domain links. To resolve this issue, you should update your URLs throughout the site. If you are using Oxygen Builder, here are some suggested steps:
Update URLs in Oxygen Builder
Go to Oxygen Builder Settings:
1. Navigate to Oxygen: Settings in the WordPress admin dashboard.
2. Use the URL Replacer Tool: Oxygen provides a URL replacement tool to update URLs in your designs.
Look for the URL Replacer tab.
Enter your old domain in the “Old URL” field and the new domain in the “New URL” field.
Click Replace URLs.
3. Verify Changes:
Check if images and styles are loading correctly with the new domain.
After it make sure that you have also updated the site URL:
1. Log in to the WordPress Admin Dashboard:
2. Navigate to Settings > General. Check the WordPress Address (URL) and Site Address (URL). If these are using the old domain, update them to the new domain name.
3. Save changes.
Following these steps will help ensure that all URLs on your site are consistent and up-to-date.Forum: Localhost Installs
In reply to: Using WordPress Multisite locallyIt looks like you’re currently accessing your WordPress site using the default localhost:8080 address. To effectively set up and use a Multisite network locally, it’s recommended to configure virtual hosts. This will allow you to access your site using custom domains, such as customdomain.com or subdomain.customdomain.com, which are essential for a multisite setup.
Forum: Fixing WordPress
In reply to: Uncaught SyntaxError: Identifier ‘url’ has already been declaredAs per the JavaScript code you shared, it appears that you are declaring the
urlvariable twice. Can you please remove the linelet url = window.location.href;and check if it resolves the issue?Forum: Networking WordPress
In reply to: Multisite troubles with creating a new siteIt seems that you have set up a path-based network as /en/. It appears the network site URL is not configured correctly. Can you please try the following steps:
- Access the network site admin and ensure it’s correctly configured for multisite.
- Update the “Site Address (URL)” and “Home” fields in Network Admin to exclude www.
- Clear both server-side caches and your browser cache.
- Use browser tools to identify the source of the redirection issue.
- Review server settings for any www-related redirects.
For further assistance, refer to the following link: WordPress Multisite Administration – .htaccess and mod_rewrite.
Thanks!
- Open the Plugin Editor