File: /var/www/vcstore.viitorcloud.co/wp-content/themes/vcmarketplace/woocommerce/single-product.php
<?php
/**
* The Template for displaying all single products
*
* This template can be overridden by copying it to yourtheme/woocommerce/single-product.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 1.6.4
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
get_header('shop');
$excerpt = get_the_excerpt();
$thumbnail_id = get_post_thumbnail_id($post->ID);
$thumbnail = get_the_post_thumbnail_url($post->ID, 'medium');
$thumbnail_alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
?>
<section class="home-banner position-relative">
<div class="position-absolute top-0 start-0 w-100 h-100 banner-img">
<img src="<?php echo site_url(); ?>/wp-content/uploads/2024/06/home-banner.webp" alt="product" width="100%" height="100%">
</div>
<div class="container h-100">
<div class="row align-items-center h-100 banner-content">
<div class="col-12 col-md-6">
<nav class="mb-2" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item font-18">
<a href="https://viitorcloud.com/">Home</a>
</li>
<li class="breadcrumb-item font-18 active" aria-current="page">
<a href="<?php echo site_url(); ?>">Marketplace</a>
</li>
<li class="breadcrumb-item font-18 active" aria-current="page"><?php the_title(); ?></li>
</ol>
</nav>
<p class="font-64 text-white mb-4"> <?php the_title(); ?> </p>
<p class="font-20 text-white">
<?php echo $excerpt; ?>
</p>
</div>
</div>
</div>
</section>
<section id="plugins" class="section-content py-80 pt-40">
<div class="container">
<?php
/**
* woocommerce_before_main_content hook.
*
* @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
* @hooked woocommerce_breadcrumb - 20
*/
do_action('woocommerce_before_main_content');
?>
<?php while (have_posts()) : ?>
<?php the_post(); ?>
<?php wc_get_template_part('content', 'single-product'); ?>
<?php endwhile; // end of the loop.
?>
<?php
/**
* woocommerce_after_main_content hook.
*
* @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
*/
do_action('woocommerce_after_main_content');
?>
<?php
/**
* woocommerce_sidebar hook.
*
* @hooked woocommerce_get_sidebar - 10
*/
do_action('woocommerce_sidebar');
?>
</div>
</section>
<?php
get_footer('shop');
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */