Customizing content for a single product
I just installed WordPress/WooCommerce and have everything working but can’t figure out how adjust the content in my single product template.
I looked at several posts including these but still can’t figure out the process.
As a test I added a few <h1> tags to see where new text would show up but still don’t know how to format this page (link to sample of what I want the page to look like).
The test text (h1 tags) show up above the image and below the image. I don’t know how to make the text show up beside the image and lower the drop down box. (link above includes screenshot of mockup of what I want the page to look like)
I also looked for the “‘content’, ‘single-product'” file but wasn’t able to find it amongst the woocommerce files.
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly get_header('shop'); ?> <?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'); ?> <h1>test add content here #1</h1> <?php while ( have_posts() ) : the_post(); ?> <h1>test add content here #2</h1> <?php woocommerce_get_template_part( 'content', 'single-product' ); ?> <h1>test add content here #3</h1> <?php endwhile; // end of the loop. ?> <?php get_footer('shop'); ?>
Here is a link to PDF that explains visually with a page mockup what I am trying to do.
I am new to WordPress so if you could be specific it would be greatly appreciated.
- The topic ‘Customizing content for a single product’ is closed to new replies.