faridjc
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Retrieving command being executed by WP-CLIHello there!
I’m trying to prevent a function from continue its execution if the current request comes from WP-CLI and the command is neither “plugin list” or “plugin update”
I came up with this solution, it could be cleaner, but it works:
if ( defined( 'WP_CLI' ) ) { $args = $GLOBALS['argv'] ?? array(); $exit = true; foreach ( $args as $i => $argument ) { if ( 'plugin' === $argument && ( 'list' === $args[ $i + 1 ] || 'update' === $args[ $i + 1 ] ) ) { $exit = false; break; } } if ( $exit ) { return; } }
- This reply was modified 1 year, 1 month ago by faridjc.
Forum: Plugins
In reply to: [WP Activity Log] Fatal error when using user switchingHello Robert, thanks for your reply. Yes, that’s the one.
Forum: Fixing WordPress
In reply to: add code to existing wordpress pageI think you could achieve that by creating a WordPress page called ‘redirect’ and then creating a function that adds your code to that page.
The following functions will be helpful:
Hope that is helpful to you.
Best regards,
Farid.Forum: Fixing WordPress
In reply to: add code to existing wordpress pageHello there!
Can you be more specific about your goal here? There might be a cleaner way to achieve what you’re trying than adding all that code.
WordPress editor allows you to add custom HTML code to a page, but I can see you also have PHP and Javascript code there and even trying to retrieve some data from URL. Please let us know more about what you’re going for.
Best regards,
Farid.Forum: Fixing WordPress
In reply to: WPForm field input not workingHello there!
Seems like a
position: static;
on ff755.css:16 is causing this. Try this CSS:div.wpforms-container-full, div.wpforms-container-full .wpforms-form * { position: relative; }
I tried on Chrome and it solved the issue.
Best regards,
Farid.Forum: Fixing WordPress
In reply to: (1) Can’t Upload Media; (2) Favicon ProblemHello there Mickey!
Your /wp-content/uploads/ directory needs to have 755 permissions. You can do that using your FTP client or via shell executing this command from within the uploads folder:
chmod -R 755 *
Here’s the official documentation on changing your file permissions.
After you solve that issue you should be able to change your favicon with no problem.
Best regards,
Farid.- This reply was modified 2 years, 4 months ago by faridjc. Reason: forgot to mention about favicon
Forum: Fixing WordPress
In reply to: How to create astra child themeHello there!
Here’s the official documentation on how to create a child theme.
If I understand correctly you’ve already made some customization (changes on the theme files) directly on your theme. In that case you would have to move those customization to your child theme after creating it so you can upload it and keep the work you did.
Best regards,
Farid.Forum: Fixing WordPress
In reply to: Can’t link youtube using embed block via httpsHello! I was checking the headers of your website and I was able to replicate the issue and narrow it down to this header:
cross-origin-embedder-policy: require-corp
Here’s a screenshot of the header as it looks on your website using Chrome inspector tool. If you remove that header, the embed should work.
Check your htaccess file for that header and remove it, if that doesn’t work maybe a plugin is overriding your headers, try deactivating all plugins and see if the issue is solved, then try activating them one by one to find the one causing the issue.
Best regards,
Farid.Forum: Fixing WordPress
In reply to: conflicting between elementor and woocommerceHello! Have you tried all the troubleshooting steps from their support page?
- Read our documentation and check our FAQ.
Make sure your server’s PHP version is above 5.4, although above 7.0 is ideal.- Make sure you are using the most updated versions of Elementor, WordPress & your theme.
- Deactivate all your plugins besides Elementor (and Elementor Pro). If this solves the problem, gradually activate your plugins one by one, until you spot the problematic plugin.
- If you have a caching plugin, make sure you deactivate it, or even better – purge the cache.
- Change your WordPress theme (temporarily) to WordPress Twenty Nineteen (or other default WordPress theme).
- On your WordPress root folder, edit the wp-config.php and set the value of WP-DEBUG to true.
- Ask in The Elementor Community
- Under Elementor > Settings > Advanced switch editor loader method on
- If you cannot load Elementor, see this guide
If so, at the end of the page they suggest how to contact their Customer Experience support team.
Another good and more accurate place to look for answers and ask for support about Elementor is their plugin support forum. If you don’t find your solution on any of the troubleshooting steps I’d suggest going into the specific plugin forum since you can get more detailed support from experts.
Best regards,
Farid.Forum: Fixing WordPress
In reply to: Scrolling performanceHello there!
Here’s an article that suggests a solution that involves editing your theme’s header.php and functions.php: https://www.webprotime.com/improve-scroll-performance-passive-event-listeners/. Try that and check PageSpeed Insights again to see if the issue is solved.
Also here’s WordPress support page about how to edit your theme’s files.
Best regards,
FaridForum: Fixing WordPress
In reply to: サイトの管理画面にログインできない。Hello there!
Here’s a support page from your hosting provider that addresses that particular issue: https://www.xserver.ne.jp/support/faq/faq_service_hp_wp.php.
Best regards,
Farid.Forum: Fixing WordPress
In reply to: conflicting between elementor and woocommerceHi there! Have you tried activating Elementor Safe Mode?
Here is how to do it from their support page: https://elementor.com/help/what-is-safe-mode/.
I’d suggest you also check their system requirements and their troubleshooting page, the solution to your issue might be in those pages.
Best regards,
Farid.
Forum: Fixing WordPress
In reply to: Can’t link youtube using embed block via httpsDid u mean use the “embedded-block” then key in https://www.youtube.com/embed/FSRfErM4Aw8 ?
Yes, this is what I tried locally and worked just fine. What version of WordPress do you have?
Another thing you could try is adding a Custom HTML block and paste the embed code provided by YouTube:
<iframe width="560" height="315" src="https://www.youtube.com/embed/FSRfErM4Aw8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
I also tried this locally and works fine. Let me know if it works for you.
Forum: Fixing WordPress
In reply to: Custom HTMLIt now works fine on my side (Chrome / Android).
Good job there!
Forum: Fixing WordPress
In reply to: Custom HTMLHello there! I’m happy to help.
I can see the button, and it’s not working for me on desktop (Chrome 102 / Windows). Check the CSS code of the site you added this snippet from, it might me missing some lines.
When I click the button, it adds a “show” class, but a “display:none” property remains, hence the search doesn’t show. Here’s a screenshot of the issue: https://snipboard.io/DoLN49.jpg.
I’m not sure if this is the issue you’re reporting since you mentioned that your issue was about responsiveness on mobile users. Please let us know if this is the issue and check your CSS for missing code.
Best regards,
Farid.