oweibor
Forum Replies Created
-
If you dont want to create a plugin, you can paste the following code into your functions.php file or use the Code Snippets plugin:
add_action('init', 'hide_woobt_thumb'); function hide_woobt_thumb() { global $product; if ( $product->get_type() == 'variable' ) { ?> <style> .woobt-thumb { display: none; } </style> <?php } }
Forum: Plugins
In reply to: [WPC Frequently Bought Together for WooCommerce] Price missingThis could be caused by a number of factors… it may be from the settings or a theme/plugin conflict. You may need to troubleshoot with a different theme or deactivate other plugins that may create a conflict… or just check your woobt setting to ensure that you enabled show price. There’s No way to actually know without signing in to the site admin.
Basically, You want to display .woobt-thumb when the product is simple, but hide it when its variable. To make this Straightforward, I’ll create a plugin.
STEPS
********************************
1. Create a plugin folder calledhide-woobt-thumb
2. Navigate to the folder, and create a file calledhide-woobt-thumb.php
3. Also, create a sub-folder calledcss
then create/add your various stylesheetssimple_style.css
andvarible_style.css
. Ensure that you add the respective CSS display parameters to the corresponding CSS files.
4. Paste the code below into thehide-woobt-thumb.php
file located in the plugin’s root directory.
5. Upload and activate the plugin/** * Plugin Name: WOOBT * Plugin URI: https://www.remarpro.com * Description: Plugin to conditionally select stylesheet based on product type. * Version: 1.0 * Requires at least: 5.2 * Requires PHP: 7.2 * Author: Nancy Pelosi (Wallstreet's Grandma) * Author URI: https://author.example.com/ * License: GPL v2 or later * License URI: https://www.gnu.org/licenses/gpl-2.0.html * Update URI: https://yourwebsite.com/my-plugin/ */ add_action('init', 'hide_woobt_thumb') function hide_woobt_thumb(){ global $product; wp_register_style('hide_varible_style', plugins_url('css/varible_style.css', __FILE__ )); wp_register_style('show_simple_style', plugins_url('css/simple_style.css', __FILE__ )); if ( $product->get_type() == 'variable' ) { wp_enqueue_style('hide_varible_style'); } if ($product->get_type() == 'simple') { wp_enqueue_style('show_simple_style'); } }
Forum: Plugins
In reply to: [Judge.me Product Reviews for WooCommerce] Floating Reviews Tab Positionto place the floating widget to the left:
.jdgm-revs-tab-btn[position=bottom] { bottom: 50%; left: -90px; transform: rotate(270deg); }
However, i feel this could be done in a better way. maybe by modifying the shortcode’s callback function to be something like this?
[jgm-reviews-tab button='? Our Reviews' title='Let customers speak for us' position='left']
This would make a ton of sense.
- This reply was modified 5 years, 3 months ago by oweibor.
Forum: Plugins
In reply to: [Judge.me Product Reviews for WooCommerce] Please trim down your widgetI actually love the review star font. I prefer the star over the default woocommerce stars. in whatever you do. Please don’t remove the star font. Thank you.
Thanks for your support on scentsng.com
this code worked for me.
add_action( 'init', function () { if (class_exists( 'JudgeMe' )) { add_action( 'init', 'jgm_remove_review_widget' ); function jgm_remove_review_widget () { // Remove the default widget placement remove_action( 'woocommerce_after_single_product_summary', array( 'JGM_Widget', 'judgeme_review_widget' ), 14 ); } //Replace Original Woocommerce with Judge.me Widget add_filter( 'woocommerce_product_tabs', 'jgm_add_review__widget_to_tab' ); function jgm_add_review__widget_to_tab ($tabs) { $tabs['judgeme_reviews'] = array( 'title' => __( 'Reviews', 'woocommerce' ), 'priority' => 50, 'callback' => array( 'JGM_Widget', 'judgeme_review_widget' ) ); return $tabs; } //JGM REVIEW BADGE SINGLE PRODUCT add_action( 'woocommerce_single_product_summary', 'jgm_remove_preview_badge' ); function jgm_remove_preview_badge () { // Remove the default widget placement remove_action( 'woocommerce_single_product_summary', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); } //JGM REVIEW BADGE ARCHIVE LOOP & ADD IT DIRECTLY TO OCEANWP AFTER PRODUCT remove_action( 'woocommerce_after_shop_loop_item_title', array( 'JGM_Widget', 'judgeme_preview_badge' ), 5 ); add_action( 'ocean_after_archive_product_inner', array( 'JGM_Widget', 'judgeme_preview_badge' ), 5 ); } } );
- This reply was modified 5 years, 3 months ago by oweibor.
Email Sent. Thank you… you guys have an incredibly amazing support.
Thank you very much for your swift response. Unfortunately, the remove_action snippet below did not work when I added it to my functions.php file. The issue persists.
remove_action( ‘woocommerce_after_single_product_summary’, array( ‘JGM_Widget’, ‘judgeme_review_widget’ ), 14 );
remove_action( ‘woocommerce_single_product_summary’, array( ‘JGM_Widget’, ‘judgeme_preview_badge’ ), 9 );
remove_action( ‘woocommerce_after_shop_loop_item_title’, array( ‘JGM_Widget’, ‘judgeme_preview_badge’ ), 5 );
I know the problem isn’t from my theme because I added an action to the function.php code and it worked.
also, the CSS code did not work when added to the styles.css file of my theme
Thank you for your swift response. it worked pretty well. Issue Resolved!
- This reply was modified 5 years, 5 months ago by oweibor.
@bikasgurung ask your host to increase your SQL query limit. Blogs hosted with nepallink, ipage and a few others are most likely to experience this error. They have some very weird database server settings
- This reply was modified 7 years, 9 months ago by oweibor.
i am experiencing the same problem with my site… WordPress only redirects to install.php when it can not find a database. this missing database issue usually occurs because i have crappy host, ipage , they limited the mysql query string to 75k per hour and once that max usage is optimised, the site and every other WordPress site on that ipage user account starts redirecting to install.php
A way to combat this is to cache the mysql query string (but ipage has refused to do that – instead they have offered to increase the MySQL query limit to 150k queries per hour for an extra $36 and this will still not be sufficient for a busy site, especially during content upload or peak periods).
@nareshrawat0101 i noticed your host is ipage also. all ipage blogs not on their VPS plan will eventually suffer the same fate as more and more load is added to the site. it is sad… but thats wha it is… ipage sucks for this sole reason!
i have thesame issue on my site
Forum: Plugins
In reply to: [Table of Contents Plus] Float on scrolli am also interest in the TOC+ fix for single paginated post
@trebly… please where can i see your upgraded version… i’d like a link… it seems you are the only one on the internet with a sure fix.. even the author doesnt know his way around this…
the plugin seems to pull its pagination fromthe_content
… i am very interested in your approach to this problemis there a fix around the problem of TOC+’s inability to create a TOC for single paginated pages?