David Arnado
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Default and hover state in ColorGradientSettingsDropdownHi @anugradewar
Instead of trying to replicate the link color UI, I would recommend adding two custom attributes to your
block.jsonfile: 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.
Forum: Fixing WordPress
In reply to: Problem to be fixedHi mntabg
A critical error is a generic message. We need the actual error to identify the cause. Please enable WordPress debug mode first:
- Connect to your site using FTP or your hosting File Manager.
- Open the
wp-config.phpfile in the WordPress root directory. - Find this line:
define( 'WP_DEBUG', false ); - Replace it with:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );- Save the file and reload the page that shows the error.
Please share the complete error message that appears. If a
wp-content/debug.logfile 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.
Forum: Fixing WordPress
In reply to: Blank space on right side of mobile viewHi 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.
Forum: Localhost Installs
In reply to: moving localhost from Windows to Ubuntu 23.04If you are moving an existing local WordPress site from Windows to Ubuntu, the easiest approach is:
- Install LocalWP on your Ubuntu machine.
- Create a new local site.
- Install a migration plugin such as All-in-One WP Migration and Backup on both sites.
- Export the site from your Windows installation.
- 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/