Product images and blog post has disappeared.

This topic has 3 replies, 2 voices, and was last updated 6 years, 1 months ago ago by Rose Tyler

  • Avatar: kdwebstudio
    kdwebstudio
    Participant
    March 5, 2018 at 17:53

    When I clicked on any blogpost a blanks screen appeared with the header only. I tought theme update will solve my problem then product images also disappeared from the single product pages. I tried to use the parent theme. No luck. I’ve updated everything I could. Help me please.

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: kdwebstudio
    kdwebstudio
    Participant
    March 5, 2018 at 22:08

    I’ve found a solution for disappeared image from product page. Not sure if a temporary one that is for you to say. Sadly I have no time for dig deeper.

    Here it is:
    (themes/legenda/woocommerce/single-product/content-single-product.php)

    <?php
    
    				// 2018-03-05 Solution for disappeared image from single product page by Kovács Dávid
    				woocommerce_show_product_images();
    
    				// if ( class_exists( 'YITH_WCMG_Frontend' ) ) {
    				// 	do_action( 'woocommerce_before_single_product_summary' );
    				// } else {
    				// 	woocommerce_show_product_images();
    				// }
    				?>

    I’ve also found a solution for the disappeared blog posts. I’ve hidden the page-heading everywhere. I have not inherited the template file responsible for posts because it was okay as it was in the original theme. In the original single.php there was a </div> missing so all of my content goes under my hidden page-heading class. I inherited the single.php and I changed the following code

    from:
    (themes/legenda/single.php)

    <?php if ($page_heading != 'disable' && ($page_slider == 'no_slider' || $page_slider == '')): ?>
    	<div class="page-heading bc-type-<?php etheme_option('breadcrumb_type'); ?>">
    	<?php et_page_heading(); ?>
    <?php endif ?>

    to:
    (themes/legenda-child/single.php)

    <?php if ($page_heading != 'disable' && ($page_slider == 'no_slider' || $page_slider == '')): ?>
    	<div class="page-heading bc-type-<?php etheme_option('breadcrumb_type'); ?>">
    	<?php et_page_heading(); ?>
    	<!-- 2018-03-05 Solution for the disappeared blogposts By Kovács Dávid -->
    	</div>
    <?php endif ?>
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 6, 2018 at 09:30

    Hello,

    Please provide wp-admin and FTP access in Private so we could check the problem with images more deeply, looks like it was caused by some plugin.
    Thanks for the notice about the <div>, we will fix this in next theme update.

    Regards

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.