Trek
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Fixing WordPress
In reply to: Problems with templateI’m trying to change the look of the product page template, so it would be simple as possible and still work.
Forum: Fixing WordPress
In reply to: Problems with templateI’m not allowed to. Because the rest of the pages need to stay the same. But thanks for your try.
Forum: Fixing WordPress
In reply to: Problems with templateThe theme is only built for this website. It uses advanced custom fields plugin. I want to use the product page space without restrictions(for example use tables to organize my pictures and text). At the moment I can only put picture to the left side as featured image and description text of the product to the right side.
Forum: Fixing WordPress
In reply to: Problems with templateOh ok.
<div class="product"> <div class="product-picture"> <?php $thumbnail = get_the_post_thumbnail($post->ID, array(380,400), array( 'alt' => $post->post_title, 'title' => $post->post_title, )); ?> <?php if($thumbnail) : ?> <?php echo $thumbnail; ?> <?php endif; ?> </div> <div class="product-text"> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <div class="ingredients"> <?php echo get_field('product_ingredients'); ?> </div> <?php edit_post_link( __('Edit'), '<div class="edit-link">', '</div>' ); ?> </div> <div class="clear"></div> </div>
Viewing 4 replies - 1 through 4 (of 4 total)