Home Forums Themes Support Pricom Editing the Shop Page

Topic Resolution: Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10641
    imirza
    Supported

    Hi, thanks again for the wonderful theme and helpful support!

    I wanted to edit the shop page to add a line of text+link to the quote page that would appear at the top of the pages (below the “home – shop” title [red circle in image]).

    I noticed this is a woocommerce page and cant be edited in elementor, do you know how i could go about adding this text in this case?

    thank you!

    Attachments:
    You must be logged in to view attached files.
    #10646

    Hi,
    Thanks for contacting us and choosing our product!
    The easiest way to add description for Shop page is add content for it when you editing shop page with Default WordPress editor like this:
    https://prnt.sc/_Hh0ORogv8z3
    Another solution you can add this function in the functions.php file of the theme:

    if ( ! function_exists( 'haru_shop_description' ) ) {
    	function haru_shop_description() {
    		echo '<div class="shop-description">' . esc_html__( 'Shop descripton here', 'pricom' ) . '</div>';
    	}
    
    	add_action( 'woocommerce_archive_description', 'haru_shop_description' );
    }

    If you need the best display you may need to add CSS code in Appearance -> Customize -> Additional CSS or add in the child theme:

    .woocommerce-products-header .page-description {
      padding: 0 15px;
    }

    Hope this helps!

    ****
    Regards,
    HaruTheme

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.