Forum Replies Created
-
AuthorPosts
-
Same issue here.
We used to have posts of the type “pages” different from the type “posts” with different permalinks. Now they’re all type “standard” and permalinks for “posts” is gone (used to be /blog/post-name). We’ll have to create hierarchy and set the blog page as parent for all posts.
Does anyone have a smarter solution?
UPDATE: I was wrong, post types are still the same and the re-configuration of permalinks worked just fine.
- This reply was modified 5 years, 10 months ago by rmf339.
Is there a way to create a hook instead of copying the file?
Hi profumopuntoit, how are you?
Do you use Enfold? Try to move the function from file functions.php to file functions-enfold.php.
If you don’t use enfold but a similar Kriesi theme, try to do the same.
After updating Enfold we had to move all hooking functions to this file instead of using on functions.php because they stopped working properly.
Hope it works!
Hi all,
Taking advantage of the topic to ask if there is any chance of having a hook into functions-enfold.php to change the H2 to H4?
This post tells me the exact location, but I’m afraid I might loose the hack when updating…
https://kriesi.at/support/topic/change-related-products-title/
Open wp-content/plugins/woocommerce/templates/single-product/related.php and find this code:
<h2><?php _e(‘Related Products’, ‘woocommerce’); ?></h2>Any clues?
- This reply was modified 5 years, 10 months ago by rmf339.
January 29, 2019 at 6:06 am in reply to: "undefined" text displayed on products with WooCommerce Add On fields #1059890We faced the same issue here.
The problem is about compatibility between Enfold with Woocommerce Bookings and Woocommerce Add-ons.
The fix is exactly as Ismael said. Use the class ‘product_title’ on the heading. To do that, edit the following function on functions-enfold.php to add the ‘product_title’ class to the ‘heading_html’ variable on the ‘defaults array’. All the rest of the function can remain the same:
//advanced title + breadcrumb function ### HOOKED ON HEADING: added product_title class if(!function_exists('avia_title')) { function avia_title($args = false, $id = false) { global $avia_config; if(!$id) $id = avia_get_the_id(); $header_settings = avia_header_setting(); if($header_settings['header_title_bar'] == 'hidden_title_bar') return ""; $defaults = array( 'title' => get_the_title($id), 'subtitle' => "", //avia_post_meta($id, 'subtitle'), 'link' => get_permalink($id), 'html' => "<div class='{class} title_container'><div class='container'>{heading_html}{additions}</div></div>", 'heading_html' => "<{heading} class='main-title entry-title product_title'>{title}</{heading}>", 'class' => 'stretch_full container_wrap alternate_color '.avia_is_dark_bg('alternate_color', true), 'breadcrumb' => true, 'additions' => "", 'heading' => 'h1' //headings are set based on this article: http://yoast.com/blog-headings-structure/ ); if ( is_tax() || is_category() || is_tag() ) { global $wp_query; $term = $wp_query->get_queried_object(); $defaults['link'] = get_term_link( $term ); } else if(is_archive()) { $defaults['link'] = ""; } // Parse incomming $args into an array and merge it with $defaults $args = wp_parse_args( $args, $defaults ); $args = apply_filters('avf_title_args', $args, $id); //disable breadcrumb if requested if($header_settings['header_title_bar'] == 'title_bar') $args['breadcrumb'] = false; //disable title if requested if($header_settings['header_title_bar'] == 'breadcrumbs_only') $args['title'] = ''; // OPTIONAL: Declare each item in $args as its own variable i.e. $type, $before. extract( $args, EXTR_SKIP ); if(empty($title)) $class .= " empty_title "; $markup = avia_markup_helper(array('context' => 'avia_title','echo'=>false)); if(!empty($link) && !empty($title)) $title = "<a href='".$link."' rel='bookmark'>".$title."</a>"; if(!empty($subtitle)) $additions .= "<div class='title_meta meta-color'>".wpautop($subtitle)."</div>"; if($breadcrumb) $additions .= avia_breadcrumbs(array('separator' => '/', 'richsnippet' => true)); if(!$title) $heading_html = ""; $html = str_replace('{heading_html}', $heading_html, $html); $html = str_replace('{class}', $class, $html); $html = str_replace('{title}', $title, $html); $html = str_replace('{additions}', $additions, $html); $html = str_replace('{heading}', $heading, $html); if(!empty($avia_config['slide_output']) && !avia_is_dynamic_template($id) && !avia_is_overview()) { $avia_config['small_title'] = $title; } else { return $html; } } }
- This reply was modified 5 years, 10 months ago by rmf339.
Hi there! I can’t see what issue this post is about.
I’m also having issues on the masonry after last update, but it’s regarding the on-hover image animation. The secondary image in the gallery does not appear on mouse hover, looks like the animation stopped working. It only happens to my recently created products (woocommerce), all others still with on-hover animation.
Does anyone have any clues?
Hi @Guenni007, you didn’t verify the errors because I could fix it by disabling the W3TC minify. But thanks for the contribution, it was very well received!
Hi @BassLineX, yes so it seems… :-/
Hi all,
I came up with this:
1) Deactivated all cache on my hosting provider, but left my W3 Total Cache active.
2) By checking the CSS presented in a browser window, I found out that the code was coming from W3TC minify.
3) Deactivating the plugin made it all come normal again.
4) Then I configured the new functionalities as I wanted and tried to activate the W3TC again. But errors came up again.
5) I had to deactivate W3TC minify settings due to this errors.Any insides on compatibility issues?
Hi guys… anyone?
No, not me… just wanted it to be H1…
The link suits me too.
That’s because in the function
fix_single_post_title($args,$id)
that I’ve added to functions.php I just change the following variable to H1
$args['heading']
So the link remains…Please check this screenshot: SHOT Main title for products
Taken from this page: Product Pedra da Gavea
Hi @victoria_d, how are you?
I actually didn’t understand why you want admin access to my website. Could you go through the support ticket again to see if you missed something?
In the case you still need access, could you briefly explain me why?
Best regards and thank you!
- This reply was modified 7 years, 7 months ago by rmf339.
OK @ismael, here it goes: http://www.nattrip.com.br/site2017/wp-content/uploads/2017/04/DEBUG02.jpg
If you get a 404 when you access the media, please remove
/site2017
And retry!
- This reply was modified 7 years, 8 months ago by rmf339.
April 28, 2017 at 4:22 pm in reply to: Phone and email field on checkout page woocommerce when visiting on mobile #784677Hi Ismael,
Since I had severe difficulties to troubleshoot in mobile device, I’d never think of the z-index as the root cause.
Thanks a lot! That was the problem!
Best regards!
April 27, 2017 at 4:03 pm in reply to: Phone and email field on checkout page woocommerce when visiting on mobile #784093Same problem here, I just began looking for a solution. If you find one, please mind sharing! :-)
Link for webshop on private content…Problem stated:
If you access via mobile and try to buy any product, email and phone fields on checkout page are “unclickable”/”unselectable” and thus “uneditable”.April 26, 2017 at 3:05 pm in reply to: Sidebar source code is being included even though No Sidebar is activated #783518April 25, 2017 at 10:24 pm in reply to: Sidebar source code is being included even though No Sidebar is activated #783147Hi Victoria,
Thanks for your interest in this one. This version of our website is going into production most likely this week. Is there something specific that I could check for you and return here?
I’d love to help but it doesn’t depend only on me…
If I may leave a suggestion, why don’t you let the user choose? Insert an option into the Theme Settings, so user can choose product grid/slider tag, logo tag, title tag, etc… THAT would be awesome! And I guess it’s quite simple to do, isn’t it?
Hi @basilis,
Thanks for your help, but it seems you’re wrong. I did the modifications using hooks in function.php using this:
/* * Modify product slider from h2 to h4 */ remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10, 2 ); function action_woocommerce_shop_loop_item_title( $woocommerce_template_loop_product_title, $int ) { echo '<h4 class="woocommerce-loop-product__title">' . get_the_title() . '</h4>'; }; add_action( 'woocommerce_shop_loop_item_title', 'action_woocommerce_shop_loop_item_title', 10, 2 );
I guess problem is solved guys! Just append this to your functions.php using APPEARANCE > Editor
You may change the H4 I used to any other tag you might want.
Hi guys,
I was able to change post titles with the following (in functions.php):
add_filter('avf_title_args', 'fix_single_post_title', 10, 2);
function fix_single_post_title($args,$id){
if (is_product()){
$args['heading'] = 'h1';
}
return $args;
}
Now I need a similar filter to change the h2 tags on product slider as shown on attached link.
Thanks!
Hi guys,
I just came here to congratulate Seolotsen because that’s exactly how I feel… and his post is almost one year old now.
- This reply was modified 7 years, 8 months ago by rmf339.
Hi all!!
I have the same issue here and I’d go further: I don’t want the tag to be H2 but I want H3 instead.
Is there a way to change it without losing the change on upcoming updates??
Hi @mike,
I noticed that this behavior only happens in Woocommerce products post type. When it’s a WordPress normal page, it behaves like it should… Check the post title in the attached link.
Hi @Mike,
I always forget that this forum system applies code on the messages… My original message was:
Hi all,
Using “show title and breadcrumbs” option activated, the title of the page appears as
<a>
and not<h1>
as it should. Same happens with Woocommerce products.How can I change this to
<h1>
without having to “hack” Enfold code (as it would probably disappear in the next update)?Anyway… moving on to your comments, I was talking about the post title (in this case the post is a page or a product), which is located in the same
<div class="container">
as the breadcrumbs above the fullwidth imageshow. Note that it is uses STRONG and A tags. I want to change them both to H1 (without STRONG).The one you pointed on the screenshot is actually a
<H2>
tag put there with the text element in Avia page builder. And that’s actually correct. But thanks for taking a look at it.Can you help me finding out how to change the post title from A and STRONG to H1 without losing the change on upcoming Enfold updates?
- This reply was modified 7 years, 8 months ago by rmf339.
April 21, 2017 at 1:24 am in reply to: Product Grid / Product Slider not working after installing WPML with Woocommerce #780929Hi @victoria_d,
Thanks for the interest, but as per my last message, I could manage to get it all working just by changing the sorting order of Product Grid/Slider elements. It really seems to be some sort of coding bug or incompatibility.
Reading my first post, I just realized that some of the things I’ve written have been cut from the message, such as
I have the latest version of Enfold, WPML and \Woocommerce\. \I \use \Avia \page \builder \which \have \been \working \well\, \but \after \installing \WPML \and \configuring \translations, Product Grid and Product Slider stopped working.
But whatever, I guess it doesn’t matter now. I didn’t find where to close the topic, so if any moderators can do it for me I’d appreciate!
Thanks all!
- This reply was modified 7 years, 8 months ago by rmf339.
April 20, 2017 at 12:13 am in reply to: Product Grid / Product Slider not working after installing WPML with Woocommerce #780222Hi all,
I got the problem solved after reading this (confusing) thread:
But the owner of the thread seems to be right. It is something in the sorting options of the product grid/slider. Not every sorting option works.
You guys should check on this for bugs and corrections!
-
AuthorPosts