Narmeen Mohammed
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Mobile scrolling not workingIt sounds like the issue is specific to the updated version of the “Essentials” theme by Pixfort. Since reverting to an older version resolved the problem, it’s likely a compatibility issue with the latest update. You may want to reach out to the theme developer for assistance or wait for a future update that addresses this issue. In the meantime, sticking with the older version could be a temporary solution.
Forum: Themes and Templates
In reply to: [Sydney] Responsible of hero sliderTo optimize the font size of the title and subtitle in the hero slider area for smartphones, you can apply responsive CSS rules targeting specific screen sizes. Here’s a general approach you can follow:1. Identify the CSS classes or IDs associated with the title and subtitle elements in the hero slider area. This might involve inspecting the HTML structure or referring to the theme or slider documentation.2. Once you have identified the classes or IDs, you can modify the font size using media queries in your CSS. Media queries allow you to apply different styles based on the screen size of the device. For example:
/* Default font size for title and subtitle */ .hero-slider-title { font-size: 24px; } .hero-slider-subtitle { font-size: 16px; } /* Media query for smartphones */ @media screen and (max-width: 767px) { .hero-slider-title { font-size: 18px; } .hero-slider-subtitle { font-size: 14px; } }the above example, the default font sizes for the title and subtitle are set to 24px and 16px, respectively. The media query with
max-width: 767pxtargets screen widths of smartphones. Within this media query, the font sizes for the title and subtitle are adjusted to 18px and 14px, respectively, providing a more optimal size for smaller screens.3. Apply the modified CSS to your website. Depending on your setup, you can either add the CSS code to your theme’s custom CSS section or to a separate custom CSS file. Make sure to follow the appropriate method for your specific website configuration.Remember to adjust the values of the font sizes in the CSS code to your desired sizes. You can experiment with different font sizes until you achieve the desired result.Note that the specific CSS selectors (hero-slider-titleandhero-slider-subtitle) used in the example may differ based on your theme or slider plugin. Make sure to inspect the HTML elements of your hero slider area and adjust the CSS selectors accordingly.Additionally, it’s a good practice to test the changes across different smartphones and screen sizes to ensure the font sizes appear optimized and legible on all devices.I understand that experiencing issues with indexing your website on Google Search Console can be frustrating. Here are a few steps you can take to address the problem:
- Double-Check Your Sitemap: While you mentioned that you believe you have successfully submitted your sitemap, it’s worth double-checking to ensure it was done correctly. In Google Search Console, go to the “Sitemaps” section and confirm that your sitemap URL is listed and there are no errors reported. If there are any errors, fix them and resubmit the sitemap.
- Fetch as Google: In Google Search Console, use the “Fetch as Google” feature to check how Googlebot sees your web pages. Enter the URL of the page that is showing as unknown and fetch it. This will give you more information about how Googlebot interacts with your page and if there are any issues it encounters. Pay attention to any error messages or warnings that may be displayed.
- Check Robots.txt: Ensure that your website’s robots.txt file is not blocking search engines from accessing and indexing your pages. You can find the robots.txt file by typing “yourdomain.com/robots.txt” in the browser’s address bar. Make sure there are no specific rules that may prevent search engines from crawling your site. If you find any issues, modify the file accordingly and resubmit it to Google Search Console.
- Check for Manual Actions: It’s possible that your website has received a manual action from Google, which can affect its indexing. In Google Search Console, navigate to the “Security & Manual Actions” section to see if there are any manual actions reported for your site. If there are, follow the instructions provided to address and resolve them.
- Increase Crawling Frequency: In the “Settings” section of Google Search Console, you can adjust the crawl rate for your website. If you believe Google is not crawling your site frequently enough, you can increase the crawl rate to prompt Googlebot to revisit your pages more often. However, keep in mind that this may consume more of your server resources.
- Be Patient: Sometimes, it can take time for Google to index and display new pages or changes. Even after you have taken the necessary steps, it may still take some time for the status to update and for your pages to appear in search results. Keep monitoring the situation, and if the problem persists for an extended period, consider reaching out to Google Search Console support for further assistance.
Remember that SEO optimizations, such as providing high-quality content and acquiring backlinks from reputable sources, can also help improve the visibility and indexing of your website over time.
Forum: Plugins
In reply to: [WooCommerce] Product Images – Zoom effect Issuechange the theme I advice you to use Kadence theme
Forum: Plugins
In reply to: [WooCommerce] Bug: Status admin widgetyes , U can contact with them and tell them the issue to solve it to you.
- This reply was modified 3 years ago by Narmeen Mohammed.
Forum: Plugins
In reply to: [WooCommerce] Add Sorting Form to Category Shop Loop Pagehello , if you use elementor darg and drop the HTML code or shortcode to write the codes on it
if you use the default editor of WordPress you can also choose the Shortcode and write them on it , so now tell me Which one of the page editors are you using?
Forum: Plugins
In reply to: [WooCommerce] Preventing the Update of the Plugin Language FileYou are most welcome if it fixed reply me 😀
Forum: Plugins
In reply to: [WooCommerce] Critical error on checkoutThe error message you provided indicates that there is an issue with the WooCommerce plugin on your WordPress site. Specifically, it seems to be related to the calculation of cart totals during the checkout process.To troubleshoot and resolve this issue, you can try the following steps:1. Update WooCommerce: Ensure that you are using the latest version of the WooCommerce plugin. If an update is available, go ahead and update it to see if it resolves the issue.2. Check for Plugin Conflicts: Temporarily deactivate all other plugins except WooCommerce and then test the checkout process again. If the error disappears, it suggests that one of the deactivated plugins is causing a conflict. You can then reactivate the plugins one by one to identify the problematic one.3. Switch to a Default Theme: Temporarily switch to a default WordPress theme (e.g., Twenty Twenty-One) and test the checkout process. If the error is resolved, it indicates a theme-related issue. In that case, you may need to contact the theme developer for further assistance.4. Enable WP_DEBUG: Enable WP_DEBUG mode in your WordPress installation to get more detailed error messages. To do this, open your
wp-config.phpfile and set theWP_DEBUGconstant totrue. This can help provide additional information about the error and assist in troubleshooting.5. Reach Out to Support: If the issue persists after trying the above steps, it’s recommended to contact the WooCommerce support team or the developers of the WooCommerce Wallet plugin. Provide them with the error message you received and any additional relevant details. They should be able to provide more specific guidance and assistance in resolving the issue.Remember to create a backup of your site before making any significant changes or updates to avoid any potential data loss.Forum: Plugins
In reply to: [WooCommerce] WooCommerce Shipping method -> pickup -> remove prepaymentTo remove other payment methods when the customer selects the “pickup” shipping method in WooCommerce, you can use the
woocommerce_available_payment_gatewaysfilter in your theme’sfunctions.phpfile or in a custom plugin. Here’s an example:function remove_payment_methods_for_pickup($available_gateways) { // Check if the customer has selected the "pickup" shipping method if (WC()->session->get('chosen_shipping_methods')[0] === 'pickup') { // Remove all other payment methods except for "Prepayment" unset($available_gateways['bacs']); // Replace 'bacs' with the desired payment method slug unset($available_gateways['cheque']); // Replace 'cheque' with the desired payment method slug // Add any other payment methods you want to remove // Optional: Set the default payment method to "Prepayment" WC()->session->set('chosen_payment_method', 'bacs'); // Replace 'bacs' with the desired payment method slug } return $available_gateways; } add_filter('woocommerce_available_payment_gateways', 'remove_payment_methods_for_pickup', 10, 1);In the code above, the
remove_payment_methods_for_pickupfunction checks if the customer has selected the “pickup” shipping method. If so, it removes all other payment methods except for “Prepayment” (in this case, the “bacs” payment method). You can modify the code to match the slugs of your desired payment methods.Optionally, you can set the default payment method to “Prepayment” by using the
WC()->session->set('chosen_payment_method', 'bacs')line. Adjust the slug accordingly.Add this code to your theme’s
functions.phpfile or create a custom plugin for it. Save the changes, and the other payment methods will be hidden when the customer selects the “pickup” shipping method.Please note that the code assumes the payment method slugs and shipping method slugs are as mentioned in the example. Adjust the slugs accordingly based on your actual setup.
The issue you’re facing with WooCommerce analytics, where the product statistics are based on the order date instead of the payment date, can be addressed through custom code. By modifying the query used to retrieve the product statistics, you can ensure that the data is calculated based on the payment date. Here’s an example of how you can modify the query to achieve this:
phpfunction modify_product_statistics_query($query_args) { // Modify the 'date_query' parameter to use 'date_paid' instead of 'date_created' $query_args['date_query'] = array( array( 'column' => 'post_date_gmt', 'after' => 'YYYY-MM-DD', // Replace with your desired start date 'before' => 'YYYY-MM-DD', // Replace with your desired end date 'inclusive' => true, ), 'relation' => 'AND', array( 'column' => 'post_modified_gmt', 'after' => 'YYYY-MM-DD', // Replace with your desired start date 'before' => 'YYYY-MM-DD', // Replace with your desired end date 'inclusive' => true, ), ); return $query_args;}add_filter('woocommerce_analytics_products_query_args', 'modify_product_statistics_query', 10, 1);In the code above, replace
'YYYY-MM-DD'with the desired start and end dates to specify the range for which you want to retrieve the product statistics based on the payment date.Add this code to your theme’sfunctions.phpfile or create a custom plugin for it. Once implemented, it will modify the query used by WooCommerce analytics to calculate the product statistics, ensuring that they are based on the payment date rather than the order date.Please note that modifying the core functionality of WooCommerce can have implications, such as potential conflicts with future updates. It’s recommended to test this solution thoroughly and consider keeping a backup of your site before implementing any changes.Forum: Plugins
In reply to: [WooCommerce] Missing Customer User AccountI understand that you’re experiencing a perplexing issue with disappearing user profiles on your WordPress website. Losing user profiles without any apparent reason can indeed be frustrating. While diagnosing the exact cause of this issue would require further investigation, I can provide you with some potential areas to investigate and steps to take:
- Database Integrity: Ensure that your WordPress database is intact and free from any corruption. You can use plugins like WP-DBManager or phpMyAdmin to optimize and repair your database.
- User Role Changes: Check if there are any processes or plugins on your site that may be inadvertently modifying user roles or deleting user accounts. Review any plugins or custom code that affect user management, such as membership plugins or custom user role management.
- Plugin Compatibility: Even if your plugins are up to date, there may still be conflicts or compatibility issues between different plugins or with your theme. Temporarily deactivate all plugins and switch to a default theme (e.g., Twenty Twenty-One) to see if the issue persists. If not, gradually reactivate plugins one by one to identify the conflicting plugin.
- Error Logs: Check your website’s error logs for any relevant error messages or warnings that might shed light on the disappearing user profiles. You can typically find error logs in your hosting control panel or by accessing the server via FTP.
- User Account Deletion: Confirm if your website provides any means for users to delete their own accounts. Double-check that there are no options or settings that may inadvertently trigger account deletion.
- WordPress Core and Theme: Ensure that your WordPress core files and theme are up to date. Outdated versions can potentially introduce vulnerabilities or compatibility issues.
- Backup Restoration: If you have a backup of your website from before the user profiles started disappearing, you might consider restoring it to a staging environment to see if the issue persists. This can help determine if the problem lies in recent changes or if it’s related to your overall website setup.
If these steps do not resolve the issue or provide any insights, it might be worth consulting with a WordPress developer or support forum specific to your theme or plugins. They can assist you in identifying the root cause and finding a solution tailored to your setup.
Narmeen
Forum: Plugins
In reply to: [WooCommerce] Query wc_admin_notes table everywhereIf you want to stop a specific database query that is being executed on every page of the WordPress Multisite backend, you can use the posts_request filter to modify or prevent the query from running. Here’s an example of how you can achieve this:
<span style="font-size: 12.8px;">function stop_specific_query($request, $query) { global $wpdb; // Modify the condition based on your specific query if (strpos($query->request, 'your_table_name') !== false) { $request = ''; // Empty the query request to prevent it from running } return $request; } add_filter('posts_request', 'stop_specific_query', 10, 2); </span>Forum: Plugins
In reply to: [WooCommerce] Preventing the Update of the Plugin Language FileYes, in WordPress, you can prevent the automatic update of language files (po and mo files) for a plugin by using the auto_update_translation filter. By setting this filter to false for the specific plugin, you can disable the automatic updates for its language files.Here’s an example of how you can achieve this:
function prevent_plugin_language_file_update($update, $plugin, $language) { // Specify the plugin folder name for which you want to prevent language file updates $plugin_folder = 'your-plugin-folder-name'; // Check if the plugin being updated matches the specified folder name if (strpos($plugin, $plugin_folder) !== false) { $update = false; // Disable automatic language file updates for the specified plugin } return $update; } add_filter('auto_update_translation', 'prevent_plugin_language_file_update', 10, 3);In the code above, replace
'your-plugin-folder-name'with the actual folder name of the plugin for which you want to prevent language file updates.You can add this code to your theme’s
functions.phpfile or create a custom plugin for it. Once implemented, the specified plugin’s language files will no longer be automatically updated by WordPress.Forum: Plugins
In reply to: [WooCommerce] Add Sorting Form to Category Shop Loop PageTo add the missing elements (woocommerce-result-count, woocommerce-ordering form, and gridlist toggle) to your custom shop pages created using the [products] shortcode, you can follow these steps:
- Create a new page in WordPress and give it a title (e.g., “Wholesale Shop”).
- In the page editor, switch to the Text/HTML mode to work with the shortcode directly.
- Modify your existing shortcode by adding the missing elements before the [products] shortcode. Here’s an example:
[woocommerce_product_filter_categories] [woocommerce_product_filter] [woocommerce_result_count] [woocommerce_catalog_ordering] [products columns="6" orderby="menu_order" order="ASC" ids="" skus="" posts_per_page="-1" pagination="yes" category="wholesale" show_grid="true" show_list="true"]In the example above, the
[woocommerce_result_count]shortcode adds the product count, and the[woocommerce_catalog_ordering]shortcode adds the sorting options.Note: The
show_grid="true"andshow_list="true"attributes in the[products]shortcode enable the grid and list toggle options.Save or update the page.Now, when you visit the “Wholesale Shop” page, you should see the woocommerce-result-count, woocommerce-ordering form, and gridlist toggle elements displayed above the product loop. Adjust the shortcode and attributes as needed to match your requirements and styling preferences.
Forum: Plugins
In reply to: [WooCommerce] Bug: Status admin widgetIf the sales widget in the admin dashboard of your WordPress/WooCommerce store is displaying net revenue instead of total sales after updating to version 7.7.2, you can try the following steps to revert it back to displaying total sales:1. Install and activate the “Classic Widgets” plugin: – Go to your WordPress admin panel. – Navigate to Plugins -> Add New. – Search for “Classic Widgets” in the search bar. – Install and activate the “Classic Widgets” plugin.2. Enable the Classic Widgets: – Go to Appearance -> Widgets. – Locate the “Dashboard” area on the right-hand side. – Look for the “WooCommerce > Sales” widget. – Drag and drop the “Sales” widget back to the “Dashboard” area.3. Configure the Sales widget: – Click on the “Sales” widget to expand its options. – Make sure the “Display as” option is set to “Number of Sales” or “Orders”. – Save the widget settings.By using the “Classic Widgets” plugin, you can revert to the previous version of the widget and regain the functionality you had before the update. This should display the total number of sales instead of net revenue in the admin dashboard.Please note that the exact steps and interface may vary depending on your specific version of WordPress and the Classic Widgets plugin.