普通网友 2016-02-01 14:36
浏览 54
已采纳

如何在审核选项卡下方移动Woocommerce描述选项卡

I am trying to do the same thing than in here:

How can review be moved below product description in woocommerce?

Only difference is that I want to move description tab. I've tried to change parameters in example below but I didn't managed to handle it.

add_action('woocommerce_after_single_product_summary', create_function( '$args', 'call_user_func(\'comments_template\');'), 14);

Alternatively, I was trying to move tabs to the top so description tab would be full width (I need it because I'm using big tables see: https://chemiq.sk/produkt/test/).

I've tried to do it with css

.woocommerce-tabs .panel {margin-left: 0px}

because I'm not familiar with creating new hooks, however it was not working. No change afterwards on live website at all.

Both of solutions would work.

  • 写回答

1条回答 默认 最新

  • doubei8168 2016-02-03 08:45
    关注

    At the end I managed it with following code:

    add_action( 'woocommerce_product_tabs', 'woocommerce_product_description_tab', 14 );
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 滑块验证码移动速度不一致问题
  • ¥15 定制ai直播实时换脸软件
  • ¥100 栈回溯相关,模块加载后KiExceptionDispatch无法正常回溯了
  • ¥15 Utunbu中vscode下cern root工作台中写的程序root的头文件无法包含
  • ¥15 麒麟V10桌面版SP1如何配置bonding
  • ¥15 Marscode IDE 如何预览新建的 HTML 文件
  • ¥15 K8S部署二进制集群过程中calico一直报错
  • ¥15 java python或者任何一种编程语言复刻一个网页
  • ¥20 如何通过代码传输视频到亚马逊平台
  • ¥15 php查询mysql数据库并显示至下拉列表中