casbboy
Forum Replies Created
-
Nevermind, figured it out. Had to re-sync and then saw the sections options. Just grabbed one and hid it.
Forum: Plugins
In reply to: [WooCommerce] Can’t Get Rid of Uncategorized Category from Shop PageI finally figured out a code for functions that worked and removed it. Phew!
add_filter( ‘get_terms’, ‘exclude_category’, 10, 3 );
function exclude_category( $terms, $taxonomies, $args ) {
$new_terms = array();
if ( is_shop() ){
foreach ( $terms as $key => $term ) {
if( is_object ( $term ) ) {
if ( ‘uncategorized’ == $term->slug && $term->taxonomy = ‘product_cat’ ) {
unset($terms[$key]);
}
}
}
}
return $terms;
}Forum: Plugins
In reply to: [WooCommerce] Inventory Control for Products Donated?Thanks! going to check it out. The trick is tracking products donated not during purchase phase. Like when hitting goals, a certain number gets donated to a NPO entity.
Forum: Plugins
In reply to: [WooCommerce] Can’t Get Rid of Uncategorized Category from Shop PageThanks for the feedback. okay, I have products in it, but they are all hidden, so it shouldn’t show? Or should I just delete the products entirely? (I used them as templates for new products).
And, this Plugin: https://calebburks.com/hide-uncategorized-default-category-in-woocommerce/
I actually have it activated. It doesn’t work, as you can see on the page the Uncategorized still shows up.
Cheers!
RyanForum: Plugins
In reply to: [AMP] Need to Add Slash to End of URLThat did the trick!
Thanks
Forum: Plugins
In reply to: [AMP] AMP Script ErrorThe amp plugin update fixed it. I see:
<script type=’text/javascript’ src=’https://cdn.ampproject.org/v0/amp-ad-latest.js’ async custom-element=”amp-ad”></script>
Forum: Plugins
In reply to: [AMP] AMP Script ErrorI’m having the same issue with the same plugin, Ad Inserter Pro.
My issue is that I don’t see the amp-ad script at all. Though the amp-ad tags are appearing.
They do have a header insert function built into the plugin, to which I have:
<?php if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) { ?> <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script> <?php } else { ?> //so on
But it’s not appearing. Demo url: view-source:https://www.traileraddict.com/article/fox-planning-6-x-men-movies-2018-2020-report/amp/?cb=13
Forum: Plugins
In reply to: [AMP] Disable YouTube Embed Handler?Worked perfect.
Thanks!
Forum: Plugins
In reply to: [AMP] Plugin Creating Amp Error by Removing “Rel” on LinkSo is there an easy hook to add more css to the amp-custom area?
Forum: Plugins
In reply to: [AMP] Plugin Creating Amp Error by Removing “Rel” on LinkOk, so I’d have to write a function that does a readfile (through php) of the external css, remove, and then add that CSS to the amp-custom area in the header.
Forum: Plugins
In reply to: [Ad Inserter - Ad Manager & AdSense Ads] Not Showing in Post PreviewSorry for delay. Didn’t get an email alert on response. I actually just figured it out. I had an ismobile.js call in the “header” area in ad inserter, but Cloudflare, for preview mode, was making it rocketscript, breaking javascript functions and stopping the ads from appearing.
All fixed now!
Cheers
RyanForum: Plugins
In reply to: [WooCommerce] Add Category Title to the Product_Title H1 on Product Page?Thanks for the feedback! I’m close but am having one major issue. First, here is my code that successfully changes the H1.
function change_product_title( $title, $id ) { global $post; $terms = get_the_terms( $post->ID, 'product_cat' ); //$category = get_the_category(); $firstCategory = $terms[0]->name; echo "<!-- terms $firstCategory -->"; if ( is_product() && in_the_loop() ) { $category = get_the_category($post->ID); $newtitle = "$firstCategory - $title"; return $newtitle; //var_dump($category); } return $title; } add_filter( 'the_title', 'change_product_title', 10, 2 );
But, it is also adding the category to the “shop” level of the breadcrumbs. How do I tell it to not change the breadcrumbs?
Cheers!
RyanForum: Plugins
In reply to: [Custom Product Tabs for WooCommerce] Plugin Broke Reviews TabDidn’t fix it.
Reviews tab is still gone:
https://wooflinen.com/shop/100-french-linen/
I have database access. Any rows I should look for to delete to clear error?
Forum: Plugins
In reply to: [EWWW Image Optimizer] Update Broke Home Page Thumbnails (How to Fix?)If I “deactivate” the plugin everything starts working again. It’s so odd.