Viewing 8 replies - 1 through 8 (of 8 total)
  • I can no longer see the error on the page you link to, so I assume this is resolved?

    Thread Starter laylaroberts

    (@laylaroberts)

    Hi Coen,

    Did you check the page on a phone or tablet?

    For some reason, it works on my laptop, but not my phone or ipad, and as this is a page for only my Handheld mobile plugin, that is important.

    I asked a friend to check and they get the error message on their phone too.

    Please advise.

    Thanks,

    Layla.

    Jeasy

    (@jeasysehgal)

    Hi Layla,

    If I may suggest something, the fact that the sidebar or all pages show in the footer is most likely a theme compatibility issue. There is a great article on woo themes website that suggests modifying your page.php file to fix the compatibility issue.

    Hope this helps. Had a similar issue in the last update on one of my sites and fixed it by going through the tips there.

    Kind Regards,

    Jeasy
    http://www.Jeasy.cr8.co.nz

    Thread Starter laylaroberts

    (@laylaroberts)

    Hi Jeasy,

    I am not 100% sure what you mean and can’t find the article on woo themes.

    Would you be able to send me a link?

    Thanks,

    Layla.

    Jeasy

    (@jeasysehgal)

    Hi Layla,

    Here is the link

    The layout issue is similar to what I had and I am hoping that yours would be easily fixed by following the page.php method.

    Tallyho!

    Thread Starter laylaroberts

    (@laylaroberts)

    Hi Jeasley,

    Strangely your link took me to the support home page.

    Anyway, I searched for it on the site and am guessing this is the page you meant: http://docs.woothemes.com/document/third-party-custom-theme-compatibility/

    I followed the instructions about replacing the loop and it has not worked sadly.

    Although, I am wondering if I did it right? It said to replace the loop starting with: <?php if ( have_posts() ) :

    However, “<?php if ( have_posts() ) :” was not in my page.php (now renamed woocommerce.php). There was a similar line though: <?php while ( have_posts() ) : the_post(); ?>

    So I deleted all 20 or so lines of code (up until: <?php endif; ?>) as instructed.

    Any suggestions? Did I do it wrong?

    Jeasy

    (@jeasysehgal)

    Hi Layla,

    You are using the Divi Theme are you? There is a new update from Elegant Themes out today, update your theme to that one and see if it fixes the issue. if not, Copy your page.php file here and I will have a look at it for you.

    Cheers, Jeasy

    Thread Starter laylaroberts

    (@laylaroberts)

    Hi Jeasy,

    Sorry, I didn’t reply sooner. When I updated Divi today, it resulted in all sorts of formatting problems, which it has taken me hours to get back to normal.

    Anyway, unfortunately, all of the pages are still listed at the bottom of the product pages on my mobile.

    Here is my page.php:

    <?php
    get_header();
    $is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() ); ?>
    <div id=”main-content”>
    <?php if ( ! $is_page_builder_used ) : ?>
    <div class=”container”>
    <div id=”content-area” class=”clearfix”>
    <div id=”left-area”>
    <?php endif; ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <?php if ( ! $is_page_builder_used ) : ?>
    <h1 class=”main_title”><?php the_title(); ?></h1>
    <?php
    $thumb = ”;
    $width = (int) apply_filters( ‘et_pb_index_blog_image_width’, 1080 );
    $height = (int) apply_filters( ‘et_pb_index_blog_image_height’, 675 );
    $classtext = ‘et_featured_image’;
    $titletext = get_the_title();
    $thumbnail = get_thumbnail( $width, $height, $classtext, $titletext, $titletext, false, ‘Blogimage’ );
    $thumb = $thumbnail[“thumb”];
    if ( ‘on’ === et_get_option( ‘divi_page_thumbnails’, ‘false’ ) && ” !== $thumb )
    print_thumbnail( $thumb, $thumbnail[“use_timthumb”], $titletext, $width, $height );
    ?>
    <?php endif; ?>
    <div class=”entry-content”>
    <?php
    the_content();
    if ( ! $is_page_builder_used )
    wp_link_pages( array( ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘Divi’ ), ‘after’ => ‘</div>’ ) );
    ?>
    </div> <!– .entry-content –>
    <?php
    if ( ! $is_page_builder_used && comments_open() && ‘on’ === et_get_option( ‘divi_show_pagescomments’, ‘false’ ) ) comments_template( ”, true );
    ?>
    </article> <!– .et_pb_post –>
    <?php endwhile; ?>
    <?php if ( ! $is_page_builder_used ) : ?>
    </div> <!– #left-area –>
    <?php get_sidebar(); ?>
    </div> <!– #content-area –>
    </div> <!– .container –>
    <?php endif; ?>
    </div> <!– #main-content –>
    <?php get_footer(); ?>

    And this is my woocommerce.php:

    <?php
    get_header();
    $is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() ); ?>
    <div id=”main-content”>
    <?php if ( ! $is_page_builder_used ) : ?>
    <div class=”container”>
    <div id=”content-area” class=”clearfix”>
    <div id=”left-area”>
    <?php endif; ?>
    <?php woocommerce_content(); ?>
    <div class=”entry-content”>
    <?php
    the_content();
    if ( ! $is_page_builder_used )
    wp_link_pages( array( ‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘Divi’ ), ‘after’ => ‘</div>’ ) );
    ?>
    </div> <!– .entry-content –>
    <?php
    if ( ! $is_page_builder_used && comments_open() && ‘on’ === et_get_option( ‘divi_show_pagescomments’, ‘false’ ) ) comments_template( ”, true );
    ?>
    </article> <!– .et_pb_post –>
    <?php endwhile; ?>
    <?php if ( ! $is_page_builder_used ) : ?>
    </div> <!– #left-area –>
    <?php get_sidebar(); ?>
    </div> <!– #content-area –>
    </div> <!– .container –>
    <?php endif; ?>
    </div> <!– #main-content –>
    <?php get_footer(); ?>

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Error with product pages’ is closed to new replies.