New Landing How can we help? Themeforest Theme Support Neighborhood Make product short descrption into H1 title above price

Viewing 6 posts - 31 through 36 (of 36 total)
  • #99347
    Holly & Trisha
    Member
    Post count: 54
    This reply has been marked as private.
    #99705
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please attach a marked screenshot for your change as you want.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

    #99849
    Holly & Trisha
    Member
    Post count: 54
    This reply has been marked as private.
    #99899
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check. Please always enter product description at product edit screen. The custom css code used:-
    .woocommerce div.product .entry-title {
    display: block !important;
    font-family: “custom-one” !important;
    font-size: 29px;
    font-weight: bold;
    line-height: 29px;
    margin-bottom: 10px;
    }
    body.single-product div.heading-text{
    display: none !important;
    }

    content-single-product.php file php code-:

    <?php
    /**
     * The template for displaying product content in the single-product.php template
     *
     * Override this template by copying it to yourtheme/woocommerce/content-single-product.php
     *
     * @author 		WooThemes
     * @package 	WooCommerce/Templates
     * @version     2.1.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    ?>
    
    <?php
    	
    	global $post, $product, $catalog_mode;
    	
    	$options = get_option('sf_neighborhood_options');
    	if (isset($options['enable_pb_product_pages'])) {
    		$enable_pb_product_pages = $options['enable_pb_product_pages'];
    	} else {
    		$enable_pb_product_pages = false;
    	}
    	
    	$product_short_description = sf_get_post_meta($post->ID, 'sf_product_short_description', true);
    	
    	/**
    	 * woocommerce_before_single_product hook
    	 *
    	 * @hooked woocommerce_show_messages - 10
    	 */
    	 do_action( 'woocommerce_before_single_product' );
    ?>
    
    <div itemscope itemtype="http://schema.org/Product" id="product-<?php the_ID(); ?>" <?php post_class(); ?>>
    	
    	
    
    	<?php
    		/**
    		 * woocommerce_show_product_images hook
    		 *
    		 * @hooked woocommerce_show_product_sale_flash - 10
    		 * @hooked woocommerce_show_product_images - 20
    		 */
    		do_action( 'woocommerce_before_single_product_summary' );
    	?>
    
    	<div class="summary entry-summary">
    		
    		<div class="summary-top clearfix">
    		<div class="entry-title" itemprop="name"><?php the_title(); ?></div>
    			
    			<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    			
    			
    				<p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p>
    				
    				<meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" />
    				
    				<?php if (!$catalog_mode) { ?><link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" /><?php } ?>
    			
    			</div>
    			
    			<?php
    				if ( comments_open() ) {
    				
    					$count = $wpdb->get_var("
    					    SELECT COUNT(meta_value) FROM $wpdb->commentmeta
    					    LEFT JOIN $wpdb->comments ON $wpdb->commentmeta.comment_id = $wpdb->comments.comment_ID
    					    WHERE meta_key = 'rating'
    					    AND comment_post_ID = $post->ID
    					    AND comment_approved = '1'
    					    AND meta_value > 0
    					");
    				
    					$rating = $wpdb->get_var("
    				        SELECT SUM(meta_value) FROM $wpdb->commentmeta
    				        LEFT JOIN $wpdb->comments ON $wpdb->commentmeta.comment_id = $wpdb->comments.comment_ID
    				        WHERE meta_key = 'rating'
    				        AND comment_post_ID = $post->ID
    				        AND comment_approved = '1'
    				    ");
    				
    				    if ( $count > 0 ) {
    				
    				        $average = number_format($rating / $count, 2);
    											
    						$reviews_text = sprintf(_n('%d Review', '%d Reviews', $count, 'swiftframework'), $count);
    						
    				        echo '<div class="review-summary"><div class="star-rating" title="'.sprintf(__('Rated %s out of 5', 'woocommerce'), $average).'"><span style="width:'.($average*16).'px"><span class="rating">'.$average.'</span> '.__('out of 5', 'woocommerce').'</span></div><div class="reviews-text">'.$reviews_text.'</div></div>';
    				
    				    }
    				}
    			?>
    			<?php
    				$has_cat = get_the_terms( $post->ID, 'product_cat' );
    			?>
    			<?php if (function_exists('be_previous_post_link') && $has_cat != 0) { ?>
    			<div class="product-navigation">
    				<div class="nav-previous"><?php previous_post_link( '%link', '<i class="fa-angle-right"></i>', true, '', 'product_cat' ); ?></div>
    				<div class="nav-next"><?php next_post_link( '%link', '<i class="fa-angle-left"></i>', true, '', 'product_cat' ); ?></div>
    			</div>
    			<?php } ?>
    		
    		</div>
    		
    		<?php if ($product_short_description != "") { ?>
    			<div class="product-short">
    				<?php echo do_shortcode($product_short_description); ?>
    			</div>
    		<?php } else { ?>
    			<div class="product-short">
    				<?php echo apply_filters( 'woocommerce_short_description', $post->post_excerpt ); ?>
    			</div>
    		<?php } ?>	
    					
    		<?php
    			/**
    			* woocommerce_single_product_summary hook
    			*
    			* @hooked woocommerce_template_single_title - 5
    			* @hooked woocommerce_template_single_price - 10
    			* @hooked woocommerce_template_single_excerpt - 20
    			* @hooked woocommerce_template_single_add_to_cart - 30
    			* @hooked woocommerce_template_single_meta - 40
    			* @hooked woocommerce_template_single_sharing - 50
    			*/		 
    			
    			do_action( 'woocommerce_single_product_summary' );
    		?>
    		
    
    	</div><!-- .summary -->
    	
    	<?php if ($enable_pb_product_pages) { ?>
    	
    	<div id="product-display-area" class="clearfix">
    		
    		<?php the_content(); ?>
    		
    	</div>
    	
    	<?php } ?>
    	
    	<?php
    		/**
    		 * woocommerce_after_single_product_summary hook
    		 *
    		 * @hooked woocommerce_output_product_data_tabs - 10
    		 * @hooked woocommerce_output_related_products - 20
    		 */
    		do_action( 'woocommerce_after_single_product_summary' );
    	?>
    
    </div><!-- #product-<?php the_ID(); ?> -->
    
    <?php do_action( 'woocommerce_after_single_product' ); ?>
    #99905
    Holly & Trisha
    Member
    Post count: 54

    THANKS Mohammed. you the best!!!

    Looks great ๐Ÿ™‚

    #99907
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Thanks Mohammad

    – Kyle

Viewing 6 posts - 31 through 36 (of 36 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register