Tagged: x
-
AuthorPosts
-
May 10, 2016 at 3:03 am #983672
isakfyksenParticipantThe wrapper is still there in my custom code though, I never turned those functions off. I just replaced the relevant functions inside. And I didn’t add the link either, I just modified the href of a link that was already there. Alas, I don’t think the problem has anything to do with the wrapper.
I think might rather be the fact that the action is attempted removed before it is added, and so the remove statement is ignored, and as a result both the custom and original functions are added, as i tried to explain in my previous post.
The reason the custom code you describe works is not the wrappers, but the fact that the add/remove statements at the bottom are contained in their own function, hooked after the original x file we are working with.
At least, by my logic, that must be how it is? As the wrappers were already there, and the fact that extra html wouldn’t do anything for the execution-order of the php, which caused the issue in the first place. Please point it out if I’ve got anything wrong.
Just thought it might be good to clarify, in case anyone else looks to this thread for answers.
Thanks a lot for the help 🙂
May 11, 2016 at 2:15 pm #986386
RadModeratorHi there,
You don’t have this wrapper in your child theme’s functions.php,
function x_woocommerce_before_shop_loop_item_title_custom() { echo '<div class="entry-wrap"><header class="entry-header"><a href="' . get_the_permalink() . custom_product_query( 'wanted_weight', 'weight' ) . '">'; } function x_woocommerce_after_shop_loop_item_title_custom() { woocommerce_template_loop_add_to_cart(); echo '</a></header></div>'; }These two serve as the opening and closing, please properly check the structure. And what you have is this,
function c_woocommerce_template_loop_product_title() { echo '<h3 class="wc-thumbnail-title under"><a href="' . get_the_permalink() . custom_product_query( 'wanted_weight', 'weight' ) . '">' . get_the_title() . '</a></h3>'; }You added the complete title and links into the opening wrapper, hence, the structure is duplicated and since you don’t have a closing wrapper, it will use the default wrapper that comes with X ( which is another closing structure for links ). That’s the first issue, and there are more. Though, I can’t really fully help with customization. It’s best to contact a developer that can help you with this setup. I only provided the idea of how it can be customized based on existing structure.
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-910417 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
