Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    If you want a quick fix for the issue and know a coding, you can do following changes:

    1. Open the Plugin Editor
      < In the WP Admin area: Navigate to Plugins > Plugin File Editor from the left-hand menu.
    2. 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.
    3. Locate the File to Edit
      In the list of files on the right-hand side, duplicate-post-page-menu-cpt.php
    4. 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 ) {
    5. 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
    6. 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!

    To 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.stl

    We 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.

    It 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.

    As per the JavaScript code you shared, it appears that you are declaring the url variable twice. Can you please remove the line let url = window.location.href; and check if it resolves the issue?

    It 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!

Viewing 6 replies - 1 through 6 (of 6 total)