parthbackstagedev
Forum Replies Created
-
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
url
variable 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!