Harsh Gajipara
Forum Replies Created
-
Forum: Everything else WordPress
In reply to: Im looking for specific plugin (free or pro) Can you help?Hi @hesterfu,
To handle a subscription model like the one you described, you can use WooCommerce along with specific plugins tailored for subscription-based services. Here are a couple of options that might suit your needs:- WooCommerce Subscriptions: This is the official WooCommerce extension for handling subscriptions. It allows you to create products with recurring payments. It might need some customization to fit your exact first-year-free and subsequent-year-paid model, but it provides a robust subscription framework.
- YITH WooCommerce Subscription: YITH offers a subscription plugin that integrates well with WooCommerce. It allows for recurring payments and might offer more flexibility in terms of subscription models and pricing structures.
- WooCommerce All Products for Subscriptions: This plugin lets you create subscriptions for existing products in your WooCommerce shop. It might be useful if you have an established store and want to add subscription functionality to some or all of your products.
You can check its feature and pricing according to the requirement and choose one which fits you best.
Thanks!Hi @brentrambo,
Can you try replacing following code snippet if it works for you? It works for me.function custom_excerpt_length($length) { return 144; // Change 20 to your desired excerpt length in words } // Filter the excerpt output function custom_excerpt_more($more) { return '...'; } add_filter('excerpt_more', 'custom_excerpt_more'); function custom_end_excerpt($excerpt) { if (has_excerpt() && strpos($excerpt, '</') !== false) { $excerpt = substr($excerpt, 0, strrpos($excerpt, '</')); } return $excerpt; } add_filter('excerpt_length', 'custom_excerpt_length'); add_filter('wp_trim_excerpt', 'custom_end_excerpt');
Thanks!
Forum: Developing with WordPress
In reply to: creating a header block pattern with hamburger menuHi @mariailyas,
You can copy ready made patterns from wordpress pattern directory and make desired changes as per requirement.
Pattern directory: https://www.ads-software.com/patterns/search/header/
Thanks!Forum: Fixing WordPress
In reply to: medya yükleme hatas?Hi @taylankapucu,
PHP bellek s?n?r?n? ve yürütme süresini php.ini dosyan?zda art?rmay? veya i?e yararsa bu sat?rlar? wp-config.php dosyan?za eklemeyi deneyebilirsiniz.php define('WP_MEMORY_LIMIT', '256M'); define('WP_MAX_MEMORY_LIMIT', '512M'); set_time_limit(300);
Te?ekkürler!
Forum: Developing with WordPress
In reply to: WordPress CLI Command AssistanceHi @development14,
To delete specific images and their metadata from certain folders in the wp-uploads directory using WP-CLI, you can use a combination of WP-CLI commands with Unix commands. WP-CLI doesn’t have a built-in command specifically for deleting media files by directory or folder, so we’ll need to use a workaround.
Here’s an example command you can use:cd /path/to/your/wordpress/installation/wp-content/uploads # Delete images and metadata in wp-uploads/2021/05 wp media delete $(wp media list --field=ID --path=2021/05) # Delete images and metadata in wp-uploads/2021/06 wp media delete $(wp media list --field=ID --path=2021/06) # Delete images and metadata in wp-uploads/2021/07 wp media delete $(wp media list --field=ID --path=2021/07)
Make sure to replace /path/to/your/wordpress/installation/ with the actual path to your WordPress installation directory.
Thanks!
Forum: Developing with WordPress
In reply to: How can I separate categories when writing a new article?Hi @omarbaradia,
In WordPress, the default behavior is to display all categories and subcategories when assigning a category to a post. However, you can use JavaScript or jQuery to modify the admin category selection interface to achieve what you’re looking for.WordPress provides hooks and actions to enqueue scripts and styles in the admin area. You can use these to include your JavaScript/jQuery file.
jQuery(document).ready(function($) { // Hide all subcategories initially $('#categorychecklist input[type="checkbox"]').each(function() { if ($(this).parent().hasClass('children')) { $(this).hide(); } }); // Show subcategories when a main category is selected $('#categorychecklist input[type="checkbox"]').change(function() { if ($(this).parent().hasClass('category')) { var mainCatID = $(this).val(); $('input[type="checkbox"][value^="' + mainCatID + '"]').show(); } }); });
Paste the provided code in a
.js
file (e.g.,hide-subcategories.js
).Add the following code in your theme’s
functions.php
filefunction enqueue_hide_subcategories_script() { wp_enqueue_script('hide-subcategories', get_template_directory_uri() . '/js/hide-subcategories.js', array('jquery'), '1.0', true); } add_action('admin_enqueue_scripts', 'enqueue_hide_subcategories_script');
Please replace
'get_template_directory_uri() . '/js/hide-subcategories.js'
with the actual path to your JavaScript file if it’s in a different directory.Forum: Fixing WordPress
In reply to: Who is the genius at WordPress that ruined menus?Hi @mrbrodie94,
Well it seems you are looking to add a navigation menu in your site header. In new block theme introduced by wordpress, there is different method of adding a menu. As you mentioned when you edit the header, you can add a block named as “Navigation” which will allow to add menus. After selecting navigation block, there are setting configuration available in the right sidebar using which you can configure desired menu and items. You can find more details in theme documentation and/or video tutorials.
Thanks!Forum: Everything else WordPress
In reply to: Page with user storiesHi @jakobhc,
Creating a platform for user-submitted stories on WordPress is very feasible, and you have a few options to consider based on your requirements.If you prefer a simpler submission process where users input their stories and details with minimal interaction, using WordPress posts with custom fields might be more straightforward. However, if you envision a more interactive community where users can engage in discussions about the stories, a forum could be beneficial.
For a user-friendly approach, plugins like Gravity Forms or WPForms can help create submission forms with various field types. You can then display these submissions using a custom template for your custom post type or use plugins to customize the display.
Thanks!
Forum: Developing with WordPress
In reply to: Login and My Accountfunction header_icon_shortcode() { if ( is_user_logged_in() ) { $my_account_link = get_permalink( get_option('woocommerce_myaccount_page_id') ); // Adjust this according to your setup $icon_link = esc_url( $my_account_link ); $icon_alt = 'My Account'; } else { $login_link = wp_login_url( get_permalink() ); $icon_link = esc_url( $login_link ); $icon_alt = 'Login'; } // Replace 'path_to_your_icon_image.png' with your actual icon image path $icon_image = '<img src="path_to_your_icon_image.png" alt="' . esc_attr( $icon_alt ) . '">'; return '<a href="' . $icon_link . '">' . $icon_image . '</a>'; } add_shortcode( 'custom_header_icon', 'header_icon_shortcode' );
Hi there,
You can add this code to your theme’s functions.php file with neccesary updates mentioned. And replace the icon widget with this shortcode [custom_header_icon].
Thanks!Forum: Fixing WordPress
In reply to: All pages (except homepage) stopped working overnightHi @maartenwiersma,
It seems issue is related to QSM plugin. if you have disabled the plugin and issue still persists, try clearing cache if any caching plugin is already installed in site. if not then clear cache from server configurations. or you can also retrieve the database backup of the last working time before issue arised.
Thanks!Forum: Developing with WordPress
In reply to: Creating customised reportsHi @josen96 ,
You can check and test features of this plugin if that works.
https://www.ads-software.com/plugins/epoll-wp-voting/
Thanks!Hi @wpbie ,
Yes there are several plugins to customize post url. Here is the plugin which you can use for same.
https://www.ads-software.com/plugins/permalink-manager/
Thanks!Forum: Fixing WordPress
In reply to: Homepage not displayingHi @ltempest,
you can set homepage to display on root url using setting available in wordpress admin area under Settings > Reading. Screenshot attached for reference.
https://prnt.sc/vHgBvD8OP79s
Thanks!Forum: Developing with WordPress
In reply to: Moving from Shopify to Woocommerce – some questions!It’s great to hear that you’re considering migrating to WooCommerce to address the limitations you’ve encountered with your Shopify store. WooCommerce is a powerful e-commerce platform that offers a high degree of flexibility and customization. Here are some insights and recommendations for achieving your goals:
- International Sales and Currency Handling:
- WooCommerce does have several plugins available for currency conversion and localization. Popular options include “WooCommerce Multilingual” and “WooCommerce Currency Switcher.”
- These plugins can help you set different regions to sell to, display prices in the customer’s chosen currency, and handle currency conversion during the checkout process.
- Keep in mind that while you can display prices in different currencies, you might still process payments in your account’s base currency, like GBP, if that’s a requirement from Viva Wallet.
- Retaining URL Structure:
- WooCommerce allows you to create product and category URLs that match your desired structure. You can set up subfolders, such as
/en-us/
, to maintain localized pages.
- WooCommerce allows you to create product and category URLs that match your desired structure. You can set up subfolders, such as
- Subscriptions:
- WooCommerce Subscriptions is a powerful extension that allows you to set up subscription-based products or services. It’s well-documented and integrates seamlessly with WooCommerce.
- User Interface Enhancement:
- WooCommerce’s user interface for order processing can be customized and improved through various themes and plugins. Consider using a WooCommerce-compatible theme that offers a polished and user-friendly interface.
- Additionally, you can explore WooCommerce plugins that enhance the order management process, such as “WooCommerce Admin” and “WooCommerce Order Management.”
- Expertise and Support:
- Since you mentioned that it’s been a while since you worked with WordPress, it might be helpful to enlist the support of a WordPress developer or WooCommerce expert, especially for the initial setup and customization.
- WooCommerce has a vibrant community, and you can find developers and agencies experienced in WooCommerce to assist with your specific requirements.
- Testing and Quality Assurance:
- Before fully migrating, thoroughly test your WooCommerce store to ensure that it meets your needs and that the currency conversion, localization, and subscription features work as expected.
- Data Migration:
- Plan the migration of your products, customer data, and orders from Shopify to WooCommerce. There are tools and services available to assist with this process.
In summary, WooCommerce can offer the flexibility and features you need to replicate your Shopify store’s functionality and expand upon it. However, due to the complexity of your requirements, it’s essential to carefully plan and possibly seek professional assistance to ensure a successful migration and setup. WooCommerce’s extensive ecosystem of plugins and themes should enable you to create a robust and user-friendly e-commerce solution.
- International Sales and Currency Handling:
- WooCommerce does have several plugins available for currency conversion and localization. Popular options include “WooCommerce Multilingual” and “WooCommerce Currency Switcher.”
- These plugins can help you set different regions to sell to, display prices in the customer’s chosen currency, and handle currency conversion during the checkout process.
- Keep in mind that while you can display prices in different currencies, you might still process payments in your account’s base currency, like GBP, if that’s a requirement from Viva Wallet.
- Retaining URL Structure:
- WooCommerce allows you to create product and category URLs that match your desired structure. You can set up subfolders, such as
/en-us/
, to maintain localized pages.
- WooCommerce allows you to create product and category URLs that match your desired structure. You can set up subfolders, such as
- Subscriptions:
- WooCommerce Subscriptions is a powerful extension that allows you to set up subscription-based products or services. It’s well-documented and integrates seamlessly with WooCommerce.
- User Interface Enhancement:
- WooCommerce’s user interface for order processing can be customized and improved through various themes and plugins. Consider using a WooCommerce-compatible theme that offers a polished and user-friendly interface.
- Additionally, you can explore WooCommerce plugins that enhance the order management process, such as “WooCommerce Admin” and “WooCommerce Order Management.”
- Expertise and Support:
- Since you mentioned that it’s been a while since you worked with WordPress, it might be helpful to enlist the support of a WordPress developer or WooCommerce expert, especially for the initial setup and customization.
- WooCommerce has a vibrant community, and you can find developers and agencies experienced in WooCommerce to assist with your specific requirements.
- Testing and Quality Assurance:
- Before fully migrating, thoroughly test your WooCommerce store to ensure that it meets your needs and that the currency conversion, localization, and subscription features work as expected.
- Data Migration:
- Plan the migration of your products, customer data, and orders from Shopify to WooCommerce. There are tools and services available to assist with this process.
In summary, WooCommerce can offer the flexibility and features you need to replicate your Shopify store’s functionality and expand upon it. However, due to the complexity of your requirements, it’s essential to carefully plan and possibly seek professional assistance to ensure a successful migration and setup. WooCommerce’s extensive ecosystem of plugins and themes should enable you to create a robust and user-friendly e-commerce solution.
- This reply was modified 1 year, 2 months ago by Harsh Gajipara.
Forum: Fixing WordPress
In reply to: Carrito igual para todos los clientesHi @detallesbeam,
por favor agregue el enlace de la página.