Home › Forums › Basel support forum › HTML Block to shop page
HTML Block to shop page
- This topic has 9 replies, 2 voices, and was last updated 7 years, 2 months ago by Artem Temos.
-
AuthorPosts
-
September 17, 2017 at 1:52 pm #19576
kabpunisherParticipantHow 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?
September 17, 2017 at 3:17 pm #19582
Artem TemosKeymasterHi,
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
September 17, 2017 at 3:20 pm #19584
kabpunisherParticipantThanks,
But in that case it will be shown before the goods, right?September 17, 2017 at 3:23 pm #19586
Artem TemosKeymasterYou can place it anywhere you want including the place after the products.
September 17, 2017 at 3:53 pm #19590
kabpunisherParticipantI am sorry but it doesnt work
Neither HTML block nor any word was added in categories pagesSeptember 17, 2017 at 3:55 pm #19591
Artem TemosKeymasterWhat code did you place to the file?
September 17, 2017 at 3:57 pm #19592
kabpunisherParticipantI 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?September 17, 2017 at 7:53 pm #19599
Artem TemosKeymasterDid 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
September 25, 2017 at 7:00 am #20143
kabpunisherParticipantHello,
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 advanceSeptember 25, 2017 at 9:29 am #20149
Artem TemosKeymasterHello,
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
-
AuthorPosts
- You must be logged in to create new topics. Login / Register