marseem
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Product Labels for WooCommerce] labels don’t show on shop pageI have the same issue. I hope we get a solution soon.
Thanks for the reply.
Actually, I don’t know which setting must be disable. the plugin was working before properly but now is not working as it should be.
What do you recommend I do?
Thank you Juan.
What do you mean about not activating style? Which style you mean? Is there any specific plugin must be inactive?
it is 4 items selected in the setting to be displayed but they come more.
Second the images not aligned from right side and left of the main image.
And even when they displace you can see gaps from the right side not aligned with main image. You will notice this once you are able to show 4 items in gallery.
Thank you Juan
https://ibb.co/6wc5dcz
I selected 4 items to be displayed but it comes many images.Hi Juan,
What you have sent it is the original theme. It is not my website.see the screenshot:
https://ibb.co/Twkx84HThank you Juan,
The zoom is working perfectly, just if you visit the page you can see the four gallery images come not aligned with the product image. You can see gaps on the right and left sides. the images are not aligned with the main image of the product. You can see 4 images and a half as well, not completed 4 images that aligned with the edges from the right and left of the main image. how can I fix this issue?
https://marseem.nl/product/angels-wings/Thank you Juan,
I have added the second code again, so far the buttons come beside each other, and the website hasn’t got any errors. I hope it will say like this.I just need to know why the buttons are stuck on add to cart button on mobile screen?
Best regards
Hello again,
It seems the code worked for a few hours and now I have deleted it because I could access my website again. So I think this solution it didn’t solve the problem.
Thank youRegarding paypal button I have changed the zoom option to be inside the box. So it is fine now.
Just need to know why the gallery images come cropped? second why the plugin doesn’t work on some products such as:
https://marseem.nl/product/grey-dresser/
the plugin works perfectly on laptop screen while on iMac 27” not. But other products even on iMac 27” works without a problem.
don’t know what is going on.On iMac screen try to check first product pages you will see the zoom doesnt work while on other well.
hope to find a solution for this issue
Thanks in advanceThank you, I have resolved the problem after adding your code. I don’t know why it works now. Before I added it normally as you asked me but I got errors every time now it worked perfectly.
Best regardsAlso, the gallery images under the product image come cropped, not full square like they should be.
I cant find the value of (') in the function file after adding your code. Can you please tell me where I can find this value in the file?
ThxThere is no (') on your code.
If you want to see the original function.php file, here is it:
<?php /** * Hermes Themes functions and definitions * * @package LionThemes * @subpackage Hermes_theme * @since Hermes Themes 2.0 */ //Plugin-Activation require_once( get_template_directory().'/class-tgm-plugin-activation.php' ); //Init the Redux Framework if ( class_exists( 'ReduxFramework' ) && !isset( $redux_demo )){ if(file_exists( trailingslashit(get_stylesheet_directory()) . 'theme-config.php')){ require_once( trailingslashit(get_stylesheet_directory()) . 'theme-config.php' ); }else{ require_once( trailingslashit(get_template_directory()) . 'theme-config.php' ); } } // require system parts if ( file_exists( get_template_directory().'/includes/theme-helper.php' ) ) { require_once( get_template_directory().'/includes/theme-helper.php' ); } if ( file_exists( get_template_directory().'/includes/widget-areas.php' ) ) { require_once( get_template_directory().'/includes/widget-areas.php' ); } if ( file_exists( get_template_directory().'/includes/head-media.php' ) ) { require_once( get_template_directory().'/includes/head-media.php' ); } if ( file_exists( get_template_directory().'/includes/bootstrap-extras.php' ) ) { require_once( get_template_directory().'/includes/bootstrap-extras.php' ); } if ( file_exists( get_template_directory().'/includes/bootstrap-tags.php' ) ) { require_once( get_template_directory().'/includes/bootstrap-tags.php' ); } if ( file_exists( get_template_directory().'/includes/woo-hook.php' ) ) { require_once( get_template_directory().'/includes/woo-hook.php' ); } // theme setup function hermes_setup(){ // Load languages load_theme_textdomain( 'hermes2', trailingslashit(get_template_directory()) . 'languages' ); // This theme styles the visual editor with editor-style.css to match the theme style. add_editor_style(); // Adds RSS feed links to <head> for posts and comments. add_theme_support( 'automatic-feed-links' ); // This theme supports a variety of post formats. add_theme_support( 'post-formats', array( 'image', 'gallery', 'video', 'audio' ) ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded <title> tag in the document head, and expect WordPress to * provide it for us. */ if ( ! isset( $content_width ) ) $content_width = 625; add_theme_support( 'title-tag' ); // This theme uses a custom image size for featured images, displayed on "standard" posts. add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 1480, 987 ); // Unlimited height, soft crop add_image_size( 'hermes-category-thumb', 1480, 987, true ); // (cropped) add_image_size( 'hermes-category-full', 1480, 987, true ); // (cropped) add_image_size( 'hermes-post-thumb', 1480, 987, true ); // (cropped) add_image_size( 'hermes-post-thumbwide', 800, 533, true ); // (cropped) register_nav_menu( 'primary', esc_html__( 'Primary Menu', 'hermes2' ) ); add_theme_support( 'woocommerce' ); if(class_exists('WooCommerce')){ add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); } } add_action( 'after_setup_theme', 'hermes_setup'); /* * Theme support */ add_theme_support( 'custom-background', array() ); add_theme_support( 'custom-header', array() ); /** * TGM-Plugin-Activation */ add_action( 'tgmpa_register', 'hermes_register_required_plugins'); function hermes_register_required_plugins(){ $plugins = array( array( 'name' => esc_html__('LionThemes Helper', 'hermes2'), 'slug' => 'lionthemes-helper', 'source' => trailingslashit(get_template_directory()) . 'plugins/lionthemes-helper.zip', 'required' => true, ), array( 'name' => esc_html__('Revolution Slider', 'hermes2'), 'slug' => 'revslider', 'source' => 'https://lion-themes.net/plugins/revslider.zip', 'required' => true, ), array( 'name' => esc_html__('Visual Composer', 'hermes2'), 'slug' => 'js_composer', 'source' => 'https://lion-themes.net/plugins/js_composer.zip', 'required' => true, ), // Plugins from the Online WordPress Plugin array( 'name' => esc_html__('Redux Framework', 'hermes2'), 'slug' => 'redux-framework', 'required' => true, ), array( 'name' => esc_html__('Classic Editor', 'hermes2'), 'slug' => 'classic-editor', 'required' => false, ), array( 'name' => esc_html__('Contact Form 7', 'hermes2'), 'slug' => 'contact-form-7', 'required' => false, ), array( 'name' => esc_html__('Mailchimp for WordPress', 'hermes2'), 'slug' => 'mailchimp-for-wp', 'required' => false, ), array( 'name' => esc_html__('Projects', 'hermes2'), 'slug' => 'projects-by-woothemes', 'required' => false, ), array( 'name' => esc_html__('Shortcodes Ultimate', 'hermes2'), 'slug' => 'shortcodes-ultimate', 'required' => false, ), array( 'name' => esc_html__('Testimonials', 'hermes2'), 'slug' => 'testimonials-by-woothemes', 'required' => false, ), array( 'name' => esc_html__('TinyMCE Advanced', 'hermes2'), 'slug' => 'tinymce-advanced', 'required' => false, ), array( 'name' => esc_html__('Widget Importer & Exporter', 'hermes2'), 'slug' => 'widget-importer-exporter', 'required' => false, ), array( 'name' => esc_html__('WooCommerce', 'hermes2'), 'slug' => 'woocommerce', 'required' => true, ), array( 'name' => esc_html__('YITH WooCommerce Compare', 'hermes2'), 'slug' => 'yith-woocommerce-compare', 'required' => false, ), array( 'name' => esc_html__('YITH WooCommerce Wishlist', 'hermes2'), 'slug' => 'yith-woocommerce-wishlist', 'required' => false, ) ); /** * Array of configuration settings. Amend each line as needed. * If you want the default strings to be available under your own theme domain, * leave the strings uncommented. * Some of the strings are added into a sprintf, so see the comments at the * end of each line for what each argument will be. */ $config = array( 'default_path' => '', // Default absolute path to pre-packaged plugins. 'menu' => 'tgmpa-install-plugins', // Menu slug. 'has_notices' => true, // Show admin notices or not. 'dismissable' => true, // If false, a user cannot dismiss the nag message. 'dismiss_msg' => '', // If 'dismissable' is false, this message will be output at top of nag. 'is_automatic' => false, // Automatically activate plugins after installation or not. 'message' => '', // Message to output right before the plugins table. 'strings' => array( 'page_title' => esc_html__( 'Install Required Plugins', 'hermes2' ), 'menu_title' => esc_html__( 'Install Plugins', 'hermes2' ), 'installing' => esc_html__( 'Installing Plugin: %s', 'hermes2' ), // %s = plugin name. 'oops' => esc_html__( 'Something went wrong with the plugin API.', 'hermes2' ), 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'hermes2' ), 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'hermes2' ), // %1$s = plugin name(s). 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'hermes2' ), // %1$s = plugin name(s). 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'hermes2' ), // %1$s = plugin name(s). 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'hermes2' ), // %1$s = plugin name(s). 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'hermes2' ), // %1$s = plugin name(s). 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'hermes2' ), // %1$s = plugin name(s). 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'hermes2' ), // %1$s = plugin name(s). 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'hermes2' ), 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'hermes2' ), 'return' => esc_html__( 'Return to Required Plugins Installer', 'hermes2' ), 'plugin_activated' => esc_html__( 'Plugin activated successfully.', 'hermes2' ), 'complete' => esc_html__( 'All plugins installed and activated successfully. %s', 'hermes2' ), // %s = dashboard link. 'nag_type' => 'updated' // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'. ) ); tgmpa( $plugins, $config ); } add_action( 'woocommerce_before_shop_loop_item_title', function() { global $product; if ( !$product->is_in_stock() ) { echo '<span class="now_sold">Now Sold</span>'; } });