ctclinesmith
Forum Replies Created
-
To attempt to solve this rendering problem I posed it to AI in both CoPilot and ChatGPT. AI offered different solutions but both agreed it was likely due to the shortcodes being wrapped inside of other shortcodes. AI recommended disabling SU’s HTML-comment wrapper and feature image display that would require changes to the function.php file. Other recommended fixes included creating and overriding the SU template in a child theme which seemed to me like it was the same as keeping version 7.4.2. Since each time I attempt a fix my website is disrupted for a time, I’ll just keep 7.4.2 and recheck every time a new version comes out.
Since the rendering errors all occurred inside an SU column, today I attempted to find out if it could be related. I copied the two lines that seem to be the offenders (the image and the commented out embedyt) and pasted them outside of the row/column shortcodes. The problem was exactly the same, so the row/column is not the culprit.
Remember the problem only shows up when I attempt to show the post inside of a Woocommerce product description using the su_post shortcode. The image near the top of the post shows twice, and the html comment with the embedyt shortcode (but not the <div>) near the bottom of the post show up in browsers.
So I’m thinking maybe the su_post shortcode is conflicting with Woocommerce somewhere. Everything works fine on ver 7.4.2 but renders wrong on 7.4.3 and above. I’m at my wits end.
- This reply was modified 9 months ago by ctclinesmith.
Just noticed that somehow this had been marked as “resolved” but it is NOT. I rechecked the problem by upgrading to 7.4.5 again today and the rendering problem returned, so I downgraded to 7.4.2 and have re-marked it as “unresolved” again. I hope someone will have some ideas for me to try so I can keep this plugin up to date for security reasons.
Thanks for the reply Hastibe, but I do not use any SU add-ons.
Today I tried updating to 7.4.5 just hoping that maybe some other repair fixed my problem but it didn’t help. I’m going to have to stay with 7.4.2 for now.
Forum: Plugins
In reply to: [Free Shipping Bar for WooCommerce] Conflict with SG OPTIMISER?I also get the identical error message. It prevents me from being able to make any changes to the SG Optimizer buttons and they all say disabled. A SiteGround tech says the conflict with the WordPress Rest API is preventing the proper display of what is active or inactive on the SG Opt page. He said I have several things that are active but no way to see their condition on that page. I have disabled the SG Opt plugin for now but would really like to be able to use it properly.
Forum: Plugins
In reply to: [WooCommerce] Select background for product category imagesSince I didn’t get any perfect answers, I gave up and settled for this which works. I hard coded the image used for the main jewelry category:
/* Change bg color of the one image used for Jewelry category */ img[src*="/wp-content/uploads/JewelryCat2.png"]{background-color:#f5f3ed !important;} /* Change bg color of the Jewelry sub cats */ .term-jewelry li.product-category img {background: #f5f3ed !important;} /* Change bg color of all the Jewelry products */ .woocommerce .product_cat-jewelry img {background-color:#f5f3ed !important}Forum: Plugins
In reply to: [WooCommerce] Select background for product category imagesUsing first-child seems to work here: https://www.hebrewwordpics.com/store/
but, of course, it doesn’t accomplish the objective if categories are displayed differently like here: https://www.hebrewwordpics.com/product-category/jewelry/test/ which displays all categories and sub-categories together. The first-child is colored but not the jewelry categories..woocommerce .product_cat-jewelry img {background-color:#f5f3ed !important}
seems to get the individual products in the jewelry category colored correctly and.term-jewelry li.product-category img{background: #f5f3ed !important;}
seems to get the jewelry sub-categories colored correctly, but only when displayed as sub-categories of the jewelry category, not when displayed otherwise shown in the second link above.I even tried manually coloring the individual categories and sub-cats using CSS here
.li.product_category img[src$="https://i2.wp.com/www.hebrewwordpics.com/wp-content/uploads/JewelryCat2.png"] {background-color:#f5f3ed !important}but that doesn’t get it done either (assuming I got the code right).I still think there is a class associated with each category and sub-category that I can use. Can anyone help with this?
Forum: Plugins
In reply to: [WooCommerce] Select background for product category imagesSince the order of my categories is likely to change in the future, I would prefer to not specify by using a ‘first-child’ selector to accomplish the color change, but rather specify a class for the jewelry categories. This was somewhat addressed in https://ww.wp.xz.cn/support/topic/change-background-of-div-class-using-product-category-ids/ , but there just wasn’t quite enough information for me to figure out what the classes would be for the various product categories.
I attempted to glean it from https://docs.woocommerce.com/document/woocommerce-shortcodes/ but still unsuccessful. Any further ideas?Forum: Plugins
In reply to: [WooCommerce] Select background for product category imagesI think I got it now by adding img as the final selector and it seems to currently be working. Thanks Gabriel!
/* Change bg color of the first product category -Jewelry- */ ul.products li:first-child img{ background: #f5f3ed !important; } /* Change bg color of the Jewelry sub cat */ .term-jewelry li.product-category img{ background: #f5f3ed !important; }- This reply was modified 5 years, 3 months ago by ctclinesmith.
Forum: Plugins
In reply to: [WooCommerce] Select background for product category imagesThanks Gabriel but using the li selector causes the background color to extend all the way down below the ‘add to cart’ button. I tried changing the li to the img selector but it didn’t work. I’m pretty sure there is a class that woocommerce creates and uses that identifies the categories and subcats (like the product_cat-jewelry class) but I don’t know how to find it.
Forum: Plugins
In reply to: [Icegram Engage – Popups, Optins, CTAs & Lead Generation] Icegram not workingI just noticed that I had the same problem today. Unchecking the ‘Cache Friendly’ option did the trick. It is working again now.
Forum: Plugins
In reply to: [Multi-column Tag Map] compatible with WooCommerce ?Use taxonomy=”product_tag”
Forum: Plugins
In reply to: [Multi-column Tag Map] woocommerceI have tried to combine the arrays with no success. I must be working in the wrong area. I have been trying by altering the mctagmap_functions.php, “get_terms” statement right after the comment “===== set up what to get (tags, categories, etc…) =====”. No matter what I seem to do here, it breaks it complete, resulting in a completely blank page. Please give me instructions or point me in the right direction on how to combine the post_tag and product_tag. I can get either one to work by themselves by using taxonomy= in the shortcode.