Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #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

    #970831

    Hey 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,
    Basilis

    #971228

    You want a link?
    Just click on this HUGE and BIG link i already gave you

    #971287

    Hi,

    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,
    Yigit

    #971404

    Did 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;
    }
    }
    #971780

    Hi,

    Could you please create temporary admin logins and post them here privately so we can look into it?

    Best regards,
    Yigit

    #1235091

    The issue is back again.

    #1235140

    Hi,

    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,
    Yigit

    #1235364
    #1235503

    Hi,

    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,
    Yigit

    #1235711

    This 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;
    }
    }
    #1235790

    Hi,

    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,
    Yigit

    #1235977

    Hallo Yigit,
    thank you very much – that helped.

    Kind regards
    marcus

    #1236185

    Hi Marcus,

    Great, I’m glad that Yigit could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.