daledude
Forum Replies Created
-
It was an issue with my theme. I narrowed it down to something related to the Customizer. Soooo, as always, be sure to try in the default theme! :p
I’m having this same problem in Chrome. Happens on both Mac and Windows PC. Deactivated and uninstalled the one from the WP repo, and installed the one from GitHub, still same issue. With the one in WP repo, the WYSIWYG controls are there, but when I enter content and hit Save, they disappear and the content auto-changes from Visual to Text mode. With the one from GitHub, the TinyMCE controls never appear. I haven’t tried in FF or Safari yet, but I can’t make a user use a specific browser. I also double-checked to make sure that disable visual editor is unchecked.
Forum: Plugins
In reply to: [Events Made Easy] Relative links in single event format / Forbidden errorHi Franky, thanks for response.
I deactivated every plugin but Events Made Easy, and it still gave Forbidden error on save of options.
This is what I have in there:
<h2>#_EVENTNAME</h2> <p><b>Date:</b> #F #j, #Y</p> <p><b>Location:</b> #_TOWN</p> <p><b>Description:</b><br />#_NOTES</p> <p>#_MAP</p> <p><a href="../../news-events/upcoming-events/">Back to Upcoming Events</a></p>It’s not a big deal, I just added a
<base href="http://www.site.com/site/">in there too and it works… not optimal, but, it’s just a not visited often page I guess.Forum: Plugins
In reply to: [Events Made Easy] Relative links in single event format / Forbidden errorI should’ve said that it causes a Forbidden error when I try to save that.
Forum: Plugins
In reply to: [WooCommerce] failed: File too largeI am getting this error today too. What did you do to fix? Is it a host issue?
Forum: Plugins
In reply to: [Featured Link Image] Link imageNevermind, of course I’d figure it out AFTER posting. Happens all too often. :p
Forum: Plugins
In reply to: [WooCommerce] Different page layouts for category vs subcategory?k.devantoni – I’m not able to get the code you worked to share content between the categories and the single product pages. How were you able to get it to work? Did you just use the code you posted, or did you combine it with imevilduckie’s code?
Basically, I have a footer that I only want to appear on a parent category, ALL of its subcategories, and the single products within those categories. All of them will share this same footer. I can use imevilduckie’s code to make it appear in my footer.php on all of the main category and subcategories pages, but it won’t show on the single product page.
Thanks for any assistance!
elisafern – are you trying to just do the single product page, or the categories also?
Regardless, I had no trouble getting twoelevenjay’s code to work, but I ended up finding something that worked for me even better. I was trying to get my footer.php widgets to change between widget sidebars depending on which WooCommerce category you were in. It turns out, the code I found works both for WooCommerce pages and regular WordPress pages. This works the same for the single product page, the categories the product is in, etc – it’s all shared.
My WooCommerce categories were ‘children’, ‘young-people’, and ‘adults’, and I also had static WP pages with those same slugs.
<?php global $post; $terms = wp_get_post_terms( $post->ID, 'product_cat' ); foreach ( $terms as $term ) $categories[] = $term->slug; // if in WooCommerce children category, children WP page, or a descendant of the children WP page if ( in_array( 'children', $categories ) || is_page('children') || '29' == $post->post_parent ) { // put code you want for this condition here echo 'This should output only for Children!'; get_sidebar('footerchildren'); } elseif ( in_array( 'adults', $categories ) || is_page('adults') || '33' == $post->post_parent ) { echo 'This should output only for Adults!'; get_sidebar('footeradults'); } elseif ( in_array( 'young-people', $categories ) || is_page('young-people') || '31' == $post->post_parent ) { echo 'This should output only for Young People!'; get_sidebar('footeryoungpeople'); } else { get_sidebar('footer'); } ?>In the code above, you’d replace my echoes and get_sidebars with the code for content single.
As for twoelevenjay’s code, it worked fine for me as he posted though w/ instructions, I also noticed the missing bracket.Sorry, I realize what I wrote may be confusing, considering my original post was about the SINGLE PRODUCT page. Rather, what I wanted to know is if there’s a way to customize the product category template and have all of its children subcategories also inherit it using similar conditional code to the single product example. Hope that’s more clear?
So if I create a template that is used by the Children category, I also want that template to be used in Children > Books, Children > Games, Children > Images, Children > Books > History, etc.
I’ve search Googled and found references to child_of, woocommerce_get_term_top_most_parent, and others, but I have yet to be able to get any of them to work.
twoelevenjay: you are a god among men, seriously!
Works perfectly. I forgot about this post, but that definitely works.
Is there a way to make the child categories inherit this template as well? They don’t seem to by default. It doesn’t seem like you can get much in WooCommerce to inherit things from a parent.
Forum: Plugins
In reply to: How do I remove the drop down menu on single product pages (woo commerce)add_action( 'woocommerce_before_main_content', 'woocommerce_catalog_ordering', 20 );should be
add_action( 'woocommerce_before_shop_loop', 'woocommerce_catalog_ordering', 20 );I haven’t tested this, but I’m pretty sure that main_content outputs on everything including single.
Forum: Plugins
In reply to: [Theme My Login] Theme My Login and the_title widget conflictsThanks Jeff.
Forum: Plugins
In reply to: [Mini Loops] Mini Loops conflict with custom login page?Any update on a fix for this, Jeff? Thanks…
It’s definitely fixed. Thanks!
Sure thing, here you go: click here to see error message
You can get to this by going here: click here and, on the right sidebar under Spring 2013, just hit the green Search button. Or enter something into one of the fields if you like, like 1 bedroom, 2 bathrooms, whatever.
It seems to be a conflict of Connections with something else. That sidebar is controlled by the plugin WP Property.