Home Forums Basel support forum HTML Block to shop page

HTML Block to shop page

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #19576

    kabpunisher
    Participant

    How to add HTML block shortcode to the shop page after product list?

    Also could you please help to change font style from uppercase to capitalize in titles of menu, posts, categories etc?

    #19582

    Artem Temos
    Keymaster

    Hi,

    You can add your custom HTML code to the categories description and it will be shown on categories pages. Unfortunately, there no option to add the block to the root of the shop. If you want to add it globally, you can place your code to the file basel/woocommerce/archive-products.php.

    Here is a code to remove text transformation for the menu

    .main-nav .menu>li>a {
    	text-transform: capitalize!important;
    }

    Regards

    #19584

    kabpunisher
    Participant

    Thanks,
    But in that case it will be shown before the goods, right?

    #19586

    Artem Temos
    Keymaster

    You can place it anywhere you want including the place after the products.

    #19590

    kabpunisher
    Participant

    I am sorry but it doesnt work
    Neither HTML block nor any word was added in categories pages

    #19591

    Artem Temos
    Keymaster

    What code did you place to the file?

    #19592

    kabpunisher
    Participant

    I added shortcode. [html_block id="1848"]
    I did some changes in theme settings and it has appeared. But before products, how to place it after products grid?

    #19599

    Artem Temos
    Keymaster

    Did you add it to the file we mentioned? Try to place it before this code

    	<?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' );
    	?>

    Regards

    #20143

    kabpunisher
    Participant

    Hello,
    It works. But i need your advise.
    When i place my HTML shortcode inside this file, it appears on the website as text [html_block id="1848"]
    Could you please help me?

    Also i found it better to use categories and subcategories descriptions. But i couldnt do that its descriprions appears at the bottom of shop content. It appears only between shop and header
    Could you please advise how to do it?

    And i am newbie in website building. Tell me please can i use your theme at my second website or i have to buy another one license?
    Thank you in advance

    #20149

    Artem Temos
    Keymaster

    Hello,

    You need to place the following PHP code instead of plain shortcode

    <?php echo do_shortcode('[html_block id="1848"]'); ?>

    The category description is displayed before products and you can’t move it under the products.

    Regards

Tagged: , ,

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