-
AuthorPosts
-
June 8, 2018 at 6:38 pm #970157
Hi
please have a look at the products in my shop.
Example 1:They all have “Shop Woo” in the title instead of “Products name” like before the update
How to fix this?
Marcus
June 10, 2018 at 6:38 pm #970831Hey MarcusJeroch,
Can you please a link of your web site so we can check it out?
We would also appreciate to provide us with backend access.Best regards,
BasilisJune 11, 2018 at 3:10 pm #971228You want a link?
Just click on this HUGE and BIG link i already gave youJune 11, 2018 at 4:39 pm #971287Hi,
Please try adding following code to Functions.php file in Appearance > Editor
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if (is_single) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }
Best regards,
YigitJune 11, 2018 at 9:49 pm #971404Did not change anything.
Code:<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ function enqueue_parent_theme_style() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style'); /* Proper way to enqueue styles and scripts */ function theme_name_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts' ); /* Activate Avia debug mode */ add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; } add_action('tribe_events_single_event_after_the_content', 'tribe_events_single_event_after_the_content_mod'); function tribe_events_single_event_after_the_content_mod() { echo ""; echo do_shortcode("[av_social_share title='Teile diese Veranstaltung' style='' buttons='' custom_class='shareva']"); } add_theme_support('avia_template_builder_custom_css'); add_filter( 'wc_gzd_revocation_admin_mail', 'my_child_set_revocation_admin_mail', 10, 1 ); function my_child_set_revocation_admin_mail( $mail ) { return ' (Email address hidden if logged out) '; add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if (is_single) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; } }
June 12, 2018 at 7:21 pm #971780Hi,
Could you please create temporary admin logins and post them here privately so we can look into it?
Best regards,
YigitAugust 4, 2020 at 12:34 pm #1235091The issue is back again.
August 4, 2020 at 5:50 pm #1235140Hi,
I could not find any products on your page. The link takes me to event page where title is hidden however using following code still works. I tested again on my installation
add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if ('is_single') { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; }
If that does not help, please point out the page where you are having the issue and share temporary admin logins in private content field so we can look into it.
Best regards,
YigitAugust 5, 2020 at 10:56 am #1235364August 5, 2020 at 8:03 pm #1235503Hi,
I see. However the code works fine on my end. I tested with the latest version of WooCommerce.
Could we login to dashboard and check? Cannot really tell why it is not working on your installation.Best regards,
YigitAugust 6, 2020 at 1:41 pm #1235711This is the actual functions.php of my child-theme:
<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ function enqueue_parent_theme_style() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); } add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style'); /* Proper way to enqueue styles and scripts */ function theme_name_scripts() { wp_enqueue_style( 'style-name', get_stylesheet_uri() ); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts' ); function change_cf_from() { return " (Email address hidden if logged out) "; } add_filter('avf_form_from', 'change_cf_from', 10); /* Activate Avia debug mode */ add_action('avia_builder_mode', "builder_set_debug"); function builder_set_debug() { return "debug"; } add_filter('avf_title_args', 'avf_title_args_mod', 99, 2); function avf_title_args_mod($args,$id) { if ( $args['title'] == 'Calendar of Events' ) { $args['title'] = 'Veranstaltungskalender'; } return $args; } add_action('tribe_events_single_event_after_the_content', 'tribe_events_single_event_after_the_content_mod'); function tribe_events_single_event_after_the_content_mod() { echo ""; echo do_shortcode("[av_social_share title='Teile diese Veranstaltung' style='' buttons='' custom_class='shareva']"); } add_theme_support('avia_template_builder_custom_css'); add_filter( 'wc_gzd_revocation_admin_mail', 'my_child_set_revocation_admin_mail', 10, 1 ); function my_child_set_revocation_admin_mail( $mail ) { return ' (Email address hidden if logged out) '; add_filter('avf_title_args', 'fix_single_post_title', 10, 2); function fix_single_post_title($args,$id) { if (is_single) { $args['title'] = get_the_title($id); $args['link'] = get_permalink($id); $args['heading'] = 'h1'; } return $args; } }
August 6, 2020 at 4:17 pm #1235790Hi,
That is because you closed “my_child_set_revocation_admin_mail” function after “fix_single_post_title”, not before. I fixed it and attached pastebin file in private content field. Please update your functions.php file
Best regards,
YigitAugust 7, 2020 at 12:13 pm #1235977Hallo Yigit,
thank you very much – that helped.Kind regards
marcusAugust 8, 2020 at 5:50 am #1236185 -
AuthorPosts
- You must be logged in to reply to this topic.