Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • paulad
    Participant
    Post count: 4

    This does a good job at changing the title 🙂 but removes the related posts leaving just the title.
    https://4648264ef921a9f283764a7965139582.p.myukcloud.com/catalogue-items/big-brother/

    I have fiddled with the code but no success. I don’t fully understand PHP so any help would be appreciated.

    I just dropped it below the last line: add_action( ‘after_setup_theme’, ‘avada_lang_setup’ );

    I have also tried adding this code top my child theme functions.php but no such either.

    https://github.com/webwolfhosting/Avada/blob/master/includes/avada-functions.php

    if ( ! function_exists( ‘avada_render_related_posts’ ) ) {
    /**
    * Render related posts carousel.
    *
    * @param string $post_type The post type to determine correct related posts and headings.
    * @return void Directly includes the template file.
    */
    function avada_render_related_posts( $post_type = ” ) {

    $post_id = get_the_ID();

    if ( ! $post_type ) {
    global $wp_query;
    $post_type = ‘post’;
    if ( is_object( $wp_query ) && isset( $wp_query->post ) && is_object( $wp_query->post ) && isset( $wp_query->post->ID ) && $wp_query->post->ID ) {
    $post_type = get_post_type( $wp_query->post->ID );
    $post_id = $wp_query->post->ID;
    }
    }

    // Set the needed variables according to post type.
    $main_heading = ”;
    if ( ‘post’ === $post_type ) {
    $theme_option_name = ‘related_posts’;
    $main_heading = esc_html__( ‘Related Posts’, ‘Avada’ );
    } elseif ( ‘avada_portfolio’ === $post_type ) {
    $theme_option_name = ‘portfolio_related_posts’;
    $main_heading = esc_html__( ‘Related Projects’, ‘Avada’ );
    } elseif ( ‘avada_faq’ === $post_type ) {
    $theme_option_name = ‘faq_related_posts’;
    $main_heading = esc_html__( ‘Related Faqs’, ‘Avada’ );
    }

    $main_heading = apply_filters( ‘fusion_related_posts_heading_text’, $main_heading, $post_type );

    // Check if related posts should be shown.
    if ( isset( $theme_option_name ) && ( fusion_get_option( $theme_option_name ) ) ) { // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
    $number_related_posts = Avada()->settings->get( ‘number_related_posts’ );
    $number_related_posts = ( ‘0’ == $number_related_posts ) ? ‘-1’ : $number_related_posts; // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison
    if ( ‘post’ === $post_type ) {
    $related_posts = fusion_get_related_posts( $post_id, $number_related_posts );
    } else {
    $related_posts = fusion_get_custom_posttype_related_posts( $post_id, $number_related_posts, $post_type );
    }

    // If there are related posts, display them.
    if ( isset( $related_posts ) && $related_posts->have_posts() ) {
    include wp_normalize_path( locate_template( ‘templates/related-posts.php’ ) );
    }
    }
    }
    }

    paulad
    Participant
    Post count: 4

    Hi

    Same issues, the mobile speed optimisation needs sorting before we stop using the theme.

    We believe this is really affecting rankings.

    Love the theme and on a desktop its great, but I have had someone spend hours and hours trying different tips and tricks and the mobile site is awful 23%.

    There must be something you can do to fix it 🙂 and make it a priority 🙂

    Please HELP

    paulad
    Participant
    Post count: 4

    Likewise, the best speed we can get is 27% which is in the red.

    If you test the Avada theme is shows as only 4% https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Favada.theme-fusion.com

    This really needs sorting as it is such as great theme, but the plugins slow it down hugely.

Viewing 3 posts - 1 through 3 (of 3 total)