Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @anugradewar

    Instead of trying to replicate the link color UI, I would recommend adding two custom attributes to your block.json file: one for the default background color and one for the hover background color.

    Then add two color controls to your block inspector, one for each attribute. The standard color controls already integrate with the theme color palette, so users can simply pick the colors when they insert the block.

    This approach is much simpler than trying to reuse the internal link color UI, which isn’t currently exposed as a reusable component.

    Hi mntabg

    A critical error is a generic message. We need the actual error to identify the cause. Please enable WordPress debug mode first:

    1. Connect to your site using FTP or your hosting File Manager.
    2. Open the wp-config.php file in the WordPress root directory.
    3. Find this line:
      define( 'WP_DEBUG', false );
    4. Replace it with:
     define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', true );
    1. Save the file and reload the page that shows the error.

    Please share the complete error message that appears. If a wp-content/debug.log file is created, you can also share the relevant lines from that file.

    Once we have the specific error, we can determine whether it is caused by a plugin, your theme, or something else.

    Hi colhio

    I was able to reproduce the issue in Chrome using responsive mode. The page has horizontal overflow. That’s what causes the blank space on the right.

    As a quick fix, add:

    html {
    overflow-x: hidden;
    }

    If you’re using a block theme, go to Appearance -> Editor ->Styles->Additional CSS (Inside the three dots option). If you’re using a classic theme, add the same CSS under Appearance->Customize-> Additional CSS.

    This fixes the symptom.

    If you are moving an existing local WordPress site from Windows to Ubuntu, the easiest approach is:

    1. Install LocalWP on your Ubuntu machine.
    2. Create a new local site.
    3. Install a migration plugin such as All-in-One WP Migration and Backup on both sites.
    4. Export the site from your Windows installation.
    5. Import the exported file into the new Ubuntu site.

    This is usually much simpler than manually moving the database and files.

    Since you’re using Ubuntu, you could also use a Docker-based local environment. It is more flexible and closer to many production setups. However, it has a steeper learning curve, so I would only recommend it if you want to learn Docker or plan to do development regularly.

    Link for the migration plugin: https://wordpress.org/plugins/all-in-one-wp-migration/

    Link for LocalWP: https://localwp.com/

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