Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Display Product Category Description under title
New Landing › How can we help? › Atelier › Display Product Category Description under title
- This topic has 9 replies, 3 voices, and was last updated 7 years by Rui Guerreiro – SUPPORT.
-
Posted in: Atelier
-
May 22, 2017 at 5:28 pm #325556
Hi,
As you can see in attachment I want to move the description under category title and move breadcrumb from page title wrap to top of content. I searched a lot on theme options to make this happen but no option to show category description under page title wrap.
Please help me make that adjustment.
Also one more question:
My product single page is displaying like this (http://s21284.p574.sites.pressdns.com/product/11-inch-cobra-natural-satchel/) and I want to make it look like this demo ( http://swiftideas.com/vario-demo/product/hee-chair/ ) which options I need to update?
Thanks
Attachments:
You must be logged in to view attached files.May 23, 2017 at 6:14 pm #3257121) Unfortunately that customisation is more then a small modification. As such you would need to work with a developer: http://www.swiftideas.com/customization/.
2) What do you specifically want to change? The product background color?
May 23, 2017 at 6:22 pm #325714Hi David,
Thanks for the reply. I am also WP developer and I need to find the specific file name which is responsible to display that category title and if possible the line # then I can customize it.
About the second request yes white bg for product image. I want to know is there any specific option to turn it on or off otherwise custom css can work.
Thanks 🙂
May 23, 2017 at 6:43 pm #325719The file is the archive-product.php that is inside Atelier/Woocommerce
You should the Woocommerce Hooks documentation
https://docs.woocommerce.com/wc-apidocs/hook-docs.html-Rui
May 23, 2017 at 6:53 pm #325721Hi Rui,
Thanks for the reply. I know how to remove description from category Content section which the archive-product.php is displaying. But I want to display same description in page title section please check attachment (Displaying Description in Red box). Which file is responsible for displaying category title and breadcrumb in page title wrap section?
Attachments:
You must be logged in to view attached files.May 23, 2017 at 7:06 pm #325728Check in atelier/swift-framework/core/sf-page-heading.php.
Just a heads up, what I did to figure it out it was to inspect the code and grab a specific class like page-heading-breadcrumbs, then you can search inside all the theme files using that value. Sometimes it’s not so direct like in this case.
-Rui
May 24, 2017 at 2:05 pm #325828Hello Rui,
I found this code in line #299 of sf-page-heading.php
<?php if ( sf_woocommerce_activated() && is_woocommerce() ) { ?> <?php if ( is_product() ) { ?> <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php echo $page_title; ?></h1> <?php } else { ?> <h1 class="entry-title" <?php echo $article_heading_text; ?>><?php woocommerce_page_title(); ?></h1> <strong><?php do_action( 'woocommerce_archive_description' ); ?></strong> <?php } ?> <?php } else if ( is_search() ) { ?>
as you can see do_action(‘woocommerce_archive_description’ ) not displaying category description. But if I put any string like “<h2>SOME TEXT</h2>” it is displaying there. Would you please let me know why the action is not working?
May 24, 2017 at 2:16 pm #325833Hi,
You would need to debug this.
Check what function you have hooked into the action:
woocommerce_archive_description
.May 24, 2017 at 2:26 pm #325835Hi David,
I thought that is the default Woocommerce action to display category description. Because it is displaying the description under content which I think is inside loop. And I think the page heading wrap is outside the loop so there should be another code to display current category description out side loop?
May 24, 2017 at 2:40 pm #325836Like we told we can only point directions, these modifications sometimes are not so easy like we imagine and we don’t have time to help on those. Hope you understand.
-Rui
-
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.